diff options
author | Yan <892930505@qq.com> | 2020-10-30 05:27:39 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-29 14:27:39 -0700 |
commit | a161e6f3ef31004e47a5b94b85c2e84b764f8637 (patch) | |
tree | 1a28b326a3caffd63091e079e4f00f0680c2ce0e /bbl/bbl.c | |
parent | f7df78365f9aca4102a6d7136ea58b91f51c13cb (diff) | |
download | pk-a161e6f3ef31004e47a5b94b85c2e84b764f8637.zip pk-a161e6f3ef31004e47a5b94b85c2e84b764f8637.tar.gz pk-a161e6f3ef31004e47a5b94b85c2e84b764f8637.tar.bz2 |
Disable device tree filter when load a dts from file (#217)
* add device tree in elf, using --with-dts to add the absolute path of device tree
* Disable device tree filter
Diffstat (limited to 'bbl/bbl.c')
-rw-r--r-- | bbl/bbl.c | 2 |
1 files changed, 2 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 MACHINE_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) |