diff options
Diffstat (limited to 'arch/arm/cpu/cpu.c')
-rw-r--r-- | arch/arm/cpu/cpu.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index 5b79dd2a8f..5f1ffe9a3c 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -17,8 +17,7 @@ #include <asm/cputype.h> #include <asm/cache.h> #include <asm/ptrace.h> - -#include "mmu.h" +#include <efi/efi-mode.h> /** * Enable processor's instruction cache @@ -84,6 +83,8 @@ static void disable_interrupts(void) */ static void arch_shutdown(void) { + if (efi_is_payload()) + return; #ifdef CONFIG_MMU mmu_disable(); @@ -98,6 +99,9 @@ extern unsigned long arm_stack_top; static int arm_request_stack(void) { + if (efi_is_payload()) + return 0; + if (!request_sdram_region("stack", arm_stack_top - STACK_SIZE, STACK_SIZE)) pr_err("Error: Cannot request SDRAM region for stack\n"); |