intel/FdtBusPkg

Consider GetRegAttrs/SetRegAttrs

Closed this issue · 3 comments

A driver may wish to map a particular reg range with specific memory attributes. This should take into account #44.

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.

GetReg issue is moved to #76 so not a high prio anymore.

As per #78, the signature should be more along the lines of taking in a desired GCD type and memory attributes (and returning prior ones).

The obvious user here is HighMemDxe.