
Write a Physical Memory Manager With a Bitmap Allocator
Write a bitmap physical memory manager in C: place the bitmap in usable RAM, mark reserved and kernel frames, allocate and free 4 KiB frames, and allocate runs.
Everything you need to level up your coding skills.

Write a bitmap physical memory manager in C: place the bitmap in usable RAM, mark reserved and kernel frames, allocate and free 4 KiB frames, and allocate runs.

Set probe-rs run as the Cargo runner, add defmt and defmt-rtt, and read log lines from a running Cortex-M board in your terminal with panic-probe.

Program the 8253 PIT for a periodic tick, then calibrate the local APIC timer against it and run a 1000 Hz tick, with a tick counter and a sleep function.

Build a bare-metal Rust blinky for an STM32F411 Nucleo board with stm32f4xx-hal, from Cargo.toml and memory.x to the toggle loop and the flash command.

Write a PS/2 keyboard driver for a hobby kernel: the 8042 ports, scancode set 1, make and break codes, the 0xE0 prefix, shift and caps lock, and a ring buffer.

Read and write files in Rust safely with std::fs and BufReader, understanding why unbuffered reads are slow and how Result propagation replaces manual checks.

Remap the two 8259 PICs away from the CPU exception vectors, mask and unmask IRQ lines, send the end-of-interrupt and detect spurious IRQ 7 and IRQ 15.

no_std removes Rust's standard library and keeps core. See what disappears (heap, threads, files, println), what stays, and how alloc fits back in.

Build your own x86 GDT in C: descriptor layout, kernel and user segments, a TSS slot, lgdt and segment register reloads, and the 64-bit changes.

atexit registers cleanup functions that run in reverse order when a program ends normally. on_exit also passes the status. Neither runs after _exit or abort.

Segmentation and paging both translate x86 addresses. See what each does, why 64-bit mode keeps only FS and GS bases, and which to use for protection.

Write two GNU linker scripts that share one flash layout file, split flash between bootloader and application, and fail the build when either region overflows.
We send one email when a new post is published. No spam.