mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
[MINIOS] fix x86_64 p2m map and CFLAGS
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
This commit is contained in:
1 parent
b1757490f0
commit
5c0ffac838
3 files changed
+10
-3
No files matched your search
@@ -123,3 +123,7 @@ cscope:
|
||||
tags:
|
||||
$(all_sources) | xargs ctags
|
||||
|
||||
.PHONY: TAGS
|
||||
TAGS:
|
||||
$(all_sources) | xargs etags
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||