Consider GetRegAttrs/SetRegAttrs
Closed this issue · 3 comments
andreiw commented
A driver may wish to map a particular reg range with specific memory attributes. This should take into account #44.
andreiw commented
Also, the reg may actually be unmapped. In fact, code probably shouldn't assume it's mapped.
E.g:
FS0:> dtreg /soc/rtc@101000 0
Dumping 1 bytes at offset 0x0 of reg via CPU 0x101000(1000):
!!!! RISCV64 Exception Type - 000000000000000D(EXCEPT_RISCV_LOAD_ACCESS_PAGE_FAULT) !!!!
Hiding this in FdtBusDxe without an explicit SetRegAttrs is probably not a great idea.