Closed Ddnirvana closed 7 years ago
Hi. I'm afraid we don't currently implement the 1.10 privileged spec. We back-ported the most obvious changes in the 1.9 spec (e.g. the page table entry format change), but can't currently guarantee full compatibility with 1.9 or 1.10.
Hi @asb , thanks for your quickly response!
Another question is which version of riscv's specification used by v0.2's lowrisc(untether)?
We have not really thought about recording this information at that time. The untether v0.2 came out around December 2015 probably using the Rocket of October 2015. My best guess: user spec 2.0 and priv spec 1.7.
@wsong83 thanks for your response. It's very helpful!
Hi, guys:
From the riscv-privileged-v1.10, chapter 4.1.12, I find that the "Supervisor Address Translation and Protection (satp)" register contains a Mode and ASID and PPN。
Also, from the code in https://github.com/riscv/riscv-linux/blob/riscv-next/arch/riscv/kernel/head.S, there are some codes to configure the sptbr register using the SPTBR_MODE.
However, in the lowrisc's version linux(https://github.com/lowRISC/riscv-linux), the head.S does not contain codes to configure the sptbr...And I don't see any codes in the linux to set the Modes of sptbr too...
So I am just wondering how lowrisc handle the Mode filed in the sptbr(satp).
Any responses are welcomed! Thanks!