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

[Xen-changelog] [xen-unstable] arm: tools: add arm to foreign structs checking


  • To: xen-changelog@xxxxxxxxxxxxxxxxxxx
  • From: Xen patchbot-unstable <patchbot@xxxxxxx>
  • Date: Fri, 19 Oct 2012 22:11:11 +0000
  • Delivery-date: Fri, 19 Oct 2012 22:11:19 +0000
  • List-id: "Change log for Mercurial \(receive only\)" <xen-changelog.lists.xen.org>

# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1350488628 -3600
# Node ID 980863b9fa4bb5c71a8831d7030816bd5cd8de57
# Parent  b146705d70b3c8e135cfc06a38875e45fd34d638
arm: tools: add arm to foreign structs checking

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
---


diff -r b146705d70b3 -r 980863b9fa4b tools/include/xen-foreign/Makefile
--- a/tools/include/xen-foreign/Makefile        Wed Oct 17 16:43:47 2012 +0100
+++ b/tools/include/xen-foreign/Makefile        Wed Oct 17 16:43:48 2012 +0100
@@ -3,7 +3,7 @@ include $(XEN_ROOT)/tools/Rules.mk
 
 ROOT = $(XEN_ROOT)/xen/include/public
 
-architectures := x86_32 x86_64
+architectures := arm x86_32 x86_64
 headers := $(patsubst %, %.h, $(architectures))
 
 .PHONY: all clean check-headers
@@ -22,6 +22,9 @@ check-headers: checker
        diff -u reference.size tmp.size
        rm tmp.size
 
+arm.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
        $(PYTHON) $< $* $@ $(filter %.h,$^)
 
diff -r b146705d70b3 -r 980863b9fa4b tools/include/xen-foreign/mkheader.py
--- a/tools/include/xen-foreign/mkheader.py     Wed Oct 17 16:43:47 2012 +0100
+++ b/tools/include/xen-foreign/mkheader.py     Wed Oct 17 16:43:48 2012 +0100
@@ -16,6 +16,13 @@ inttypes = {};
 header = {};
 footer = {};
 
+#arm
+inttypes["arm"] = {
+    "unsigned long" : "uint32_t",
+    "long"          : "uint32_t",
+    "xen_pfn_t"     : "uint64_t",
+};
+
 # x86_32
 inttypes["x86_32"] = {
     "unsigned long" : "uint32_t",
diff -r b146705d70b3 -r 980863b9fa4b tools/include/xen-foreign/reference.size
--- a/tools/include/xen-foreign/reference.size  Wed Oct 17 16:43:47 2012 +0100
+++ b/tools/include/xen-foreign/reference.size  Wed Oct 17 16:43:48 2012 +0100
@@ -1,13 +1,13 @@
 
-structs                   |  x86_32  x86_64
+structs                   |     arm  x86_32  x86_64
 
-start_info                |    1112    1168
-trap_info                 |       8      16
-cpu_user_regs             |      68     200
-vcpu_guest_context        |    2800    5168
-arch_vcpu_info            |      24      16
-vcpu_time_info            |      32      32
-vcpu_info                 |      64      64
-arch_shared_info          |     268     280
-shared_info               |    2584    3368
+start_info                |       -    1112    1168
+trap_info                 |       -       8      16
+cpu_user_regs             |     160      68     200
+vcpu_guest_context        |     180    2800    5168
+arch_vcpu_info            |       -      24      16
+vcpu_time_info            |       -      32      32
+vcpu_info                 |       -      64      64
+arch_shared_info          |       -     268     280
+shared_info               |       -    2584    3368
 
diff -r b146705d70b3 -r 980863b9fa4b tools/include/xen-foreign/structs.py
--- a/tools/include/xen-foreign/structs.py      Wed Oct 17 16:43:47 2012 +0100
+++ b/tools/include/xen-foreign/structs.py      Wed Oct 17 16:43:48 2012 +0100
@@ -13,9 +13,14 @@ structs = [ "start_info",
             "arch_shared_info",
             "shared_info" ];
 
-defines = [ "__i386__",
+defines = [ "__arm__",
+            "__i386__",
             "__x86_64__",
 
+            # arm
+            # None
+
+            # x86_{32,64}
             "FLAT_RING1_CS",
             "FLAT_RING1_DS",
             "FLAT_RING1_SS",

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
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®.