How archisman-mridha/operating-system works
Project type and purpose
• From the file tree and README, this “Arno” project is an educational, monolithic operating-system kernel written in Rust for RISC-V.
• It includes:
• A low-level boot/entry (assembly) and linker script (“linker.ld”).
• Core kernel subsystems (memory, process, drivers, filesystem, locks).
• RISC-V support under “src/arch/riscv” and QEMU integration.
• “primitives” folder containing CPU models/emulators in Rust, TypeScript, and Verilog.
File structure
• Top-level:
• Cargo.toml, build.rs, shell.nix, linker.ld → build and toolchain setup.
• src/asm, src/start.rs, src/main.rs → boot and entry points.
• src/arch/riscv → architecture-specific code (modes, registers, QEMU glue).
• src/drivers → PLIC (interrupt controller), UART.
• src/memory → virtual/physical addressing, allocator (buddy, list), page tables.
• src/fs → disk abstraction, block cache.
• src/process → process struct, CPU/core management, scheduler.
• src/locks → spinlocks and sleeplocks.
• primitives:
• riscv-emulator in Rust under primitives/riscv-emulator.
• riscv-cpu in TypeScript and Verilog.
README insights
• Confirms this is a kernel running on RISC-V, using QEMU or custom CPU primitives.