22 lines
366 B
ArmAsm
Raw Permalink Normal View History

2017-08-18 18:21:04 -07:00
// See LICENSE for license details.
#include <platform.h>
2017-11-03 11:42:52 -07:00
#include <smp.h>
2017-08-18 18:21:04 -07:00
#include "common.h"
.section .text.init
.option norvc
.globl _prog_start
_prog_start:
2017-11-03 11:42:52 -07:00
smp_pause(s1, s2)
li sp, (PAYLOAD_DEST + 0xffff000)
2017-08-18 18:21:04 -07:00
call main
2017-11-03 11:42:52 -07:00
smp_resume(s1, s2)
2017-08-18 18:21:04 -07:00
csrr a0, mhartid
la a1, dtb
li s1, PAYLOAD_DEST
jr s1
.section .rodata
dtb:
.incbin DEVICE_TREE