riscv-software-src / riscv-pk

RISC-V Proxy Kernel
Other
593 stars 308 forks source link

Disable device tree filter when load a dts from file #217

Closed Phantom1003 closed 4 years ago

aswaterman commented 4 years ago

Does this change the default behavior? I think adding the option is fine, but we should keep the default behavior consistent.

Phantom1003 commented 4 years ago

This filter was used to keep compatibility at four years ago, recently I try to use bbl as sbi to boot linux, and I found there is a panic during booting, it says irq 0xffffffff is too large for interrupt controller. I find these old filter will remove clint, and change irq of SEIP to -1 etc. These operations are not neccessary for RISCV today, and when we specify a dts, we hope bbl directly help us pass it to kernel, instead of changing something ...

aswaterman commented 4 years ago

Got it. I think this is OK.

aswaterman commented 4 years ago

This breaks the build when --with-dts is not specified, so I am reverting it. Please resubmit the PR in a way that works both with and without the argument.

Phantom1003 commented 4 years ago

I'm very sorry for the trouble I've caused by my oversight.This is the first time I've submitted code to the community, I simply tested it in my own environment, I used macros to maintain compatibility, but forgot the dependencies in make, sorry about that again, I'll make sure not to make this mistake again! New request is at #219

aswaterman commented 4 years ago

No worries, thanks for the quick fix. I’ll review the new PR shortly.