All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] pae: fix fixme ;)
@ 2005-08-08 14:55 Gerd Knorr
  0 siblings, 0 replies; only message in thread
From: Gerd Knorr @ 2005-08-08 14:55 UTC (permalink / raw)
  To: xen-devel

  Hi,

That one is obviously needed to make pae xen-linux work with
more than 4GB.

  Gerd

diff -urp xen-2005-08-08-vanilla/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h xen-2005-08-08/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h
--- xen-2005-08-08-vanilla/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h	2005-07-13 15:06:39.000000000 +0200
+++ xen-2005-08-08/linux-2.6-xen-sparse/include/asm-xen/asm-i386/pgtable-3level.h	2005-08-08 15:03:05.000000000 +0200
@@ -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);                              \

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-08-08 14:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-08 14:55 [patch] pae: fix fixme ;) Gerd Knorr

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.