Loading...

Developing a Multithreaded Kernel From Scratch: Part Two - Module One

Daniel McCarthy

Created by

Daniel McCarthy

0.00 Star (0)

21 Hours

103 Lesson

$315.99

Description

This course is the continuation of Part 1, where we built PeachOS, a fully functioning 32-bit multitasking operating system. In Part 2, we take the project to the next level: building a 64-bit multi-threaded kernel that runs in long mode with a graphical user interface (GUI) capable of rendering interactive, clickable, and draggable windows.

This isn’t just theory—you’ll be building a complete, modern OS step by step, starting from the bootloader all the way up to a graphical desktop environment.
Module 1 Overview

In the first module of Part 2, we focus on the foundations of a modern 64-bit kernel. We migrate from 32-bit protected mode into 64-bit long mode, create a UEFI bootloader, and lay down the critical systems that will later allow us to support GUIs, multitasking, and advanced storage.

Here’s what we cover in detail:
🔹 Graphics & Display

— Capture and take control of the UEFI framebuffer, giving us the ability to write pixels directly to the screen.
— Implement full support for loading images and fonts.
— Build a terminal system that uses pixel-based fonts to render text directly onto the display.
— Design a graphical subsystem on which the terminal itself is built. This includes:
  — Relative drawing anywhere on the screen.
  — Hierarchical graphics (parents and children, with relative offsets).
  — A system that allows complex UI elements to be composed cleanly and drawn efficiently.

🔹 Memory Management

— Rebuild the heap allocator so that it dynamically uses the E820 memory map provided by UEFI/BIOS, instead of relying on a fixed memory region.
— Develop a multi-heap system, capable of merging multiple heaps into a unified allocator that intelligently chooses blocks for allocation.
— Implement a paging-based memory defragmenter that can remap scattered free regions into a single continuous block of memory—solving fragmentation issues and maximizing usable RAM.

🔹 Disk & Partitions

— Extend our FAT16 filesystem to support multiple GPT partitions.
— Mount each partition as a virtual drive, allowing the OS to work with multiple logical disks simultaneously.
— Redesign and abstract the disk system to support this multi-partition model, preparing the kernel for future support of modern storage hardware like SSDs.

✅ By the end of Module 1, you’ll have:

— A 64-bit kernel bootable on modern UEFI systems.
— A fully functional terminal with a graphical foundation underneath.
— An advanced heap allocator with defragmentation support.
— A multi-partition disk subsystem capable of treating different GPT partitions as separate drives.
— The core building blocks required for a GUI-based operating system.

Coming in Module 2 (Estimated Release: December 2025)

Module 2 builds directly on this foundation and focuses on turning the kernel into a full graphical operating system with multitasking, drivers, and a rich user experience.

You will:

— Expose standard C library functions (fopen, fread, etc.) to userspace through isr80h.
— Build the complete windowing system, with support for fully interactive GUI elements.
— Implement an NVMe SSD driver, enabling high-speed reads from modern solid-state storage.
— Add full PCI/PCIe support, including bridges, making the kernel capable of scanning and interacting with a wide variety of devices.
— Access a GitHub repository of user programs that you can run directly on your OS. You’ll even be able to submit pull requests to share your own user-space programs with other students in the course.

By the end of Part 2, you’ll have created a multi-threaded, 64-bit, GUI operating system from scratch—bootable on modern hardware and extensible enough to run real user applications.

Special Discount for Early Students

🎉 SUPER DISCOUNT OFFER: If you purchase Module 1 before Module 2 is released, you will be able to obtain Module 2 for just 34.99 EUR (or equivalent in your currency). Just email me at daniel@dragonzap.com

 

Requirements

A computer (Windows, macOS, or Linux) capable of running QEMU/VirtualBox/VMware

Basic knowledge of C programming (pointers, structs, functions)

Familiarity with x86 assembly language at a beginner level (recommended)

Understanding of basic computer architecture concepts (CPU, RAM, stack, registers)

A code editor or IDE of your choice (VS Code, CLion, Vim, etc.)

Willingness to use the terminal/command line for building and testing the OS

GCC or Clang toolchain installed (I’ll show you how to set it up)

(Optional but recommended) Completion of Part 1: Developing a Multitasking Kernel From Scratch a.k.a Kernel Development For Beginners Tutorial

Who This Course is For

Programmers who want to understand operating systems at a low level

Developers interested in kernel and OS design from scratch

Students of computer science, systems programming, or embedded systems

Hobbyists who enjoy building their own OS or experimenting with bare-metal programming

Engineers who want to learn modern 64-bit, UEFI-based booting and kernel development

Anyone curious about memory management, paging, and heap design in kernels

Developers who want hands-on experience with graphics, terminals, and GUI systems

Programmers looking to implement file systems, disk drivers, and PCI/NVMe support

Learners who enjoyed Part 1 (PeachOS) and want to continue into 64-bit multi-threaded kernels

Advanced C programmers seeking a real-world project that pushes their skills

What You Will be Learn

Build a 64-bit multitasking kernel from scratch

Write a UEFI bootloader to boot on modern hardware

Switch the CPU into long mode (x86-64) and run your kernel there

Capture and use the UEFI framebuffer to draw pixels directly to the screen

Load and render images and fonts in your OS

Build a graphical terminal system capable of text rendering via pixels and fonts

Design a hierarchical graphics system supporting relative drawing and child graphics

Implement a dynamic multi-heap memory allocator using E820 memory regions

Create a memory defragmenter using paging to provide continuous virtual memory blocks

Extend the FAT16 filesystem to support multiple GPT partitions and virtual drives

Abstract and rewrite the disk system to support multi-partition mounting

Lay the groundwork for a full GUI windowing system with draggable, clickable elements

Prepare to add userspace stdio functions, PCI, and NVMe drivers in later modules

Instructor
Daniel McCarthy

Dragon Zap Instructor

4.90 Star Rating

15 Courses

Dragon Zap Instructor

Daniel McCarthy is a seasoned software engineer, boasting an impressive career spanning over 14 years in the industry. Holding a Master's Degree in Advanced Computer Science from Cardiff Metropolitan University, his broad spectrum of experience encompasses everything from web development to complex compiler and interpreter development. Daniel has honed his skills in bootloader and kernel development. In testament to his proficiency in the field, he has designed two proprietary programming languages: Craft, a general-purpose language, and Marble, a web-focused language akin to PHP. Moreover, he has successfully developed compilers for the C programming language. A testament to his versatility, Daniel demonstrates proficiency in an extensive list of programming languages that includes C, C++, Java, x86 Assembly language, PIC assembly, SQL, PHP, HTML5, JavaScript, CSS, and of course, his own creations, Craft and Marble. His professional portfolio also includes the development of Linux kernel modules, a task he has executed with proficiency in a professional context. Currently, Daniel is channeling his wealth of experience and expertise into the education sector, with the aim of nurturing the next generation of professional software engineers.

0.0

Course Rating

0%

0%

0%

0%

0%

Students Feedback (0)
Sort by:

$315.99

This course includes:
  • dollar

    Full Lifetime Access

  • clock

    30 Days Money Back Guarantee

  • paper-plus

    Free Exercises File

  • airplay

    Watch online or offline

  • clipboard

    Certificate of Completion

Related Courses

Free
With
Subscription
Free
With
Subscription
Free
With
Subscription
Free
With
Subscription
shape shape