Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Nov 1997 01:31:21 +0100
From:      J Wunsch <j@uriah.heep.sax.de>
To:        FreeBSD bugs list <freebsd-bugs@FreeBSD.org>
Subject:   ed(4) buglet
Message-ID:  <19971128013121.15890@uriah.heep.sax.de>

next in thread | raw e-mail | index | archive | help
ed(4) panics in kvtop() when running on a 3C503 card with no `iomem'
range specified.  Probably, accessing a NULL pointer in the context
of

	/*
	 * Set upper address bits and 8/16 bit access to shared memory
	 */
	if (isa16bit) {
		if (sc->is790) {
			sc->wd_laar_proto = inb(sc->asic_addr + ED_WD_LAAR);
			outb(sc->asic_addr + ED_WD_LAAR, ED_WD_LAAR_M16EN);
		} else { 
			outb(sc->asic_addr + ED_WD_LAAR, (sc->wd_laar_proto =
			    ED_WD_LAAR_L16EN | ED_WD_LAAR_M16EN |
			    ((kvtop(sc->mem_start) >> 19) & ED_WD_LAAR_ADDRHI)))
			      ^^^^^^^^^^^^^^^^^^^^^
;
		}

...is fatal.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19971128013121.15890>