[MINIOS] fix x86_64 p2m map and CFLAGS

Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
Tim Deegan committed 2007-08-02 09:02:08 +01:00
1 parent b1757490f0
commit 5c0ffac838
3 files changed
+10 -3

No files matched your search

+4
View File
@@ -123,3 +123,7 @@ cscope:
tags:
$(all_sources) | xargs ctags
.PHONY: TAGS
TAGS:
$(all_sources) | xargs etags
+3
View File
@@ -3,6 +3,9 @@
# 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!
include arch.mk
+3 -3
View File
@@ -405,9 +405,9 @@ void *map_frames(unsigned long *f, unsigned long n)
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))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.