Commits

prabirshrestha committed cc9cbf3

fill boot0.S with empty

  • Participants
  • Parent commits 640d457
  • Branches mk

Comments (0)

Files changed (2)

 boot: $(BOOTSRCPATH)boot.img
 
 clean_boot:
-	rm $(BOOTSRCPATH)*.o $(BOOTSRCPATH)*.elf $(BOOTSRCPATH)*.img
+	rm $(BOOTSRCPATH)*.o $(BOOTSRCPATH)*.elf $(BOOTSRCPATH)*.bin $(BOOTSRCPATH)*.img
 
 $(BOOTSRCPATH)boot.img: $(BOOTSRCPATH)boot0.bin
 
 .text
 	jmp .
 
+main:
+
+.fill (510-(.-main)), 1, 0  # Pad with nulls up to 510 bytes (exclude boot magic)
+
+BootMagic:  .int 0xAA55     # magic word for BIOS
+                            # if the last word of bootsector contains 0xAA55,
+                            # then this disk is treated by BIOS as bootable