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

[Xen-devel] [PATCH] [IA64] define BYTES_PER_LONG to fix compilation error.



[IA64] define BYTES_PER_LONG to fix compilation error.

This patch fixes the following compilation error on ia64.

> gdbstub.c: In function str_to_native_ulong:
> gdbstub.c:123: error: BYTES_PER_LONG undeclared (first use in this function)
> gdbstub.c:123: error: (Each undeclared identifier is reported only once
> gdbstub.c:123: error: for each function it appears in.)

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>

diff --git a/xen/include/asm-ia64/xentypes.h b/xen/include/asm-ia64/xentypes.h
--- a/xen/include/asm-ia64/xentypes.h
+++ b/xen/include/asm-ia64/xentypes.h
@@ -10,6 +10,10 @@ typedef char bool_t;
 #define test_and_set_bool(b)   xchg(&(b), 1)
 #define test_and_clear_bool(b) xchg(&(b), 0)
 
+#define BITES_PER_LONG  64
+#define BYTES_PER_LONG  8
+#define LONG_BYTEORDER  3
+
 #endif /* !__ASSEMBLY__ */
 
 #endif /* _ASM_IA64_XENTYPES_H */


-- 
yamahata

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


 


Rackspace

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