aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2000-04-30 10:01:56 +0000
committerBruce Evans <bde@FreeBSD.org>2000-04-30 10:01:56 +0000
commit3aae7b16d2372c50b8167aafc39cc030e811afe0 (patch)
treedfe155f74aad381c71aaab7fe707453b9e35dd72 /sys/dev/fdc/fdc.c
parentac4445057f0d7469bb841e5f5a0005cbe33c06c8 (diff)
downloadsrc-3aae7b16d2372c50b8167aafc39cc030e811afe0.tar.gz
src-3aae7b16d2372c50b8167aafc39cc030e811afe0.zip
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().
Notes
Notes: svn path=/head/; revision=59783
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r--sys/dev/fdc/fdc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index c1b02b1ec409..cd4df134945b 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -660,7 +660,7 @@ static struct isa_pnp_id fdc_ids[] = {
};
static int
-fdc_read_ivar(device_t dev, device_t child, int which, u_long *result)
+fdc_read_ivar(device_t dev, device_t child, int which, uintptr_t *result)
{
struct fdc_ivars *ivars = device_get_ivars(child);