]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
For the cases when loading bzip2-compressed kernels enabled use last
authorMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 21 Dec 2005 02:17:58 +0000 (02:17 +0000)
committerMaxim Sobolev <sobomax@FreeBSD.org>
Wed, 21 Dec 2005 02:17:58 +0000 (02:17 +0000)
commite4f5866fd5a37c91144f8d9b23440314eb36a7b6
tree7b8ac94c121170cce171a82aef24f35810ee345f
parentd6209fadb2664db857f969e12e0ecd0bec0d7428
For the cases when loading bzip2-compressed kernels enabled use last
3MB of physical memory for heap instead of range between 1MB and 4MB.
This makes this feature working with PAE and amd64 kernels, which are
loaded at 2MB. Teach i386_copyin() to avoid using range allocated by
heap in such case, so that it won't trash heap in the low memory
conditions.

This should make loading bzip2-compressed kernels/modules/mfs images
generally useable, so that re@ team is welcome to evaluate merits
of using this feature in the installation CDs.

Valuable suggestions by: jhb
sys/boot/i386/libi386/biosmem.c
sys/boot/i386/libi386/i386_copy.c
sys/boot/i386/libi386/libi386.h
sys/boot/i386/loader/main.c