aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-arm/platform.h
diff options
context:
space:
mode:
authorJulien Grall <julien.grall@linaro.org>2013-04-27 22:52:44 +0100
committerIan Campbell <ian.campbell@citrix.com>2013-05-13 12:00:00 +0100
commit3c186690bb6c8e7da7a24f83c8d8c884b1ba46a2 (patch)
treeafcb20bad8334cdb567737747b8ac6a46c249c7c /xen/include/asm-arm/platform.h
parent93f8194038ebddca5898cf889b45a5dc0ba903c1 (diff)
downloadxen-3c186690bb6c8e7da7a24f83c8d8c884b1ba46a2.tar.gz
xen-3c186690bb6c8e7da7a24f83c8d8c884b1ba46a2.tar.bz2
xen-3c186690bb6c8e7da7a24f83c8d8c884b1ba46a2.zip
xen/arm: WORKAROUND 1:1 memory mapping for dom0
Currently xen doesn't implement SYS MMU. When a device will talk with dom0 with DMA request the domain will use GFN instead of MFN. For instance on the arndale board, without this patch the network doesn't work. The 1:1 mapping is a workaround and MUST be remove as soon as a SYS MMU is implemented in XEN. Signed-off-by: Julien Grall <julien.grall@linaro.org> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'xen/include/asm-arm/platform.h')
-rw-r--r--xen/include/asm-arm/platform.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/include/asm-arm/platform.h b/xen/include/asm-arm/platform.h
index e116265b24..f460e9cb67 100644
--- a/xen/include/asm-arm/platform.h
+++ b/xen/include/asm-arm/platform.h
@@ -28,6 +28,12 @@ struct platform_desc {
uint32_t (*quirks)(void);
};
+/*
+ * Quirk to map dom0 memory in 1:1
+ * Usefull on platform where System MMU is not yet implemented
+ */
+#define PLATFORM_QUIRK_DOM0_MAPPING_11 (1 << 0)
+
int __init platform_init(void);
int __init platform_init_time(void);
int __init platform_specific_mapping(struct domain *d);