diff options
author | dfr <dfr@FreeBSD.org> | 2000-04-08 14:17:18 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2000-04-08 14:17:18 +0000 |
commit | c9bf4be3c29d14ce9b4af20459517870eed8bce9 (patch) | |
tree | b0ea9aab688814aec913835039451900941b1619 /sys/i386/isa/isa_compat.c | |
parent | 2d18287eb4e48e437d5e7a756df6f20a59c7e176 (diff) | |
download | FreeBSD-src-c9bf4be3c29d14ce9b4af20459517870eed8bce9.zip FreeBSD-src-c9bf4be3c29d14ce9b4af20459517870eed8bce9.tar.gz |
* Factor out the object system from new-bus so that it can be used by
non-device code.
* Re-implement the method dispatch to improve efficiency. The new system
takes about 40ns for a method dispatch on a 300Mhz PII which is only
10ns slower than a direct function call on the same hardware.
This changes the new-bus ABI slightly so make sure you re-compile any
driver modules which you use.
Diffstat (limited to 'sys/i386/isa/isa_compat.c')
-rw-r--r-- | sys/i386/isa/isa_compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/isa_compat.c b/sys/i386/isa/isa_compat.c index 3ae09e0..c7617ed 100644 --- a/sys/i386/isa/isa_compat.c +++ b/sys/i386/isa/isa_compat.c @@ -289,7 +289,7 @@ isa_wrap_old_drivers(void) bzero(driver, sizeof(driver_t)); driver->name = op->driver->name; driver->methods = isa_compat_methods; - driver->softc = sizeof(struct isa_device); + driver->size = sizeof(struct isa_device); driver->priv = op; if (op->driver->sensitive_hw) resource_set_int(op->driver->name, -1, "sensitive", 1); |