URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Subversion Repositories or1k
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 1067 to Rev 1068
- ↔ Reverse comparison
Rev 1067 → Rev 1068
/trunk/or1ksim/peripheral/eth.c
407,7 → 407,7
SET_FLAG( eth->regs.int_source, ETH_INT_SOURCE, RXB); |
debug (4, "ETH_INT_SOURCE = %0x\n", eth->regs.int_source); |
|
if ( eth->rx.packet_length < GET_FIELD( eth->regs.packetlen, ETH_PACKETLEN, MINFL ) ) |
if ( eth->rx.packet_length < (GET_FIELD( eth->regs.packetlen, ETH_PACKETLEN, MINFL ) - 4) ) |
SET_FLAG( eth->rx.bd, ETH_RX_BD, TOOSHORT); |
if ( eth->rx.packet_length > GET_FIELD( eth->regs.packetlen, ETH_PACKETLEN, MAXFL ) ) |
SET_FLAG( eth->rx.bd, ETH_RX_BD, TOOBIG); |