Crate rstubs

source ·
Expand description

Rust version of the StuBS Kernel

The assignments are documented in the assignments module.

Modules§

  • arch 🔒
    Hardware- and architecture-dependent abstractions.
  • device 🔒
    Input and output devices
  • gdt 🔒
    This module defines the GDT and its segments.
  • interrupts 🔒
    Configures the interrupt handling.
  • threading 🔒
    The Multithreading Subsystem
  • user 🔒
    The application code.
  • util 🔒
    Utilities like useful data structures and locks

Constants§

  • MAX_CPUS 🔒
  • STACK_SIZE 🔒
    The stack size for the init and thread stacks. As rust uses the stack for printing, 4K usually isn’t enough…

Statics§

  • Stacks for each core, used for initialization (set before calling kmain).
  • Start address of the loaded kernel code.
  • KERNEL_END 🔒
    End address of the loaded kernel code.
  • MBOOT_PTR 🔒
    Pointer to the multiboot header.
  • MBOOT_SIG 🔒
    Signature of the multiboot header.
  • start_high 🔒
    Function pointer to the start_high function.

Functions§

  • Main function that is called for every core
  • panic 🔒
    This function is called on panic.