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] linux/i386: adjust the way _PAGE_IO gets defined

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] linux/i386: adjust the way _PAGE_IO gets defined
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Fri, 04 Apr 2008 12:50:35 +0100
Delivery-date: Fri, 04 Apr 2008 04:50:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
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
Instead of adding a duplicate definition for the newly used bit, rename
the definition previously present, which permits catching both current
(out-of-tree) or future conflicting uses.

As usual, written and tested on 2.6.25-rc8 and made apply to the 2.6.18
tree without further testing.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

Index: head-2008-04-02/include/asm-i386/mach-xen/asm/pgtable.h
===================================================================
--- head-2008-04-02.orig/include/asm-i386/mach-xen/asm/pgtable.h        
2008-04-02 14:51:51.000000000 +0200
+++ head-2008-04-02/include/asm-i386/mach-xen/asm/pgtable.h     2008-04-02 
14:53:50.000000000 +0200
@@ -105,8 +105,9 @@ void paging_init(void);
 #define _PAGE_BIT_DIRTY                6
 #define _PAGE_BIT_PSE          7       /* 4 MB (or 2MB) page, Pentium+, if 
present.. */
 #define _PAGE_BIT_GLOBAL       8       /* Global TLB entry PPro+ */
-#define _PAGE_BIT_UNUSED1      9       /* available for programmer */
-#define _PAGE_BIT_UNUSED2      10
+#define _PAGE_BIT_IO           9       /* Mapped page is I/O or foreign and
+                                        * has no associated page struct. */
+#define _PAGE_BIT_UNUSED2      10      /* available for programmer */
 #define _PAGE_BIT_UNUSED3      11
 #define _PAGE_BIT_NX           63
 
@@ -119,8 +120,9 @@ void paging_init(void);
 #define _PAGE_DIRTY    0x040
 #define _PAGE_PSE      0x080   /* 4 MB (or 2MB) page, Pentium+, if present.. */
 #define _PAGE_GLOBAL   0x100   /* Global TLB entry PPro+ */
-#define _PAGE_UNUSED1  0x200   /* available for programmer */
-#define _PAGE_UNUSED2  0x400
+#define _PAGE_IO       0x200   /* Mapped page is I/O or foreign and has no
+                                * associated page struct. */
+#define _PAGE_UNUSED2  0x400   /* available for programmer */
 #define _PAGE_UNUSED3  0x800
 
 /* If _PAGE_PRESENT is clear, we use these: */
@@ -133,9 +135,6 @@ void paging_init(void);
 #define _PAGE_NX       0
 #endif
 
-/* Mapped page is I/O or foreign and has no associated page struct. */
-#define _PAGE_IO       0x200
-
 #define _PAGE_TABLE    (_PAGE_PRESENT | _PAGE_RW | _PAGE_USER | _PAGE_ACCESSED 
| _PAGE_DIRTY)
 #define _KERNPG_TABLE  (_PAGE_PRESENT | _PAGE_RW | _PAGE_ACCESSED | 
_PAGE_DIRTY)
 #define _PAGE_CHG_MASK (PTE_MASK | _PAGE_ACCESSED | _PAGE_DIRTY | _PAGE_IO)




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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] linux/i386: adjust the way _PAGE_IO gets defined, Jan Beulich <=