tools: s/arm/arm32/ in foreign header checks.
authorIan Campbell <ian.campbell@citrix.com>
Fri, 22 Feb 2013 08:57:40 +0000 (08:57 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 22 Feb 2013 12:14:50 +0000 (12:14 +0000)
Also define __arm__ARM32 as required.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
.gitignore
tools/include/xen-foreign/Makefile
tools/include/xen-foreign/mkheader.py
tools/include/xen-foreign/reference.size

index ce6eeb3868385dc2ed74bffd492546d841e725ec..3834e4b8bbf9813904bace92372bc70d4dbca774 100644 (file)
@@ -366,7 +366,7 @@ tools/include/xen-foreign/checker.c
 tools/include/xen-foreign/structs.pyc
 tools/include/xen-foreign/x86_32.h
 tools/include/xen-foreign/x86_64.h
-tools/include/xen-foreign/arm.h
+tools/include/xen-foreign/arm32.h
 
 .git
 tools/misc/xen-hptool
index cfaf790d4512fa28aed08c4fdab384206fae3342..5bc2d46b3e7dde27dff7de74ae80e60d8773b1fa 100644 (file)
@@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 
 ROOT = $(XEN_ROOT)/xen/include/public
 
-architectures := arm x86_32 x86_64
+architectures := arm32 x86_32 x86_64
 headers := $(patsubst %, %.h, $(architectures))
 
 .PHONY: all clean check-headers
@@ -22,7 +22,7 @@ check-headers: checker
        diff -u reference.size tmp.size
        rm tmp.size
 
-arm.h: mkheader.py structs.py $(ROOT)/arch-arm.h
+arm32.h: mkheader.py structs.py $(ROOT)/arch-arm.h
        $(PYTHON) $< $* $@ $(filter %.h,$^)
 
 x86_32.h: mkheader.py structs.py $(ROOT)/arch-x86/xen-x86_32.h $(ROOT)/arch-x86/xen.h $(ROOT)/xen.h
index d189b076e8a01e1cf02a4189f5a4b855ff609fdb..eee28f309429dd58a8bd4099b8a616e8368d5a31 100644 (file)
@@ -17,11 +17,15 @@ header = {};
 footer = {};
 
 #arm
-inttypes["arm"] = {
+inttypes["arm32"] = {
     "unsigned long" : "uint32_t",
     "long"          : "uint32_t",
     "xen_pfn_t"     : "uint64_t",
 };
+header["arm32"] = """
+#define __arm___ARM32 1
+""";
+
 
 # x86_32
 inttypes["x86_32"] = {
index a2cbfd60f3a5ae92e4eaca09205a4bbf413aa47b..9f1bfac0c35749b18a7f252d686df28e9ee62486 100644 (file)
@@ -1,5 +1,5 @@
 
-structs                   |     arm  x86_32  x86_64
+structs                   |   arm32  x86_32  x86_64
 
 start_info                |       -    1112    1168
 trap_info                 |       -       8      16