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>
Reviewed-by: Andrii Anisov <andrii_anisov@epam.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
#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);
#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);
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:
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);