make debug # In another terminal: riscv64-unknown-elf-gdb target/rcore.elf (gdb) target remote :1234 (gdb) b handle_trap (gdb) c Add rcore_backtrace crate and use:
make test Integration test (user programs): rcore documentation
A: Add to syscall.rs , assign a new ID, and update the handler match arm. assign a new ID
rcore::debug!("Allocated frame at :#x", frame_addr); Run with QEMU + GDB: Run with QEMU + GDB: rcore::backtrace::print()
rcore::backtrace::print(); Run unit tests inside kernel:
A: Yes, on SiFive HiFive1 (RISC-V) or Raspberry Pi (experimental).