Giter VIP home page Giter VIP logo

sakanaos's Introduction

Sakana-OS (experimental)

Note: Update slowly

Related to rCore, learn OS with Rust and RISC-V.

Plan

  • Finished all experiments in rCore
    • ch1
    • ch2
    • ch3
  • ?

(To be continue...)

How to use

Unfinished

Previous work

  • Rust devlopment environment (ngintly).
  • qemu-system-riscv64 needed (7.0).

Wanting to get more setup infomation just view rCore-setup-env.

Run

Use cd os && make run to start.

[KERNEL|DEBUG] .text [0x80200000, 0x80204000)
[KERNEL|DEBUG] .rodata [0x80204000, 0x8020c000)
[KERNEL|DEBUG] .data [0x8020c000, 0x80214000)
[KERNEL|DEBUG] boot_stack [0x80214000, 0x80224000)
[KERNEL|DEBUG] .bss [0x80224000, 0x80225000)
[KERNEL|INFO] sakana-os v0.1.0 built at Mon, 12 Sep 2022 15:22:15 +0800
[KERNEL|INFO] Hello, world!
[KERNEL|TRACE] num_app = 4
[KERNEL|TRACE] app_0 [0x8020c030, 0x8020d8d8)
[KERNEL|TRACE] app_1 [0x8020d8d8, 0x8020f1d0)
[KERNEL|TRACE] app_2 [0x8020f1d0, 0x80210dd8)
[KERNEL|TRACE] app_3 [0x80210dd8, 0x80212dc0)
[KERNEL|TRACE] Loading app_0
[KERNEL|INFO] PageFault in application, kernel killed it.
[KERNEL|TRACE] Loading app_1
Hello, SilentE!
[KERNEL|INFO] Application exited with code 0
[KERNEL|TRACE] Loading app_2
time: 49
[KERNEL|INFO] Application exited with code 0
[KERNEL|TRACE] Loading app_3
[KERNEL|ERROR] Unsupported fd in sys_write!
string from data section
strinstring from stack section
strin
Test write1 OK!
[KERNEL|INFO] Application exited with code 0
[KERNEL|ERROR] Panicked at src/batch/mod.rs:70:13, All applications completed!
==Stack Tracing Begin==
Return Address: 0x0000000080200bbc, fp: 0x0000000080206c50
Return Address: 0x0000000080201ca2, fp: 0x0000000080206ce0
Return Address: 0x00000000802007a2, fp: 0x0000000080206e10
Return Address: 0x00000000802016c6, fp: 0x0000000080206e70
Return Address: 0x0000000080200dec, fp: 0x0000000080206ef0
Return Address: 0x00000000802008cc, fp: 0x0000000080208fd0
Return Address: 0x00000000804002f4, fp: 0x0000000080208fe0
Return Address: 0x0000000080400094, fp: 0x0000000080209000
Return Address: 0x0000000000000000, fp: 0x0000000000000000
==Stack Tracing End==
[KERNEL|INFO] Shutdown...

Reference

sakanaos's People

Contributors

silenteag avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.