@@ -453,10 +453,6 @@ extern register_t __cpu_logical_map[];
#endif
#ifndef __ASSEMBLY__
-extern uint32_t hyp_traps_vector[];
-
-void init_traps(void);
-
void panic_PAR(uint64_t par);
void show_execution_state(struct cpu_user_regs *regs);
@@ -470,8 +466,6 @@ void show_registers(const struct cpu_user_regs *regs);
#define cpu_to_core(_cpu) (0)
#define cpu_to_socket(_cpu) (0)
-void noreturn do_unexpected_trap(const char *msg, struct cpu_user_regs *regs);
-
struct vcpu;
void vcpu_regs_hyp_to_user(const struct vcpu *vcpu,
struct vcpu_guest_core_regs *regs);
@@ -83,6 +83,9 @@ struct bootmodule *add_boot_module(bootmodule_kind kind,
struct bootmodule *boot_module_find_by_kind(bootmodule_kind kind);
const char *boot_module_kind_as_string(bootmodule_kind kind);
+extern uint32_t hyp_traps_vector[];
+void init_traps(void);
+
#endif
/*
* Local variables:
@@ -46,6 +46,8 @@ void do_trap_hvc_smccc(struct cpu_user_regs *regs);
int do_bug_frame(struct cpu_user_regs *regs, vaddr_t pc);
+void noreturn do_unexpected_trap(const char *msg, struct cpu_user_regs *regs);
+
/* Functions for pending virtual abort checking window. */
void abort_guest_exit_start(void);
void abort_guest_exit_end(void);
do_unexpected_traps() is moved to traps.h while init_traps() and hyp_traps_vectors() are moved to setup.h. Signed-off-by: Julien Grall <julien.grall@arm.com> --- xen/include/asm-arm/processor.h | 6 ------ xen/include/asm-arm/setup.h | 3 +++ xen/include/asm-arm/traps.h | 2 ++ 3 files changed, 5 insertions(+), 6 deletions(-)