Go to file
Nicolás Ortega Froysa 2aa306c9a3
It works now.
It most likely failed because the drive it was booting (i.e. the image
that was made) has less than 15 sectors in it to begin with. The kernel
only takes up less than 1 sector and so loading that qill suffice.
2018-02-23 17:39:14 +01:00
.gitignore Adding code so far. 2018-02-23 17:20:31 +01:00
boot_sect.asm It works now. 2018-02-23 17:39:14 +01:00
disk.asm Adding code so far. 2018-02-23 17:20:31 +01:00
gdt.asm Adding code so far. 2018-02-23 17:20:31 +01:00
kernel.c Adding code so far. 2018-02-23 17:20:31 +01:00
LICENSE Adding code so far. 2018-02-23 17:20:31 +01:00
Makefile Adding code so far. 2018-02-23 17:20:31 +01:00
print32.asm Adding code so far. 2018-02-23 17:20:31 +01:00
print.asm Go to newline afterwards. 2018-02-23 17:38:30 +01:00
README.md Added more compile info. 2018-02-23 17:27:03 +01:00
switch_prot.asm Adding code so far. 2018-02-23 17:20:31 +01:00

BasicKernel

This is code that I've been writing for a basic kernel from the Writing a Simple Operating System from Scratch book.

Compiling

I cross-compile from x86_64 to x86 (64 to 32-bit) on my machine, but all the code is plain x86. You will require gcc and nasm (as well as the normal GNU core utils) and you can run the final image using QEMU. To compile just run make.

License

Since this code is made with the help of the above mentioned book so generously created (yet incomplete), I've licensed this repo under the Unlicense.