1
0
Fork 0
RISC-V OpenSBI Hello, World! https://github.com/jenra-uwu/example-os
This repository has been archived on 2022-12-02. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
Laura Gallo 2e2436f835
Update Makefile
2021-08-19 17:05:45 -04:00
src Spacing 2021-07-31 19:36:35 -04:00
.gitignore Initial commit 2021-07-25 15:09:53 -04:00
Makefile Update Makefile 2021-08-19 17:05:45 -04:00
README.md use <kbd> elements for keys; add hyphens to “RISC V” 2021-07-26 23:21:04 +10:00
kernel.gdb Did stuff 2021-07-25 16:26:52 -04:00
kernel.ld Initial commit 2021-07-25 15:09:53 -04:00

README.md

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