diff options
| author | Michal Idziorek <m.i@gmx.at> | 2014-09-01 13:26:52 +0200 |
|---|---|---|
| committer | Michal Idziorek <m.i@gmx.at> | 2014-09-01 13:26:52 +0200 |
| commit | 347ee926fd09d7fb45025f2c4e4a4eeab83459c9 (patch) | |
| tree | 8d082bcaebe7579fe4fa73dd6eead7c00bb051fd /Makefile | |
| parent | a9682cac5f14f8d04c87d206cf1d8367e77a61e1 (diff) | |
Added kernel_entry for APs
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 19 |
1 files changed, 15 insertions, 4 deletions
@@ -16,6 +16,8 @@ #lets use the size of a 1.44 floppy for a start for our boot img IMAGE_SIZE=1474560 +#ap bin : +MP_IMG_START=25088 #font data starts at sector 50 FONT_DATA_START=25600 @@ -47,6 +49,12 @@ KERNEL_ENTRY=./boot/kernel_entry.o MBR=./boot/mbr.bin + +#multiprocessor binary entry + +MP_BIN=./boot/mp.bin + + #some fillup data (zeros) FILLUP=./data/fill.bin @@ -83,13 +91,16 @@ binfont.bin: data/binfont.src # master boot record, kernel binary and fool-font -FoolOS.img: Fool.img FoolData.img $(FILLUP) +FoolOS.img: mbr_kernel_mp.img binfont.img $(FILLUP) cat $^ | head -c $(IMAGE_SIZE) > $@ -Fool.img: $(MBR) kernel.bin $(FILLUP) +mbr_kernel_mp.img: mbr_kernel.img $(MP_BIN) $(FILLUP) cat $^ | head -c $(FONT_DATA_START) > $@ -FoolData.img: binfont.bin +mbr_kernel.img: $(MBR) kernel.bin $(FILLUP) + cat $^ | head -c $(MP_IMG_START) > $@ + +binfont.img: binfont.bin cat $^ > $@ @@ -104,7 +115,7 @@ run: FoolOS.img ############ cleanup ############ clean: - -rm *.bin *.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) bochs.out ne2k-tx.log ne2k-txdump.txt + -rm *.bin *.img bochs.log $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) $(FILLUP) $(MBR) $(MP_BIN) bochs.out ne2k-tx.log ne2k-txdump.txt ############ test stuff ############ acer: FoolOS.img |
