Skip to content

manbing/mini-riscv-os

Repository files navigation

baremetal OS kernel for RV32I

Motivation

This repository is inspired by mini-arm-os, and rewrite from mini-arm-os also.

Prerequisites

  • ToolChain riscv64-unknown-elf, whcih can get from riscv-gnu-toolchain.

  • Qemu qemu-system-riscv32, which can get from QEMU.

Steps

  • 00-HelloWorld

  • 02-ContextSwitch

  • 03-ContextSwitch-2

  • 04-Multitasking

  • 05-TimerInterrupt

  • 06-Preemptive

  • 07-Threads

  • 08-Preemptive-2

Building and Verification

  • Changes the current working directory to specificed one and issue
make
make qemu

Licensing

mini-riscv-os is freely redistributable under the two-clause BSD License. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Reference

About

Build a minimal OS kernel for RV32I from scratch

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published