diff options
author | aqua <aqua@iserlohn-fortress.net> | 2022-12-04 17:17:03 +0200 |
---|---|---|
committer | aqua <aqua@iserlohn-fortress.net> | 2022-12-04 17:26:54 +0200 |
commit | 36367557604575ffec9739e0a64e2f0cdff07e77 (patch) | |
tree | 548a58dd1fe817a190abc53018defd337634ba7c /i686 | |
parent | Remove custom include paths in makefiles (diff) | |
download | kernel-36367557604575ffec9739e0a64e2f0cdff07e77.tar.xz |
Rename CCFLAGS to CFLAGS
Diffstat (limited to 'i686')
-rw-r--r-- | i686/sys/control.h | 6 | ||||
-rw-r--r-- | i686/toolchain.mk | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/i686/sys/control.h b/i686/sys/control.h index 1b38472..7dde3c8 100644 --- a/i686/sys/control.h +++ b/i686/sys/control.h @@ -3,9 +3,13 @@ static inline void abort() { - asm volatile(R"(cli + /* Symbol h is already defined? +asm volatile(R"(cli h: hlt jmp h)"); +*/ + asm volatile(R"(cli +hlt)"); } static inline void diff --git a/i686/toolchain.mk b/i686/toolchain.mk index 6f69cdb..43c758c 100644 --- a/i686/toolchain.mk +++ b/i686/toolchain.mk @@ -4,8 +4,8 @@ ARCH=i686 # AS := i686-elf-as CC := i686-elf-gcc -CCFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only -CCFLAGS += $(shell echo ${CONFIG_CCFLAGS}) +CFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 -mgeneral-regs-only +CFLAGS += $(shell echo ${CONFIG_CFLAGS}) LD := i686-elf-ld LDFLAGS := -static -nostdlib LDFLAGS += $(shell echo ${CONFIG_LDFLAGS}) |