From owner-freebsd-stable Tue Jan 16 08:24:15 1996 Return-Path: owner-stable Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id IAA23473 for stable-outgoing; Tue, 16 Jan 1996 08:24:15 -0800 (PST) Received: from who.cdrom.com (who.cdrom.com [192.216.222.3]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id IAA23419 for ; Tue, 16 Jan 1996 08:24:00 -0800 (PST) Received: from sivka.carrier.kiev.ua (root@sivka.carrier.kiev.ua [193.125.68.130]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id FAA25884 for ; Tue, 16 Jan 1996 05:23:53 -0800 Received: from elvisti.kiev.ua (uucp@localhost) by sivka.carrier.kiev.ua (Sendmail 8.who.cares/5) with UUCP id PAA01060 for stable@freebsd.org; Tue, 16 Jan 1996 15:24:01 +0200 Received: from office.elvisti.kiev.ua (office.elvisti.kiev.ua [193.125.28.33]) by spider2.elvisti.kiev.ua (8.6.12/8.ElVisti) with ESMTP id PAA09863 for ; Tue, 16 Jan 1996 15:17:19 +0200 Received: (from stesin@localhost) by office.elvisti.kiev.ua (8.6.12/8.ElVisti) id PAA14528 for stable@freebsd.org; Tue, 16 Jan 1996 15:17:18 +0200 From: "Andrew V. Stesin" Message-Id: <199601161317.PAA14528@office.elvisti.kiev.ua> Subject: 2.1 config and IObase constants strangeness To: stable@FreeBSD.org Date: Tue, 16 Jan 1996 15:17:17 +0200 (EET) X-Mailer: ELM [version 2.4 PL24alpha5] Content-Type: text Sender: owner-stable@FreeBSD.org Precedence: bulk Hello, while I'm busy with equipping a new box, I discovered an unexpected config (8) behavior. As the hardware configuration is comparatively complex, IObase space is filled in an unusual manner, I'm afraid of overlaps and I never bothered remembering all "magic" default IObase values for different devices (like IO_FD1 == 0x3f0 for fdc0), I changed the "magic" constants in the definitions of fdc0 and sio[01] to their hex values, (i.e. "IO_FD1" to 0x3f0 for fdc0 line) for fdc0, sio0, sio1 devices. Surprizingly, config (8) didn't tell me about any errors, but resulting ioconf.c has become broken: config (8) inserted extra (erroneous) declarations for siointr (two times) and fdintr. The system is 2.1-very-late-beta (951026-SNAP). Is this a correct behaviour? (Or maybe fixed in -current, as always? :) Aren't magic IObase constants considered harmful? -- With best regards -- Andrew Stesin. +380 (44) 2760188 +380 (44) 2713457 +380 (44) 2713560 An undocumented feature is a coding error.