Date: Wed, 31 Jan 1996 10:05:22 -0800 (PST) From: "Justin T. Gibbs" <gibbs> To: CVS-committers, cvs-sys Subject: cvs commit: src/sys/kern kern_devconf.c Message-ID: <199601311805.KAA22726@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
gibbs 96/01/31 10:05:21
Modified: sys/i386/eisa aha1742.c aic7770.c bt74x.c eisaconf.c
Log:
aha1742.c aic7770.c bt74x.c
- Call eisa_registerdev as soon as we have a device match. This allows the
"eisa_add_*" routines to tweak kdc_datalen as the kdc grows and shrinks.
eisaconf.c
- externalize the linked lists that hold our ioaddrs and maddrs.
Revision Changes Path
1.50 +2 -2 src/sys/i386/eisa/aha1742.c
1.24 +2 -2 src/sys/i386/eisa/aic7770.c
1.4 +4 -2 src/sys/i386/eisa/bt74x.c
1.14 +76 -7 src/sys/i386/eisa/eisaconf.c
Modified: sys/kern kern_devconf.c
Log:
Properly calculate the amount of the devconf to output in SYSCTL_OUT.
The code outputs the dc then calls the device specific externalize
routines to fill in the dc_data area. The old code assumed that dc_data
started one byte from the end of the dc, but with the compiler optimizing
alignment and padding, this isn't always the case. Do an explicit
&(dc.dc_data) - &dc. This fixes lsdev -c which must have been broken
for some time.
Revision Changes Path
1.14 +10 -2 src/sys/kern/kern_devconf.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601311805.KAA22726>
