From owner-cvs-sys Wed Jan 31 10:05:24 1996 Return-Path: owner-cvs-sys Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA22734 for cvs-sys-outgoing; Wed, 31 Jan 1996 10:05:24 -0800 (PST) Received: (from gibbs@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA22726 Wed, 31 Jan 1996 10:05:22 -0800 (PST) Date: Wed, 31 Jan 1996 10:05:22 -0800 (PST) From: "Justin T. Gibbs" Message-Id: <199601311805.KAA22726@freefall.freebsd.org> To: CVS-committers, cvs-sys Subject: cvs commit: src/sys/kern kern_devconf.c Sender: owner-cvs-sys@FreeBSD.ORG Precedence: bulk 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