summaryrefslogtreecommitdiff
path: root/i386
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2012-05-05 13:16:36 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2012-05-05 13:16:36 +0200
commitb3027e26ccc8de8ea2ed092a083ed8f1e22c8a9e (patch)
treec13438f7fc84e0454a2d7041b8a95e43a5e20705 /i386
parentfae22b238ae1ed14d9acb0f19e9912f1ea9f9b82 (diff)
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.
Diffstat (limited to 'i386')
-rw-r--r--i386/Makefrag.am2
-rw-r--r--i386/i386/vm_param.h7
2 files changed, 4 insertions, 5 deletions
diff --git a/i386/Makefrag.am b/i386/Makefrag.am
index ea5149f..62ac61e 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 2bcd084..ada3563 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 */