2018-11-08 03:46:57 +00:00
|
|
|
# cs850_multiarch_bs
|
2018-11-03 04:06:09 +00:00
|
|
|
Minimal bootstrap code for x86, Sparc and MIPS
|
2018-11-08 03:41:59 +00:00
|
|
|
|
|
|
|
|
2018-11-08 03:46:57 +00:00
|
|
|
# x86
|
|
|
|
## Summary
|
2018-11-08 03:46:36 +00:00
|
|
|
Uses a 2-stage bootloader to boot from FAT12 floppy disk.
|
|
|
|
|
|
|
|
Stage 1 loader loads stage 2 loader from the floppy and jumps to it.
|
|
|
|
|
|
|
|
Stage 2 loader initializes protected mode, detects system memory, loads the kernel from the floppy, and eventually calls "kmain" function in kernel.c.
|
|
|
|
|
2018-11-08 03:46:57 +00:00
|
|
|
## Building
|
2018-11-08 03:41:59 +00:00
|
|
|
Run "make" in "x86" directory.
|
|
|
|
|
|
|
|
The boot image "boot.img" is generated under "out" directory.
|
|
|
|
|
|
|
|
Use QEMU or Bochs to emulate.
|