My implement of the operating system in the book 《操作系统真象还原》
you can run in
- bochs
- A real IA-32 machine
Only tested under Ubuntu 20.04, with following program installed
- gcc-4.8
- nasm
- dd
- ld
if using bochs, simply use the following script
./start_bochs.sh
directly running in a real machine is not suggested, so, do not do that!
Makefile is provided, simply type make
to build the disk image
GDT setup (just a little) and enter Protected Mode
sys_malloc and sys_free (a very simply memory manager)