mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
That one is obviously needed to make pae xen-linux work with
more than 4GB.
This commit is contained in:
1 parent
31b2ad0533
commit
bc7615a229
1 file changed
+2
-1
@@ -132,7 +132,8 @@ static inline int pte_none(pte_t pte)
|
||||
|
||||
#define INVALID_P2M_ENTRY (~0U)
|
||||
#define FOREIGN_FRAME(_m) ((_m) | (1UL<<((sizeof(unsigned long)*8)-1)))
|
||||
#define pte_mfn(_pte) ((_pte).pte_low >> PAGE_SHIFT) /* FIXME */
|
||||
#define pte_mfn(_pte) ( ((_pte).pte_low >> PAGE_SHIFT) |\
|
||||
(((_pte).pte_high & 0xfff) << (32-PAGE_SHIFT)) )
|
||||
#define pte_pfn(_pte) \
|
||||
({ \
|
||||
unsigned long mfn = pte_mfn(_pte); \
|
||||
|
||||