Add a function prototype for do_bad_mode() in <asm/arm64/traps.h> and include
header <asm/traps.h> in traps.c, so that the declarations of the functions
do_bad_mode() and finalize_instr_emulation(), which have external linkage,
are visible before the function definitions.
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
#include <asm/hsr.h>
#include <asm/system.h>
#include <asm/processor.h>
+#include <asm/traps.h>
#include <public/xen.h>
void do_sysreg(struct cpu_user_regs *regs,
const union hsr hsr);
+void do_bad_mode(struct cpu_user_regs *regs, int reason);
+
#endif /* __ASM_ARM64_TRAPS__ */
/*
* Local variables: