From aad04a2208fbde8db2c1a81d6057c1ac4edb390e Mon Sep 17 00:00:00 2001 From: Michal Idziorek Date: Wed, 3 Sep 2014 00:15:51 +0200 Subject: ACPI support ! --- Makefile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 2b7b957..936cdab 100644 --- a/Makefile +++ b/Makefile @@ -19,17 +19,18 @@ IMAGE_SIZE=1474560 #ap bin : MP_IMG_START=25088 -#font data starts at sector 50 -FONT_DATA_START=25600 +#font data starts here: +FONT_DATA_START=26624 -USB_STICK=/dev/sdf +USB_STICK=/dev/sdd ############ flags ############ CFLAGS=-ffreestanding -std=gnu99 -m32 -fno-asynchronous-unwind-tables -O0 CFLAGS+= -I. +#CFLAGS+=-fdata-sections -ffunction-sections #CFLAGS+= -Werror @@ -80,7 +81,7 @@ all: FoolOS.img # the kernel_entry.o needs to be FIRST!! kernel.bin: $(KERNEL_ENTRY) $(ASMOBJECTS) $(OBJECTS) - ld -o $@ -Ttext 0x1000 --oformat binary -melf_i386 $^ -O0 + ld -o $@ -Ttext 0x1000 --oformat binary -melf_i386 $^ -O0 # --gc-sections --entry=kernel_main -v ############ fool-font ############ @@ -120,7 +121,7 @@ clean: -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 +stick: FoolOS.img cat FoolOS.img > $(USB_STICK) && sync xxd $(USB_STICK) | head -n 50 -- cgit v1.2.3