@@ -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(const struct cpu_user_regs *regs);
@@ -470,9 +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,
- const 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,9 @@ void do_trap_hvc_smccc(struct cpu_user_regs *regs);
int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc);
+void noreturn do_unexpected_trap(const char *msg,
+ const struct cpu_user_regs *regs);
+
/* Functions for pending virtual abort checking window. */
void abort_guest_exit_start(void);
void abort_guest_exit_end(void);