Angel Pons | a2ee761 | 2020-04-04 18:51:15 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 3 | /* |
| 4 | * Early initialization code for ARM architecture. |
| 5 | * |
| 6 | * This file is based off of the OMAP3530/ARM Cortex start.S file from Das |
| 7 | * U-Boot, which itself got the file from armboot. |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #include <arch/asm.h> |
| 11 | |
| 12 | #include "stack.S" |
| 13 | |
| 14 | ENTRY(_start) |
| 15 | /* |
Elyes HAOUAS | 038e724 | 2016-07-29 18:31:16 +0200 | [diff] [blame] | 16 | * Set the CPU to System mode with IRQ and FIQ disabled. Prefetch/Data |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 17 | * aborts may happen early and crash before the abort handlers are |
| 18 | * installed, but at least the problem will show up near the code that |
| 19 | * causes it. |
| 20 | */ |
| 21 | msr cpsr_cxf, #0xdf |
| 22 | |
Asami Doi | 4444369 | 2019-07-12 12:46:02 +0900 | [diff] [blame] | 23 | stack_init stack_top=_estack stack_bottom=_stack seed=1 func=tegra210_main |
Patrick Georgi | 40a3e32 | 2015-06-22 19:41:29 +0200 | [diff] [blame] | 24 | ENDPROC(_start) |