Prints initial memory map. Improvements to printk. Changed Makefile so that lgcc is linked after everything else.

This commit is contained in:
2014-02-11 11:57:26 -05:00
parent f23f3a8a8d
commit 9994b80c0d
3 changed files with 218 additions and 56 deletions

View File

@ -13,14 +13,14 @@ OBJS += $(patsubst %.c,%.o,$(SOURCES_C))
# Build flags
CFLAGS = -std=gnu99 -ffreestanding -Iinclude/ -O2 -Wall -Wextra
LDFLAGS = -ffreestanding -O2 -nostdlib -lgcc
LDFLAGS = -ffreestanding -O2 -nostdlib
# Build rules
all: brados.bin
.PHONY: all clean
brados.bin: $(OBJS) arch/$(ARCH)/linker.ld
$(GNU)-gcc -T arch/$(ARCH)/linker.ld -o $@ $(LDFLAGS) $(OBJS)
$(GNU)-gcc -T arch/$(ARCH)/linker.ld -o $@ $(LDFLAGS) $(OBJS) -lgcc
clean:
rm -f $(OBJS) brados.bin