diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-09 10:03:32 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-07-09 10:03:32 +0200 |
commit | 0849d91d3cc0326537b4175841946a859191d8cc (patch) | |
tree | 225919665a4a489bf71cd898faa3884fd9d55a9f | |
parent | ce832186460563db9cdfb59bd438f242600c0edf (diff) | |
download | abaos-0849d91d3cc0326537b4175841946a859191d8cc.tar.gz abaos-0849d91d3cc0326537b4175841946a859191d8cc.tar.bz2 |
made kernel boot with optimizations on (clang), reason where the
use of MMX registers
-rw-r--r-- | BUGS | 4 | ||||
-rw-r--r-- | src/Makefile | 2 |
2 files changed, 4 insertions, 2 deletions
@@ -21,4 +21,6 @@ outside of the library. Then in the libc test directory we have to implement a stub module for instance using some host functions like standard io of the host C library -- code breaks heavily under O2 optimization with clang (at least) +- VGA graphic mode switch fails with optimizations on (at least with + gcc and clang) + diff --git a/src/Makefile b/src/Makefile index 62909a1..3838b08 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,6 +1,6 @@ CC := gcc INCLUDES = -I. -Ilibc -Ihardware -Idrivers -Idrivers/hdi -Idrivers/hdi/ps2 -Idrivers/video -Ikernel -Igui -CFLAGS := -std=c99 -m32 -ffreestanding -O0 -g -Werror $(INCLUDES) +CFLAGS := -std=c99 -m32 -march=i486 -ffreestanding -O0 -g -Werror $(INCLUDES) LD := ld NASMFLAGS := -f elf32 NASM := nasm |