summaryrefslogtreecommitdiffstats
path: root/sys/kern/sys_generic.c
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>2003-01-06 23:46:47 +0000
committerjdp <jdp@FreeBSD.org>2003-01-06 23:46:47 +0000
commitf35cb3a504b5968f3b257944a0edda784a0da4fb (patch)
treec34d61e30bff1c37a0770c32ded7bda006fda299 /sys/kern/sys_generic.c
parentef408d5a3afde5ef326942a29c38ebc10e8f4eb7 (diff)
downloadFreeBSD-src-f35cb3a504b5968f3b257944a0edda784a0da4fb.zip
FreeBSD-src-f35cb3a504b5968f3b257944a0edda784a0da4fb.tar.gz
Don't reference the maxlen and flags fields in the ring control blocks
as separate 16-bit entities. Some of the ring control blocks are in NIC memory, so they must be referenced using 32-bit accesses. Smaller accesses have been observed to fail under some conditions. This caused the rings to be set up wrong, leading to writes by the card outside of the intended bounds of the rings. This problem was diagnosed by Michael Barthelow. Don Bowman submitted a patch which fixed the problem using a slightly different approach. Reference ring control blocks in NIC memory using a pointer to volatile. Parenthesize the BGE_HOSTADDR macro definition properly. MFC after: 3 days
Diffstat (limited to 'sys/kern/sys_generic.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud