How nsg650/polaris works
This repository is an x86_64 operating-system kernel. Its principal workflow is user code issuing system calls that operate on kernel processes, threads, memory, synchronization, and IPC objects. Architecture code supplies boot, interrupt, timer, and multiprocessor support; memory management and scheduling provide core internal layers. The README is empty, so subsystem coverage follows the source tree and SOURCE INDEX; unverified cross-component links are omitted or marked dashed.
Main entry points: dispatch.rs Syscall Dispatch · virt.rs Address Spaces · process.rs Processes · apic.rs APIC Control
Components 20
Kernel and Architecture
- Kernel Entry
src/main.rs - x86 Entry
src/arch/x86_64/entry.rs - ACPI Discovery
src/arch/x86_64/acpi.rs - APIC Control
src/arch/x86_64/apic.rs - CPU Primitives
src/arch/x86_64/asm.rs - HPET Timer
src/arch/x86_64/hpet.rs - Interrupt Handling
src/arch/x86_64/intr.rs - Multiprocessors
src/arch/x86_64/smp.rs
Memory Management
- Physical Memory
src/mm/phys.rs - Address Spaces
src/mm/virt.rs - Memory Objects
src/mm/vmb.rs
Execution and Objects
- Processes
src/sched/process.rs - Threads
src/sched/thread.rs - Scheduler
src/sched/sched.rs - Wait Dispatch
src/sched/dispatch.rs - Object Handles
src/object/handle.rs
Kernel Interfaces
- Syscall Dispatch
src/syscall/dispatch.rs - IPC Channels
src/ipc/channels.rs - Spinlocks
src/locks/spinlock.rs
Other components
- User Program
user/user.c
Connections 18
- User Program → Syscall Dispatch: issues calls
- Kernel Entry → x86 Entry: enters via
- APIC Control → ACPI Discovery: reads tables
src/arch/x86_64/apic.rs - APIC Control → CPU Primitives: uses primitives
src/arch/x86_64/apic.rs - APIC Control → HPET Timer: uses timer
src/arch/x86_64/apic.rs - Address Spaces → Memory Objects: maps pages from
src/mm/virt.rs - Address Spaces → Physical Memory: allocates pages
src/mm/virt.rs - Processes → Address Spaces: owns address space
src/sched/process.rs - Processes → Threads: tracks threads
src/sched/process.rs - Threads → Scheduler: enqueues thread
src/sched/thread.rs - Scheduler → Threads: selects thread
src/sched/sched.rs - Wait Dispatch → Scheduler: yields execution
src/sched/dispatch.rs - Object Handles → Processes: resolves current process
src/object/handle.rs - Syscall Dispatch → IPC Channels: dispatches IPC
src/syscall/dispatch.rs - Syscall Dispatch → Address Spaces: dispatches memory calls
src/syscall/dispatch.rs - Syscall Dispatch → Processes: dispatches process calls
src/syscall/dispatch.rs - Spinlocks → Interrupt Handling: controls interrupts
src/locks/spinlock.rs - IPC Channels → Object Handles: uses object handles
src/ipc/channels.rs