cgbahk / pintos

The pintos source distribution for JHU CS 318/418 projects
https://cs.jhu.edu/~huang/cs318/fall17/project/guide.html
0 stars 0 forks source link

Let's follow after Loader #6

Open cgbahk opened 5 years ago

cgbahk commented 5 years ago

When the BIOS finds a bootable floppy or hard disk, it loads the 512-byte boot sector into memory at physical addresses 0x7c00 through 0x7dff, and then uses a jmp instruction to set the CS:IP to 0000:7c00, passing control to the boot loader. Pintos:Lab0

The real start is from BIOS, but it does not have code. After that, code for bootloader can be check in loader.S, which seems good starting point.

Caution: loader.asm is not correct. So follow loader.S