[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] Fix the x86/64 build. My change to make PAGE_SIZE a signed quantity



ChangeSet 1.1734, 2005/06/23 10:41:14+01:00, kaf24@xxxxxxxxxxxxxxxxxxxx

        Fix the x86/64 build. My change to make PAGE_SIZE a signed quantity
        also made it int rather than long, which turns out to break stuff.
        Debugged by Xin Li at Intel.
        Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>



 page.h |    4 ++++
 1 files changed, 4 insertions(+)


diff -Nru a/xen/include/asm-x86/page.h b/xen/include/asm-x86/page.h
--- a/xen/include/asm-x86/page.h        2005-06-23 07:05:51 -04:00
+++ b/xen/include/asm-x86/page.h        2005-06-23 07:05:51 -04:00
@@ -6,7 +6,11 @@
  * It is important that the masks are signed quantities. This ensures that
  * the compiler sign-extends a 32-bit mask to 64 bits if that is required.
  */
+#ifndef __ASSEMBLY__
+#define PAGE_SIZE           (1L << PAGE_SHIFT)
+#else
 #define PAGE_SIZE           (1 << PAGE_SHIFT)
+#endif
 #define PAGE_MASK           (~(PAGE_SIZE-1))
 #define PAGE_FLAG_MASK      (~0)
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.