Skip to content

xeome/riscv-kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4d68eb4 · Jan 5, 2024

History

20 Commits
Oct 14, 2023
Jan 5, 2024
Jan 5, 2024
Oct 14, 2023
Jan 5, 2024
Dec 17, 2023
Oct 5, 2022
Jan 5, 2024
Dec 17, 2023
Aug 23, 2023
Dec 17, 2023
Sep 4, 2023

Repository files navigation

riscv-kernel

This is a simple toy kernel for RISC-V.


Table of Contents


Features

  • Printf
  • Context switching
  • Exception handling
  • Memory allocation
  • Page tables
  • Virtual memory
  • Syscalls
  • User mode
  • Interactive shell
  • Virt-IO basic driver
  • Filesystem

Dependencies

  • clang
  • qemu-system-riscv32
  • llvm-obj-copy
  • lld

For archlinux users:

sudo pacman -S clang qemu-system-riscv llvm lld

Run

make && ./run.sh

Acknowledgements

About

riscv toy kernel

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published