Skip to content

melody-notpond/example-os

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

example-os

An example bare bones OS template for RISC-V.

Build instructions

Install the Newlib GNU RISC-V toolchain and do make to build. Do make run to run. It should print out a bunch of debug information related to OpenSBI and then a single a.

Alternatively, you can install Clang and use make CC=clang.

Exiting QEMU

This is the new "how to exit Vi" I guess. To exit, press Ctrl+a, unpress those keys, and then press x.

Debugging

Execute make gdb and then make run.

If you'd like to trace the execution since the beginning, use make run WAIT_GDB=1. This halts the emulator until a gdb connection is established.

Resources

About

An example bare bones OS template for RISC V.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published