From: Julien Grall Date: Wed, 28 Aug 2013 14:47:19 +0000 (+0100) Subject: xen/arm: Move __PSCI* from traps.c to the header X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~6394 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e6fb0c4b80b129ba2bf946de2db170ec99c7b114;p=xen.git xen/arm: Move __PSCI* from traps.c to the header These defines will be used to create the fake PSCI node in dom0 device tree. Signed-off-by: Julien Grall Acked-by: Ian Campbell --- diff --git a/xen/arch/arm/traps.c b/xen/arch/arm/traps.c index a30797cdf5..0e9a141905 100644 --- a/xen/arch/arm/traps.c +++ b/xen/arch/arm/traps.c @@ -848,11 +848,6 @@ static arm_hypercall_t arm_hypercall_table[] = { HYPERCALL_ARM(vcpu_op, 3), }; -#define __PSCI_cpu_suspend 0 -#define __PSCI_cpu_off 1 -#define __PSCI_cpu_on 2 -#define __PSCI_migrate 3 - typedef int (*arm_psci_fn_t)(uint32_t, register_t); typedef struct { diff --git a/xen/include/asm-arm/psci.h b/xen/include/asm-arm/psci.h index 67d4c35f71..fdba636752 100644 --- a/xen/include/asm-arm/psci.h +++ b/xen/include/asm-arm/psci.h @@ -6,6 +6,11 @@ #define PSCI_EINVAL -2 #define PSCI_DENIED -3 +#define __PSCI_cpu_suspend 0 +#define __PSCI_cpu_off 1 +#define __PSCI_cpu_on 2 +#define __PSCI_migrate 3 + int do_psci_cpu_on(uint32_t vcpuid, register_t entry_point); int do_psci_cpu_off(uint32_t power_state); int do_psci_cpu_suspend(uint32_t power_state, register_t entry_point);