Skip to content

Bariona/peaCore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

RISCV kernel implemented by Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published