do_bug_frame is only necessary when trapping. This allows to remove
processor.h include.
However, time.h was missing an include resulting to compilation error if
processor.h is removed from bug.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>
#include <public/xen.h>
#include <asm/processor.h>
+#include <asm/traps.h>
void do_trap_reset(struct cpu_user_regs *regs)
{
#ifndef __ARM_BUG_H__
#define __ARM_BUG_H__
-#include <asm/processor.h>
-
#if defined(CONFIG_ARM_32)
# include <asm/arm32/bug.h>
#elif defined(CONFIG_ARM_64)
__stop_bug_frames_1[],
__stop_bug_frames_2[];
-int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc);
-
#endif /* __ARM_BUG_H__ */
/*
* Local variables:
#ifndef __ARM_TIME_H__
#define __ARM_TIME_H__
+#include <asm/processor.h>
+
#define DT_MATCH_TIMER \
DT_MATCH_COMPATIBLE("arm,armv7-timer"), \
DT_MATCH_COMPATIBLE("arm,armv8-timer")
void do_trap_smc(struct cpu_user_regs *regs, const union hsr hsr);
void do_trap_hvc_smccc(struct cpu_user_regs *regs);
+int do_bug_frame(const struct cpu_user_regs *regs, vaddr_t pc);
+
#endif /* __ASM_ARM_TRAPS__ */
/*
* Local variables: