WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [patch] pae: fix fixme ;)

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [patch] pae: fix fixme ;)
From: Gerd Knorr <kraxel@xxxxxxx>
Date: Mon, 8 Aug 2005 16:55:09 +0200
Delivery-date: Mon, 08 Aug 2005 14:58:20 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
  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);                              \

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [patch] pae: fix fixme ;), Gerd Knorr <=