---
title: "frostbyte: x86_64 OS kernel in C and assembly | VulCode"
description: "frostbyte is an operating system kernel for the x86_64 architecture, written from scratch in C and assembly and run in the QEMU emulator."
url: "https://vulcode.com/en/portfolio/other/frostbyte"
lang: "en"
---

[Other](https://vulcode.com/en/portfolio/other)

# frostbyte

x86_64 OS kernel in C and assembly

An operating system kernel for x86_64 processors, written in C and assembly. It boots in the QEMU emulator, manages memory, switches between tasks and runs programs in user mode.

## About the project

frostbyte is an operating system kernel for the x86_64 architecture, written from scratch in C and assembly and run in the QEMU emulator. It boots via Multiboot2, the standard protocol a bootloader uses to hand control to a kernel, then switches to 64-bit mode with its own page tables (the structures that map memory addresses). It has a preemptive scheduler, which switches the processor between tasks on its own, and runs programs in ring 3, the least privileged processor mode.

## The challenge

An operating system kernel written from scratch is a project that forgives nothing: one wrong bit in a page table and the machine simply resets, with no message. The goal was to get all the way from the bootloader to running programs in user mode.

## What we did

- Booting via Multiboot2 and switching the processor to 64-bit mode

- Its own page tables and memory management

- A preemptive scheduler that switches between tasks

- Running programs in ring 3, that is in user mode

- The kernel boots in the QEMU emulator

## Related projects

- Project
  ### voxelforge
  An engine for a world built from cubic blocks (voxels) that you can play in the browser. WebGL2 draws the picture, the code runs as WebAssembly, and tests check the world's logic.
  [Project](https://vulcode.com/en/portfolio/other/voxelforge)

- Project
  ### gameboy-sharp
  An emulator of the original Game Boy (the DMG model) written in C#. Its core does not depend on the display layer, so it can be run and checked without a window.
  [Project](https://vulcode.com/en/portfolio/other/gameboy-sharp)

- Project
  ### chip8-sharp
  A CHIP-8 emulator written in C# as a pure library, with no graphics layer of its own. It covers the full instruction set and is checked against the community's test ROMs.
  [Project](https://vulcode.com/en/portfolio/other/chip8-sharp)

## Describe your project.

A free quote comes back within an hour during working hours.

### Rather skip the form?

Ask in the chat or write to us directly.

Open the chat

- **Email**: [hello@vulcode.com](mailto:hello@vulcode.com)
- **Phone**: [+48 576 043 920](tel:+48576043920)
- **Discord**: [discord.gg/vulcode](https://discord.gg/vulcode)

## Tell us what you want to build.

A free quote comes back within an hour during working hours. You talk to the person who writes the code.

[Free quote](https://vulcode.com/en/quote) [Free consultation](https://vulcode.com/en/consultation)

- [hello@vulcode.com](mailto:hello@vulcode.com)

- [+48 576 043 920](tel:+48576043920)

- [discord.gg/vulcode](https://discord.gg/vulcode)
