Displaying 2 results from an estimated 2 matches for "l3_p2m_shift".
Did you mean:
  l2_p2m_shift
  
2009 Feb 07
0
[PATCH] minios: fix p2m on x86
...ch/x86/mm.c
--- a/extras/mini-os/arch/x86/mm.c	Mon Jan 19 17:40:28 2009 +0000
+++ b/extras/mini-os/arch/x86/mm.c	Sat Feb 07 03:44:41 2009 +0100
@@ -550,9 +550,15 @@
 
 void arch_init_p2m(unsigned long max_pfn)
 {
+#ifdef __x86_64__
 #define L1_P2M_SHIFT    9
 #define L2_P2M_SHIFT    18    
 #define L3_P2M_SHIFT    27    
+#else
+#define L1_P2M_SHIFT    10
+#define L2_P2M_SHIFT    20    
+#define L3_P2M_SHIFT    30    
+#endif
 #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...
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier
to use, from an application development point of view.
Overview of patches:
 1  Command line argument parsing support, from Xen.
 2  Weak console handler function.
 3  Build system tweaks for application directories.
 4  Trailing whitespace cleanup. (because it is very messy)
Patch 4 is likely to be more controversial than