Giter Site home page Giter Site logo

litchi-rs's Introduction

litchi-rs

An x86-64 kernel with ~100% Rust (originally) in a week. The continuation of Litchi.

Screenshot

Try it

Make sure the Rust toolchains and qemu-system-x86_64 are installed, then simply execute...

make qemu PROFILE=release

Roadmap

Booting

  • Bare-metal UEFI application.
  • In-memory ELF program loader.
  • Locate kernel executable with UEFI's simple file system.
  • Jump into the kernel.
  • Prepare BootInfo and pass to the kernel.
  • ...

Kernel Initializations

  • Serial logger.
  • Global Descriptor Table & Task State Segment.
  • Physical frame allocator, based on the boot info.
  • Kernel page table.
  • Kernel heap allocation & extern crate alloc.
  • Resolve ACPI table for interrupts & multiprocessors.
  • Trap handlers for critical faults.
  • Local APIC for the timer interrupt.
  • IO APIC for the UART serial.
  • Bootstrap application processors.
  • ...

User Tasks

  • Load embedded ELF user programs.
  • RAII-style user memory allocator and mapper.
  • User library to provide init code.
  • Switch to user mode.
  • Frame-preserving timer interrupt handler for preemption.
  • Round-robin task scheduler.
  • System calls with shared memory.
  • User heap allocator.
  • Task recycling.
  • Idle task with kernel privilege.
  • Basic priority-based scheduler.
  • File or device resource management.
  • Blocking system calls.
  • A basic userspace shell.
  • Task spawning and forking.
  • Synchronization primitives.
  • Asynchronous IO.
  • ...

Other Kernel Functionalities

  • Event-driven UART serial input handler.
  • Kernel task with async Rust!
  • Multiprocessors.
  • Simple file systems.
  • IPC mechanisms.
  • ...

References

litchi-rs's People

Contributors

bugenzhao 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.