]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Long-long time ago, when the trees were large and memory expensive amount of
authorsobomax <sobomax@FreeBSD.org>
Mon, 19 Dec 2005 09:00:11 +0000 (09:00 +0000)
committersobomax <sobomax@FreeBSD.org>
Mon, 19 Dec 2005 09:00:11 +0000 (09:00 +0000)
commit85788ffcca906e7e6e886631b334ba779bff98e4
treed778d68150693133ba399d9ee9b1cc2de48bf8f7
parent233424bff1fa05b75351adf43060dcb07680fe1f
Long-long time ago, when the trees were large and memory expensive amount of
memory directly available to loader(8) and friends was limited to 640K on i386.
Those times have passed long time ago and now loader(8) can directly access
up to 4GB of RAM at least theoretically. At the same time, there are several
places where it's assumed that malloc() will only allocate memory within
first megabyte.

Remove that assumption by allocating appropriate bounce buffers for BIOS
calls on stack where necessary.

This allows using memory above first megabyte for heap if necessary.
sys/boot/i386/libi386/Makefile
sys/boot/i386/libi386/biosdisk.c
sys/boot/i386/libi386/biospnp.c
sys/boot/i386/libi386/biossmap.c
sys/boot/i386/libi386/i386_copy.c