Skip to content

Latest commit

 

History

History
75 lines (40 loc) · 1.25 KB

README.md

File metadata and controls

75 lines (40 loc) · 1.25 KB

peaCore

peaCore is a toy kernel implemented by Rust language.

Prequisite

  1. qemu-system-riscv64

    QEMU emulator version 7.0.0

  2. gdb-multiarch

GDB:

gdb-multiarch (support riscv64 with TUI mode)

sudo apt-get install gdb-multiarch

QEMU

-machine virt: 1 NS16550 compatible UART

Run the kernel

run the code in base directory in the project

$ cd os
$ make run

run in gdb-debug mode

$ cd os
$ make debug

To Do list

  • remove ecall (rustsbi)

    1. early-output[UART0: 0x1000_0000]

    2. shutdown (sys_exit)

    3. cargo test for robustness

    > meet error... (to do)
    
  • Self-made Buddy for heap allocation

    Ref: rust-sbi CHANGELOG, rust-sbi-tutorial

  • Timer interrupt: remove from rust-sbi

  • toy File System

Reference