1/* SPDX-License-Identifier: BSD-3-Clause */ 2 3#include <arch/asm.h> 4 5.arm 6ENTRY(maincpu_setup) 7 /* 8 * Set the CPU to System mode with IRQ and FIQ disabled. Prefetch/Data 9 * aborts may happen early and crash before the abort handlers are 10 * installed, but at least the problem will show up near the code that 11 * causes it. 12 */ 13 msr cpsr_cxf, #0xdf 14 15 ldr sp, maincpu_stack_pointer 16 eor lr, lr 17 ldr r0, maincpu_entry_point 18 bx r0 19ENDPROC(maincpu_setup) 20 21 .align 2 22 23 .global maincpu_stack_pointer 24maincpu_stack_pointer: 25 .word 0 26 27 .global maincpu_entry_point 28maincpu_entry_point: 29 .word 0 30