Displaying 1 result from an estimated 1 matches for "l2_mask".
Did you mean:
l32_mask
2005 Aug 05
0
[patch] pae >4gb fix #1
...+ xen/arch/x86/x86_32/mm.c 2005-08-05 16:05:39.115794436 +0200
@@ -98,7 +98,9 @@
* installed, but at least 4MB to cover 4GB address space. This is needed
* to make PCI I/O memory address lookups work in guests.
*/
- if ( (mpt_size = max_page * 4) < (4*1024*1024) )
+#define L2_MASK ((1<<L2_PAGETABLE_SHIFT)-1)
+ mpt_size = (max_page * 4 + L2_MASK) & ~L2_MASK;
+ if (mpt_size < 4*1024*1024)
mpt_size = 4*1024*1024;
for ( i = 0; i < (mpt_size >> L2_PAGETABLE_SHIFT); i++ )
{
_______________________________________________
Xen-devel ma...