[arch][riscv] more work on riscv MMU code
Use a callback based shared walker to implement the same page table walking code for different operations. Add SBI hooks for TLB flushing.
This commit is contained in:
@@ -53,8 +53,8 @@ static inline void hexdump8(const void *ptr, size_t len) {
|
||||
/* systemwide halts */
|
||||
void panic(const char *fmt, ...) __PRINTFLIKE(1, 2) __NO_RETURN;
|
||||
|
||||
#define PANIC_UNIMPLEMENTED panic("%s unimplemented\n", __PRETTY_FUNCTION__)
|
||||
#define PANIC_UNIMPLEMENTED_MSG(x...) panic("%s unimplemented: %s\n", __PRETTY_FUNCTION__, x)
|
||||
#define PANIC_UNIMPLEMENTED panic("%s:%d unimplemented\n", __PRETTY_FUNCTION__, __LINE__)
|
||||
#define PANIC_UNIMPLEMENTED_MSG(x...) panic("%s:%d unimplemented: %s\n", __PRETTY_FUNCTION__, __LINE__, x)
|
||||
|
||||
/* spin the cpu for a period of (short) time */
|
||||
void spin(uint32_t usecs);
|
||||
|
||||
Reference in New Issue
Block a user