2017-03-27 09:01:05 +02:00
|
|
|
#define DRAM_BASE 0x80000000
|
|
|
|
|
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-27 09:01:05 +02:00
|
|
|
li s0, DRAM_BASE
|
2017-03-24 23:55:57 +01:00
|
|
|
csrr a0, mhartid
|
|
|
|
la a1, _dtb
|
|
|
|
jr s0
|
|
|
|
|
|
|
|
.section .text.hang, "ax", @progbits
|
|
|
|
.globl _hang
|
|
|
|
_hang:
|
2017-03-27 09:01:05 +02:00
|
|
|
csrr a0, mhartid
|
|
|
|
la a1, _dtb
|
|
|
|
1:
|
2017-03-24 23:55:57 +01:00
|
|
|
wfi
|
2017-03-27 09:01:05 +02:00
|
|
|
j 1b
|
2017-03-24 23:55:57 +01:00
|
|
|
|
|
|
|
.section .rodata.dtb, "a", @progbits
|
|
|
|
.globl _dtb
|
|
|
|
.align 5, 0
|
|
|
|
_dtb:
|
|
|
|
.ascii "DTB goes here"
|