riscv-software-src / opensbi

RISC-V Open Source Supervisor Binary Interface

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DOC: Example need to be update in OpenSBI Domain Support

Zweisamkeiten opened this issue · comments

001106d

Any region of a domain defined in DT node cannot have only M-bits set in access permissions i.e. it cannot be an m-mode only accessible region.

            regions = <&tmem 0x0>, <&tuart 0x0>, <&allmem 0x7>;
	if (!((region_access & SBI_DOMAIN_MEMREGION_SU_ACCESS_MASK)
	     & SBI_DOMAIN_MEMREGION_SU_RWX)
	    && ((region_access & SBI_DOMAIN_MEMREGION_M_ACCESS_MASK)
		& SBI_DOMAIN_MEMREGION_M_RWX))
		return SBI_EINVAL;

What a timing :)

I've already sent a patch to fix this earlier today.

Thank you for your reply. I will close this issue.