Hi all, I’ve been working on getting GNU Mach to compile on riscv64, and I wanted to share an early update and ask if there’s interest in upstreaming a stub port.
So far I’ve created a set of stub implementation files for riscv64, mostly copied and stripped down from the existing i386 directory. I’ve also adjusted the headers and includes to fit riscv64 as closely as possible, based on my understanding of the architecture. The kernel now compiles cleanly for riscv64, though of course many platform-specific routines are unimplemented or stubbed out. This work is still early and not yet functional, but I thought it was worth sharing - especially since there’s already a similar (non-compiling) stub for aarch64 in the tree. Separately, I created a `riscv64-none-gnu` target for GCC and created the necessary backend config files. That part was fairly straightforward. I’d be happy to send a patch or PR for the GCC side as well - either to the main repo or a branch if one exists for GNU Mach toolchain work. Let me know if this is something you'd like me to send as a patch, or if there's a preferred way to contribute early/incomplete ports. Best, Hakan