bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

loading kernels with different VMA and LMA


From: Rogelio M. Serrano Jr.
Subject: loading kernels with different VMA and LMA
Date: Thu, 29 Mar 2001 02:28:22 +0800 (PHT)

It worked.
I modified stage2/boot.c at load_image. 

line 110      if (((unsigned int) entry_addr) < 0x100000) {
               errnum = ERR_BELOW_1MB;
              } else {
                  if (type == KERNEL_TYPE_MULTIBOOT) {
                      entry_addr = (entry_func) 0x100000;
                  }
               }
since im in a hurry, i just used 0x100000 since thats what we use any way.
there is a better way im sure. like extending the multiboot header in the
os image or use A_OUT_KLUDGE. i would prefer the first the second is
well... a kludge. 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]