ia64/xen-unstable
changeset 5552:0f6d2253b0fc
bitkeeper revision 1.1734 (42ba83ba7bRweVDldhJ4nYZQomQ8Lg)
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@xensource.com>
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@xensource.com>
author | kaf24@firebug.cl.cam.ac.uk |
---|---|
date | Thu Jun 23 09:41:14 2005 +0000 (2005-06-23) |
parents | 30082c72ed69 |
children | 106cb416f08c |
files | xen/include/asm-x86/page.h |
line diff
1.1 --- a/xen/include/asm-x86/page.h Thu Jun 23 09:35:57 2005 +0000 1.2 +++ b/xen/include/asm-x86/page.h Thu Jun 23 09:41:14 2005 +0000 1.3 @@ -6,7 +6,11 @@ 1.4 * It is important that the masks are signed quantities. This ensures that 1.5 * the compiler sign-extends a 32-bit mask to 64 bits if that is required. 1.6 */ 1.7 +#ifndef __ASSEMBLY__ 1.8 +#define PAGE_SIZE (1L << PAGE_SHIFT) 1.9 +#else 1.10 #define PAGE_SIZE (1 << PAGE_SHIFT) 1.11 +#endif 1.12 #define PAGE_MASK (~(PAGE_SIZE-1)) 1.13 #define PAGE_FLAG_MASK (~0) 1.14