Skip to content

mosmeh/x86-bare-metal-donut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x86-bare-metal-donut

build

Andy Sloane's donut.c ported to x86 bare-metal environments

How to run

First, install dependencies:

# on Ubuntu
sudo apt install gcc-multilib grub2 mtools xorriso qemu-system-x86

Then run the following command to build and run:

make run

It also creates a disk image file called disk_image. You can simply copy it onto a disk and boot it.

Notes

The donut.c is the revised version without any modification.

For the explanation of how donut.c works, see Andy Sloane's blog post.