• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/* SPDX-License-Identifier: BSD-3-Clause */
2
3#include <arch/asm.h>
4
5ENTRY(_start)
6	/*
7	 * Initialize the stack to a known value. This is used to check for
8	 * stack overflow later in the boot process.
9	 */
10	ldr	r0, =_stack
11	ldr	r1, =_estack
12	ldr	r2, =0xdeadbeef
13init_stack_loop:
14	str	r2, [r0]
15	add	r0, #4
16	cmp	r0, r1
17	bne	init_stack_loop
18
19call_bootblock:
20	ldr	sp, =_estack /* Set up stack pointer */
21	bl	main
22ENDPROC(_start)
23