direct-io.hg
changeset 6051:dcb2b7a1c621
That one is obviously needed to make pae xen-linux work with
more than 4GB.
more than 4GB.
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Mon Aug 08 16:51:02 2005 +0000 (2005-08-08) |
parents | f586b9ecd474 |
children | 08bc755fe796 |
files | linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h |
line diff
1.1 --- a/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h Mon Aug 08 14:39:29 2005 +0000 1.2 +++ b/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h Mon Aug 08 16:51:02 2005 +0000 1.3 @@ -132,7 +132,8 @@ static inline int pte_none(pte_t pte) 1.4 1.5 #define INVALID_P2M_ENTRY (~0U) 1.6 #define FOREIGN_FRAME(_m) ((_m) | (1UL<<((sizeof(unsigned long)*8)-1))) 1.7 -#define pte_mfn(_pte) ((_pte).pte_low >> PAGE_SHIFT) /* FIXME */ 1.8 +#define pte_mfn(_pte) ( ((_pte).pte_low >> PAGE_SHIFT) |\ 1.9 + (((_pte).pte_high & 0xfff) << (32-PAGE_SHIFT)) ) 1.10 #define pte_pfn(_pte) \ 1.11 ({ \ 1.12 unsigned long mfn = pte_mfn(_pte); \