freebsd-src/sys/dev/dcons
Marius Strobl 3da80d3a0e Check the return values of contigmalloc(9) as well as bus_dma(9)
functions and stop attaching of dcons(4) and dcons_crom(4) if
they indicate failure. This fixes a panic seen on sparc64 machines
with no free physical memory in the requested 32-bit region but
still doesn't make dcons(4)/dcons_crom(4) these work. I think
the latter can be fixed by simply specifying ~0UL as the upper
limit for contigmalloc(9) and letting the bounce pages and the
IOMMU respectively handle limitations of the DMA engine. I didn't
want to change that without the consensus of simokawa@ though,
who unfortunately didn't reply so far.

MFC after:	1 week
2009-01-07 21:25:44 +00:00
..
dcons.c
dcons.h Integrate the new MPSAFE TTY layer to the FreeBSD operating system. 2008-08-20 08:31:58 +00:00
dcons_crom.c Check the return values of contigmalloc(9) as well as bus_dma(9) 2009-01-07 21:25:44 +00:00
dcons_os.c Check the return values of contigmalloc(9) as well as bus_dma(9) 2009-01-07 21:25:44 +00:00
dcons_os.h Poll bus resets on FireWire while kdb/gdb is active. 2007-06-08 00:54:44 +00:00