Re: Patch for 3.5/0.5 address space split

From: Herbert Poetzl (herbert@13thfloor.at)
Date: Sun Jul 06 2003 - 15:18:44 EST


On Sun, Jul 06, 2003 at 09:47:20AM -0700, Martin J. Bligh wrote:
> > Could anybody point out to patches available for 3.5/0.5 address
> > space split for 2.4 and 2.5 kernels?
>
> It's in 2.4-aa and 2.5-mjb trees. 2.5 has the added feature that it
> can now do that for PAE (> 4GB) machines (from Dave Hansen).
>
> > Any other working options? I managed to compile 2.4.21 kernel
> > with 1/3 split, but not with 0.5/3.5. The last one simply doesn't
> > boot. What could I be doing wrong?
>
> You can chage PAGE_OFFSET yourself, but there's a few places to change
> it ... do a grep -r for "C0000000", and hack all those - one of them
> is in some .lds file or something, I forget.

I change it to use QEMU an x86 emulator ...

arch/i386/vmlinux.lds
include/asm-i386/page.h

the following patch changes it from 0xC0000000 to 0x90000000

HTH,
Herbert

diff -NurbP --minimal linux-2.4.21-P1/arch/i386/vmlinux.lds linux-2.4.21-P1-qemu/arch/i386/vmlinux.lds
--- linux-2.4.21-P1/arch/i386/vmlinux.lds Mon Feb 25 20:37:53 2002
+++ linux-2.4.21-P1-qemu/arch/i386/vmlinux.lds Fri Jun 27 15:48:35 2003
@@ -6,7 +6,7 @@
 ENTRY(_start)
 SECTIONS
 {
- . = 0xC0000000 + 0x100000;
+ . = 0x90000000 + 0x100000;
   _text = .; /* Text and read-only data */
   .text : {
        *(.text)
diff -NurbP --minimal linux-2.4.21-P1/include/asm-i386/page.h linux-2.4.21-P1-qemu/include/asm-i386/page.h
--- linux-2.4.21-P1/include/asm-i386/page.h Thu Jun 26 23:40:59 2003
+++ linux-2.4.21-P1-qemu/include/asm-i386/page.h Fri Jun 27 15:47:52 2003
@@ -78,7 +78,7 @@
  * and CONFIG_HIGHMEM64G options in the kernel configuration.
  */
 
-#define __PAGE_OFFSET (0xC0000000)
+#define __PAGE_OFFSET (0x90000000)
 
 /*
  * This much address space is reserved for vmalloc() and iomap()

>
> M.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 07 2003 - 22:00:27 EST