freedom/bootrom/sdboot/head.S

19 lines
308 B
ArmAsm
Raw Normal View History

2017-08-19 03:21:04 +02:00
// See LICENSE for license details.
#include <platform.h>
#include "common.h"
.section .text.init
.option norvc
.globl _prog_start
_prog_start:
li sp, (PAYLOAD_DEST + 0x7fff000)
call main
csrr a0, mhartid
la a1, dtb
li s1, PAYLOAD_DEST
jr s1
.section .rodata
dtb:
.incbin DEVICE_TREE