From b3027e26ccc8de8ea2ed092a083ed8f1e22c8a9e Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 5 May 2012 13:16:36 +0200 Subject: Offset kernel addresses by 3GiB This permits better trace support in kdb. * i386/i386/vm_param.h (VM_MIN_KERNEL_ADDRESS): Set to 0xC0000000 * i386/Makefrag.am (_START): Set to 0xC0100000. --- i386/Makefrag.am | 2 +- i386/i386/vm_param.h | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/i386/Makefrag.am b/i386/Makefrag.am index ea5149f5..62ac61ed 100644 --- a/i386/Makefrag.am +++ b/i386/Makefrag.am @@ -199,7 +199,7 @@ EXTRA_DIST += \ i386/ldscript if PLATFORM_at gnumach_LINKFLAGS += \ - --defsym _START=0x100000 \ + --defsym _START=0xC0100000 \ --defsym _START_MAP=0x100000 \ -T '$(srcdir)'/i386/ldscript endif diff --git a/i386/i386/vm_param.h b/i386/i386/vm_param.h index 2bcd084c..ada35638 100644 --- a/i386/i386/vm_param.h +++ b/i386/i386/vm_param.h @@ -35,10 +35,9 @@ #define INIT_VM_MIN_KERNEL_ADDRESS VM_MIN_KERNEL_ADDRESS #else /* MACH_XEN */ /* This can be changed freely to separate kernel addresses from user addresses - * for better trace support in kdb, but make sure that your machine has that - * much physical memory for GRUB to be able to map it, and offset the _START - * symbol by the same amount. */ -#define VM_MIN_KERNEL_ADDRESS 0x00000000UL + * for better trace support in kdb; the _START symbol has to be offset by the + * same amount. */ +#define VM_MIN_KERNEL_ADDRESS 0xC0000000UL /* This must remain 0 */ #define INIT_VM_MIN_KERNEL_ADDRESS 0x00000000UL #endif /* MACH_XEN */ -- cgit v1.2.3