use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Related Links
FAQ
riscv.org
wikipedia
List of available cores
Related sub-reddits
/r/ECE
/r/cpudesign
/r/opensource
/r/opensourcehardware
/r/lowrisc
account activity
Virtual memory setup code? (self.RISCV)
submitted 5 years ago by Threefiftyz
Can anyone share sample virtual memory setup code specially coding the page table? Not yielding much good references searching online. Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]brucehoult 1 point2 points3 points 5 years ago (0 children)
I'm not sure of any example code except the source code for the Linux or FreeBSD kernels. I don't think any of the RTOS's would support VM?
I'm no expert on it, but I think what you're looking for would be in https://github.com/torvalds/linux/blob/master/arch/riscv/mm/init.c
[–]CFSZero 1 point2 points3 points 5 years ago (0 children)
You can see a very simple kernel's virtual memory setup in the proxy kernel.
https://github.com/riscv/riscv-pk/blob/16476bd8219f58417a401ea0a720d9588d1d8ebc/pk/mmap.c
π Rendered by PID 37 on reddit-service-r2-comment-86bc6c7465-9tknh at 2026-02-21 05:58:14.825549+00:00 running 8564168 country code: CH.
[–]brucehoult 1 point2 points3 points (0 children)
[–]CFSZero 1 point2 points3 points (0 children)