Mailing List Archive

[xen-unstable] [MINIOS] fix x86_64 p2m map and CFLAGS
# HG changeset patch
# User Tim Deegan <Tim.Deegan@xensource.com>
# Date 1186041728 -3600
# Node ID bf85b467ee8963c986997654452911bd82a27edb
# Parent 0c79a9414f8db20706a10db2b586f1a1770193e3
[MINIOS] fix x86_64 p2m map and CFLAGS
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
---
extras/mini-os/Makefile | 4 ++++
extras/mini-os/arch/x86/Makefile | 3 +++
extras/mini-os/arch/x86/mm.c | 6 +++---
3 files changed, 10 insertions(+), 3 deletions(-)

diff -r 0c79a9414f8d -r bf85b467ee89 extras/mini-os/Makefile
--- a/extras/mini-os/Makefile Wed Aug 01 12:55:10 2007 +0100
+++ b/extras/mini-os/Makefile Thu Aug 02 09:02:08 2007 +0100
@@ -123,3 +123,7 @@ tags:
tags:
$(all_sources) | xargs ctags

+.PHONY: TAGS
+TAGS:
+ $(all_sources) | xargs etags
+
diff -r 0c79a9414f8d -r bf85b467ee89 extras/mini-os/arch/x86/Makefile
--- a/extras/mini-os/arch/x86/Makefile Wed Aug 01 12:55:10 2007 +0100
+++ b/extras/mini-os/arch/x86/Makefile Thu Aug 02 09:02:08 2007 +0100
@@ -2,6 +2,9 @@
# x86 architecture specific makefiles.
# It's is used for x86_32, x86_32y and x86_64
#
+
+XEN_ROOT = ../../../..
+include $(XEN_ROOT)/Config.mk

# include arch.mk has to be before mini-os.mk!

diff -r 0c79a9414f8d -r bf85b467ee89 extras/mini-os/arch/x86/mm.c
--- a/extras/mini-os/arch/x86/mm.c Wed Aug 01 12:55:10 2007 +0100
+++ b/extras/mini-os/arch/x86/mm.c Thu Aug 02 09:02:08 2007 +0100
@@ -405,9 +405,9 @@ void *map_frames(unsigned long *f, unsig

void arch_init_p2m(unsigned long max_pfn)
{
-#define L1_P2M_SHIFT 10
-#define L2_P2M_SHIFT 20
-#define L3_P2M_SHIFT 30
+#define L1_P2M_SHIFT 9
+#define L2_P2M_SHIFT 18
+#define L3_P2M_SHIFT 27
#define L1_P2M_ENTRIES (1 << L1_P2M_SHIFT)
#define L2_P2M_ENTRIES (1 << (L2_P2M_SHIFT - L1_P2M_SHIFT))
#define L3_P2M_ENTRIES (1 << (L3_P2M_SHIFT - L2_P2M_SHIFT))

_______________________________________________
Xen-changelog mailing list
Xen-changelog@lists.xensource.com
http://lists.xensource.com/xen-changelog