2017-03-24 23:55:57 +01:00
|
|
|
.section .text.start, "ax", @progbits
|
|
|
|
.globl _start
|
2016-08-05 20:07:42 +02:00
|
|
|
_start:
|
2017-03-24 23:55:57 +01:00
|
|
|
la s0, DRAM_BASE
|
|
|
|
csrr a0, mhartid
|
|
|
|
la a1, _dtb
|
|
|
|
jr s0
|
|
|
|
|
|
|
|
.section .text.hang, "ax", @progbits
|
|
|
|
.globl _hang
|
|
|
|
_hang:
|
|
|
|
wfi
|
|
|
|
j _hang
|
|
|
|
|
|
|
|
.section .rodata.dtb, "a", @progbits
|
|
|
|
.globl _dtb
|
|
|
|
.align 5, 0
|
|
|
|
_dtb:
|
|
|
|
.ascii "DTB goes here"
|