Re:Operating System in 1,000 Lines – Intro
by pshirshov on Wednesday January 08, 2025 @09:42AM
(#42634730)
Could you port this to riscv64 please?
[ Parent
| on HN ]
Re:Operating System in 1,000 Lines – Intro
by ndnsjxj on Wednesday January 08, 2025 @02:52PM
(#42637807)
Porting to any platform is trivial after understanding the basics as described in these articles
The author explicitly describes why they chose riscv32
Why would you want the author to use riscv64 instead?
Re:Operating System in 1,000 Lines – Intro
by foobiekr on Friday January 10, 2025 @02:23PM
(#42659053)
At least on Intel, it was quite a significant difference in some ways, in kernel terms.
Re:Operating System in 1,000 Lines – Intro
by nuta on Thursday January 09, 2025 @09:23AM
(#42645828)
No it's "left as an exercise to the reader" ;)
But seriously, it's not that hard. Change build options to generate 64-bit ELF, replace all 32-bit-wide parts (e.g. uint32_t, lw/sw instructions), and implement a slightly more complicated page table (e.g. Sv48).