1
1
Fork
You've already forked DRvOs
0
Some experiments with riscv osdev.
  • C 68.2%
  • Assembly 24.1%
  • Makefile 7.7%
Find a file
Ivan Gualandri 41869b2b3f select_initial_address_freelist ( #4 )
Reviewed-on: #4
Co-authored-by: Ivan Gualandri <dreamos82@yahoo.it>
Co-committed-by: Ivan Gualandri <dreamos82@yahoo.it>
2024年05月09日 22:47:54 +00:00
src select_initial_address_freelist ( #4 ) 2024年05月09日 22:47:54 +00:00
.gitignore makefile improvements, and add some information on how to build 2023年10月15日 12:20:56 +01:00
linker.ld Rearrange the linker sections and boot in the higher half 2023年10月21日 14:41:51 +01:00
Makefile parse_reserved_memory ( #3 ) 2023年12月20日 12:31:14 +00:00
README.md makefile improvements, and add some information on how to build 2023年10月15日 12:20:56 +01:00

DRVOS

Just my experiment in trying to write a toy kernel for riscv processors

Build instruction

Those instruction assumes that we have a riscv gcc cross compiler toolchain installed, and qemu that supports the riscv64 architecture. The prefix used should be: riscv64-elf-

The prefix can be changed by updating ARCH_PREFIX field on the Makefile, while the qemu command name can be changed by updating the QEMU_COMMAND_NAME variable.

The goals available are:

  • clean: delete all build files
  • build: just build and link the os binaries, without launching it
  • run: run the os using a rscv64 qemu
  • gdb: launch the os, with qemu waiting for a remote debugger to be attached.
  • gdb_monitor: same as above, but with the monitor option available.

For the gdb and gdb_monitor we need to have gdb compiled to support the riscv64 architecture.