Bvmlinuz,Vmlinuz make room for largest possible decompression stack

by moving kernel command line up, and real mode area down
This commit is contained in:
John Reiser
2008-04-24 12:15:07 -07:00
parent 4a8e2e9ed4
commit 8d1192e832
4 changed files with 1986 additions and 1997 deletions
+3 -2
View File
@@ -416,7 +416,7 @@ void PackBvmlinuzI386::buildLoader(const Filter *ft)
// prepare loader
initLoader(stub_i386_linux_kernel_vmlinuz, sizeof(stub_i386_linux_kernel_vmlinuz));
if (0!=page_offset) { // relocatable kernel
addLoader("LINUZ100,LINUZVGA,LINUZ101,LINUZ110",
addLoader("LINUZ000,LINUZVGA,LINUZ101,LINUZ110",
((0!=config_physical_align) ? "LINUZ120" : "LINUZ130"),
"LINUZ140,LZCUTPOI",
(ph.first_offset_found == 1 ? "LINUZ010" : ""),
@@ -452,7 +452,8 @@ void PackBvmlinuzI386::buildLoader(const Filter *ft)
addLoader("LINUZ150", NULL);
unsigned const l_len = getLoaderSize();
unsigned const c_len = ALIGN_UP(ph.c_len, 4u);
unsigned const e_len = getLoaderSectionStart("LZCUTPOI");
unsigned const e_len = getLoaderSectionStart("LZCUTPOI") -
getLoaderSectionStart("LINUZ110");
linker->defineSymbol("compressed_length", c_len);
linker->defineSymbol("load_physical_address", physical_start); // FIXME
if (0!=config_physical_align) {