Xen can include various platform support (ie: exynos5, versatile express...) and choose during boot time a set of callbacks for the current board. These callbacks will be called in places where each board can have specific code. For the moment the callbacks are:- platform_init: additional initialization for the platform- platform_init_time: some platform (ie: Exynos 5) needs to initialize the timer with an uncommon way- platform_specific_mapping: add mapping to dom0 which are not specified in the device tree- platform_reset: reset the platform- platform_poweroff: poweroff the platform
- platform_quirks: list of quirks for a specific board.
93f8194 xen/arm: Allow Xen to run on multiple platform without recompilation
xen/arch/arm/Makefile | 1 +
xen/arch/arm/domain_build.c | 4 ++
xen/arch/arm/platform.c | 137 ++++++++++++++++++++++++++++++++++++++++
xen/arch/arm/setup.c | 3 +
xen/arch/arm/shutdown.c | 2 +
xen/arch/arm/time.c | 6 ++
xen/arch/arm/xen.lds.S | 7 ++
xen/include/asm-arm/platform.h | 55 ++++++++++++++++
8 files changed, 215 insertions(+)
Upstream: xenbits.xen.org