Skip to content

Instantly share code, notes, and snippets.

@machinamentum
machinamentum / main.c
Last active April 5, 2025 19:49
Simple UEFI kernel boot
/*
Author: Josh Huelsman
A contrived example of a UEFI bootloader that:
* Sets up a GOP framebuffer
* Retrieves a memory map
* Exits boot services
* Starts executing kernel code built-in to the bootloader
* kernel sets up a basic Long Mode GDT and IDT
* kernel installs an interrupt service routine for int 25, then executes int 25