This is a toy project referencing the rCore OS tutorial and their github page for learning purpose.
The OS runs with qemu-system-riscv64
simulator on Mac M1 and check the prerequisite for detailed environment setup.
$ cd os/
$ make run
$ cd os/
# In the current terminal, run
$ make gdbserver
# Open another terminal, still in os folder, run
$ make gdbclient
$ cd os/
# Start a tmux session which hold client/server on two sides.
$ make debug
Check this gdb cheatsheet in case you need help :)