diff options
Diffstat (limited to 'machine/mentry.S')
-rw-r--r-- | machine/mentry.S | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/machine/mentry.S b/machine/mentry.S index 9ec9916..f9285a4 100644 --- a/machine/mentry.S +++ b/machine/mentry.S @@ -281,6 +281,10 @@ do_reset: #endif # Boot on the first hart +#ifdef CUSTOM_DTS + csrr a0, mhartid + la a1, dtb_start +#endif j init_first_hart .LmultiHartInit: @@ -313,6 +317,15 @@ do_reset: wfi j .LmultiHart +#ifdef CUSTOM_DTS +.section .dtb +.align 3 +.global dtb_start, dtb_end +dtb_start: +.incbin "custom.dtb" +dtb_end: +#endif + .bss .align RISCV_PGSHIFT stacks: |