NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
Writing an operating system kernel from scratch – RISC-V/OpenSBI/Zig (popovicu.com)
popovicu 84 days ago [-]
I have redone the classical exercise of writing a tiny OS kernel with time sharing, which manages a couple of user threads. My goal was to experiment specifically on RISC-V + OpenSBI. Additionally, I wanted to explore Zig a little bit, so that was the language used instead of the traditional C, but it should be straightforward how to do the same experiment in either C or Rust.

It's definitely very rough around the edges, and it's more of an experiment and an intro for people who want to go through step 0 of learning OS kernel development and computer architecture. Nevertheless, I hope it is still a fun experimental thing to play with over the weekend!

The full walkthrough and the GitHub link are available at the link posted!

geoffbp 81 days ago [-]
Wasn’t this posted last week ?
Arnavion 81 days ago [-]
Two days ago, in https://news.ycombinator.com/item?id=45240682

This one by the original author was submitted earlier but got no engagement, and is now back with falsified timestamps because of the "second chance pool".

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 19:00:22 GMT+0000 (UTC) with Wasmer Edge.