From 0849d91d3cc0326537b4175841946a859191d8cc Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 9 Jul 2017 10:03:32 +0200 Subject: made kernel boot with optimizations on (clang), reason where the use of MMX registers --- BUGS | 4 +++- src/Makefile | 2 +- 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 -- cgit v1.2.3-54-g00ecf