blob: d913e1caf5be3d8dd159372108e3377de1486964 [file] [log] [blame]
Angel Ponsa2ee7612020-04-04 18:51:15 +02001/* SPDX-License-Identifier: GPL-2.0-only */
2
Patrick Georgi40a3e322015-06-22 19:41:29 +02003/*
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 Georgi40a3e322015-06-22 19:41:29 +02008 */
9
10#include <arch/asm.h>
11
12#include "stack.S"
13
14ENTRY(_start)
15 /*
Elyes HAOUAS038e7242016-07-29 18:31:16 +020016 * Set the CPU to System mode with IRQ and FIQ disabled. Prefetch/Data
Patrick Georgi40a3e322015-06-22 19:41:29 +020017 * 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 Doi44443692019-07-12 12:46:02 +090023 stack_init stack_top=_estack stack_bottom=_stack seed=1 func=tegra210_main
Patrick Georgi40a3e322015-06-22 19:41:29 +020024ENDPROC(_start)