summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-09 10:03:32 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-09 10:03:32 +0200
commit0849d91d3cc0326537b4175841946a859191d8cc (patch)
tree225919665a4a489bf71cd898faa3884fd9d55a9f
parentce832186460563db9cdfb59bd438f242600c0edf (diff)
downloadabaos-0849d91d3cc0326537b4175841946a859191d8cc.tar.gz
abaos-0849d91d3cc0326537b4175841946a859191d8cc.tar.bz2
made kernel boot with optimizations on (clang), reason where the
use of MMX registers
-rw-r--r--BUGS4
-rw-r--r--src/Makefile2
2 files changed, 4 insertions, 2 deletions
diff --git a/BUGS b/BUGS
index 4b9930b..1104f2a 100644
--- a/BUGS
+++ b/BUGS
@@ -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