diff options
Diffstat (limited to 'bbl')
-rw-r--r-- | bbl/bbl.c | 2 | ||||
-rw-r--r-- | bbl/bbl.lds | 1 |
2 files changed, 3 insertions, 0 deletions
@@ -41,11 +41,13 @@ static void filter_dtb(uintptr_t source) uint32_t size = fdt_size(source); memcpy((void*)dest, (void*)source, size); +#ifndef CUSTOM_DTS // Remove information from the chained FDT filter_harts(dest, &disabled_hart_mask); filter_plic(dest); filter_compat(dest, "riscv,clint0"); filter_compat(dest, "riscv,debug-013"); +#endif } static void protect_memory(void) diff --git a/bbl/bbl.lds b/bbl/bbl.lds index 624f691..9d51f1d 100644 --- a/bbl/bbl.lds +++ b/bbl/bbl.lds @@ -67,6 +67,7 @@ SECTIONS *(.srodata*) *(.gnu.linkonce.d.*) *(.comment) + *(.dtb) } /* End of initialized data segment */ |