Rust Bare-Metal Kernel
Bootstrapped from VGA frames and physical allocator to full kernel space.
CottonFS Block Storage
Custom partition file system tracking and securing directories.

Preemptive Multitasking
Context switches written directly in assembly ticking at 1000Hz.

smoltcp Concurrency
Piped frames from network hardware to inside kernel space.
In-Kernel TLS Browser
Loads real websites over HTTPS with secure network responses.
Kernel Development Process
From initial assembly bootloader to in-kernel graphical browser layout, built block-by-block.
1.
Bootloader
Configure long mode page tables and jump to Rust _start.
2.
Memory Map
Establish frame manager and heap bounds for allocation.
3.
IO & Drivers
Develop keyboard, mouse, PCI discovery and network drivers.
4.
Scheduler
Handle thread stacks and interrupt context switches in ASM.
5.
HTTPS Browser
Incorporate smoltcp and render text over static TLS layers.
Kernel Development Process
From initial assembly bootloader to in-kernel graphical browser layout, built block-by-block.
01. Bootloader
Configure long mode page tables and jump to Rust _start.
02. Memory Map
Establish frame manager and heap bounds for allocation.
03. IO & Drivers
Develop keyboard, mouse, PCI discovery and network drivers.
04. Scheduler
Handle thread stacks and interrupt context switches in ASM.
05. HTTPS Browser
Incorporate smoltcp and render text over static TLS layers.
A Deep Dive into Systems Programming
Building an operating system kernel demands detailed synchronization between hardware drivers and low-level system memory page tables.
CottonOS leverages Rust's strict safety guarantees to prevent memory leaks and thread race conditions in VGA display buffers.
CottonOS leverages Rust's strict safety guarantees to prevent memory leaks and thread race conditions in VGA display buffers.

Bare-Metal Memory Layout
- Linked-list heap manager
- Bitmapped physical frame tracker
- Multi-level page table identity mapping
- VGA scroll rendering buffer

Network Interface Stack
- smoltcp network hook translation
- PCI bus card register discovery
- In-kernel TLS 1.3 socket parsing
- Custom responsive terminal window shell
Explore CottonOS in Action
Click on any screenshot to expand a full-screen interactive view.
