diff options
author | Wesley W. Terpstra <wesley@sifive.com> | 2017-04-05 16:22:47 -0700 |
---|---|---|
committer | Wesley W. Terpstra <wesley@sifive.com> | 2017-04-05 16:22:47 -0700 |
commit | 91636ac4639a7993c485288d34f1c8e22b1980b4 (patch) | |
tree | d50d564fbdabf9987c531267e15a7a32a07fbb8d /bbl/bbl.c | |
parent | cd558016be4fdc99055814bd1adcfc2962b425c0 (diff) | |
download | riscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.zip riscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.tar.gz riscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.tar.bz2 |
fdt: redact clint, plic, and debug hardware
Diffstat (limited to 'bbl/bbl.c')
-rw-r--r-- | bbl/bbl.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -21,6 +21,12 @@ static void filter_dtb(uintptr_t source) uintptr_t dest = dtb_output(); uint32_t size = fdt_size(source); memcpy((void*)dest, (void*)source, size); + + // Remove information from the chained FDT + // filter_harts(dest, 0x2); + filter_plic(dest); + filter_compat(dest, "riscv,clint0"); + filter_compat(dest, "riscv,debug-013"); } void boot_other_hart(uintptr_t dtb) |