aboutsummaryrefslogtreecommitdiff
path: root/bbl
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2017-04-05 16:22:47 -0700
committerWesley W. Terpstra <wesley@sifive.com>2017-04-05 16:22:47 -0700
commit91636ac4639a7993c485288d34f1c8e22b1980b4 (patch)
treed50d564fbdabf9987c531267e15a7a32a07fbb8d /bbl
parentcd558016be4fdc99055814bd1adcfc2962b425c0 (diff)
downloadriscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.zip
riscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.tar.gz
riscv-pk-91636ac4639a7993c485288d34f1c8e22b1980b4.tar.bz2
fdt: redact clint, plic, and debug hardware
Diffstat (limited to 'bbl')
-rw-r--r--bbl/bbl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/bbl/bbl.c b/bbl/bbl.c
index 300182c..44802c1 100644
--- a/bbl/bbl.c
+++ b/bbl/bbl.c
@@ -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)