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

[Xen-devel] [RFC PATCH 1/3] arch, arm32: add definition of paddr_bits



Currently, the paddr_bits variable, which keeps the machine word size,
is not defined for the arm32 architecture. This commits adds its
definition for arm32 in a new header in the architecture-specific
directory.
This change is instrumental to the implementation of the
XEN_DOMCTL_memory_mapping hypercall, added in the following
commit.

Signed-off-by: Arianna Avanzini <avanzini.arianna@xxxxxxxxx>
Cc: Dario Faggioli <dario.faggioli@xxxxxxxxxx>
Cc: Paolo Valente <paolo.valente@xxxxxxxxxx>
Cc: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
Cc: Julien Grall <julien.grall@xxxxxxxxxx>
Cc: Eric Trudeau <etrudeau@xxxxxxxxxxxx>
Cc: Viktor Kleinik <viktor.kleinik@xxxxxxxxxxxxxxx>
---
 xen/arch/arm/arm32/cpu.h        | 7 +++++++
 xen/include/asm-arm/processor.h | 2 ++
 2 files changed, 9 insertions(+)
 create mode 100644 xen/arch/arm/arm32/cpu.h

diff --git a/xen/arch/arm/arm32/cpu.h b/xen/arch/arm/arm32/cpu.h
new file mode 100644
index 0000000..1091051
--- /dev/null
+++ b/xen/arch/arm/arm32/cpu.h
@@ -0,0 +1,7 @@
+#ifndef __ARM_ARM32_CPU_H
+#define __ARM_ARM32_CPU_H
+
+/* ARM-v7 features LPAE (machine word size is 40 bit) */
+unsigned int paddr_bits = 40;
+
+#endif /* __ARM_ARM32_CPU_H */
diff --git a/xen/include/asm-arm/processor.h b/xen/include/asm-arm/processor.h
index 06e638f..65ec3c7 100644
--- a/xen/include/asm-arm/processor.h
+++ b/xen/include/asm-arm/processor.h
@@ -226,6 +226,8 @@ struct cpuinfo_arm {
  * capabilities of CPUs
  */
 
+extern unsigned int paddr_bits;
+
 extern struct cpuinfo_arm boot_cpu_data;
 
 extern void identify_cpu(struct cpuinfo_arm *);
-- 
1.8.5.3


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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