]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fixed the type of some ivar access functions. Ivars have type uintptr_t,
authorbde <bde@FreeBSD.org>
Sun, 30 Apr 2000 10:01:56 +0000 (10:01 +0000)
committerbde <bde@FreeBSD.org>
Sun, 30 Apr 2000 10:01:56 +0000 (10:01 +0000)
commit2c5c997046c6e9a4b46da8c795733ef867dc7053
treeae0bd2763d4f3ed2e02b85b96cbb170999920569
parent8b471affb9f3b118378c27a18ddbeff7fccf2186
Fixed the type of some ivar access functions.  Ivars have type uintptr_t,
not u_long.  On i386's with 64-bit longs, returning u_longs indirectly
in (more than) the space reserved for uintptr_t's tended to corrupt the
previous frame pointer in the stack frame, so it was not easy to debug.
The type mismatches are hidden by the bogus cast in DEVMETHOD().
sys/dev/atkbdc/atkbdc_isa.c
sys/dev/atkbdc/atkbdc_subr.c
sys/dev/fdc/fdc.c
sys/dev/pci/pci.c
sys/isa/atkbdc_isa.c
sys/isa/fd.c
sys/pci/pci.c
sys/pci/pcisupport.c