s094392 / riscv-bare-metal

A RISC-V bare metal example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RISCV Bare Metal

A RISC-V bare-metal example with uart, exception, interrupt and kvmmap.

The tutorial is at https://mullerlee.cyou/2020/07/09/riscv-exception-interrupt/

Requirement

  • qemu
  • riscv64-linux-gnu-*

Run

mkdir build
make
make run

Debug

mkdir build
make
make debug
riscv64-linux-gnu-gdb -x debug.txt

About

A RISC-V bare metal example

License:MIT License


Languages

Language:C 82.4%Language:Assembly 14.4%Language:Makefile 3.2%