From 9a3b4ceb37989263e9280644912d269386b99bb7 Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sat, 28 Dec 2019 10:45:01 -0700 Subject: common: Move reset_cpu() to the CPU header Move this function out of common.h and into a relevant header file. Signed-off-by: Simon Glass --- arch/arm/lib/interrupts.c | 3 ++- arch/arm/lib/interrupts_m.c | 1 + arch/arm/lib/reset.c | 1 + 3 files changed, 4 insertions(+), 1 deletion(-) (limited to 'arch/arm/lib') diff --git a/arch/arm/lib/interrupts.c b/arch/arm/lib/interrupts.c index 75b70d9125..6dbf03b00c 100644 --- a/arch/arm/lib/interrupts.c +++ b/arch/arm/lib/interrupts.c @@ -19,6 +19,7 @@ */ #include +#include #include #include #include @@ -48,7 +49,7 @@ int disable_interrupts(void) void bad_mode (void) { panic ("Resetting CPU ...\n"); - reset_cpu (0); + reset_cpu(0); } static void show_efi_loaded_images(struct pt_regs *regs) diff --git a/arch/arm/lib/interrupts_m.c b/arch/arm/lib/interrupts_m.c index e4373f3781..1f6fdf2995 100644 --- a/arch/arm/lib/interrupts_m.c +++ b/arch/arm/lib/interrupts_m.c @@ -5,6 +5,7 @@ */ #include +#include #include /* diff --git a/arch/arm/lib/reset.c b/arch/arm/lib/reset.c index 3c4512d495..835a40e59d 100644 --- a/arch/arm/lib/reset.c +++ b/arch/arm/lib/reset.c @@ -21,6 +21,7 @@ */ #include +#include #include __weak void reset_misc(void) -- cgit