Date: Thu, 29 Jun 2000 20:27:27 +0900 From: haro@tk.kubota.co.jp (Munehiro Matsuda) To: holm@freibergnet.de Cc: freebsd-current@freebsd.org, kuwa@flab.fujitsu.co.jp Subject: Re: -current from yesterday ; annoying messages.. Message-ID: <20000629202727R.haro@tk.kubota.co.jp> In-Reply-To: <20000629093231.A15828@pegasus.freibergnet.de> References: <20000629093231.A15828@pegasus.freibergnet.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, From: Holm Tiffe <holm@freibergnet.de> Date: Thu, 29 Jun 2000 09:32:31 +0200 ::Hi, ::can pleasee anyone explain what this means and how I can get rid of this ? :: ::fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0 ::fdc0: FIFO enabled, 8 bytes threshold ::fd0: <1440-KB 3.5" drive> on fdc0 drive 0 ::fd1: <1200-KB 5.25" drive> on fdc0 drive 1 ::WARNING: "fd" is usurping "fd"'s cdevsw[] ::WARNING: "fd" is usurping "fd"'s bmaj ::^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ :: ::and ist this normal ? Because you have two floppy drives, and cdevsw_add() is being called twice. The following patch should fix it. This patch was originaly created by Kuwamura-san for PC98 fd driver. It's been working for me, for few month. ---8<------8<------8<------8<--- Cut Here ---8<------8<------8<------8<--- --- sys/isa/fd.c.orig Fri May 26 12:20:36 2000 +++ sys/isa/fd.c Thu Jun 29 20:14:11 2000 @@ -1099,10 +1099,14 @@ int typemynor; int typesize; #endif + static int32_t fd_cdev_done = 0; fd = device_get_softc(dev); - cdevsw_add(&fd_cdevsw); /* XXX */ + if (!fd_cdev_done) { + cdevsw_add(&fd_cdevsw); /* XXX */ + fd_cdev_done++; + } make_dev(&fd_cdevsw, (fd->fdu << 6), UID_ROOT, GID_OPERATOR, 0640, "rfd%d", fd->fdu); ---8<------8<------8<------8<--- Cut Here ---8<------8<------8<------8<--- ::sio1 at port 0x2f8-0x2ff irq 3 on isa0 ::sio1: type 16550A ::vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ::isa0: <@@@0000> found ::^^^^^^^^^^^^^^^^^^^^^ ::unknown: <PNP0303> can't assign resources Same here. I also would like to know about it. Hope this helps, Haro =------------------------------------------------------------------------------ _ _ Munehiro (haro) Matsuda -|- /_\ |_|_| Business Incubation Dept., Kubota Corp. /|\ |_| |_|_| 1-3 Nihonbashi-Muromachi 3-Chome Chuo-ku Tokyo 103-8310, Japan Tel: +81-3-3245-3318 Fax: +81-3-3245-3315 Email: haro@kubota.co.jp To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000629202727R.haro>