Compare commits

...

2 commits

Author SHA1 Message Date
Imbus
23a41dfbdd Split some cflags 2025-09-01 23:05:31 +02:00
Imbus
c8abe9e1aa Put bool into stdbool.h 2025-09-01 23:05:23 +02:00
3 changed files with 12 additions and 3 deletions

View file

@ -17,7 +17,10 @@ CFLAGS = -Wall -Werror -O
CFLAGS += -Wno-unused-result CFLAGS += -Wno-unused-result
CFLAGS += -mcmodel=medany CFLAGS += -mcmodel=medany
CFLAGS += -march=rv64gc -mabi=lp64 CFLAGS += -march=rv64gc -mabi=lp64
CFLAGS += -ffreestanding -fno-common -nostdlib -mno-relax CFLAGS += -ffreestanding
CFLAGS += -fno-common
CFLAGS += -nostdlib
CFLAGS += -mno-relax
CFLAGS += -fno-stack-protector # Prevents code that needs libc / runtime support CFLAGS += -fno-stack-protector # Prevents code that needs libc / runtime support
CFLAGS += -MD # Generate header dependency files (.d) CFLAGS += -MD # Generate header dependency files (.d)

8
kern/libkern/stdbool.h Normal file
View file

@ -0,0 +1,8 @@
#ifndef _STDBOOL_H
#define _STDBOOL_H
/*TODO*/
typedef char bool;
enum { false = 0, true = 1 };
#endif

View file

@ -12,5 +12,3 @@ typedef unsigned long uint64_t;
typedef uint64_t size_t; typedef uint64_t size_t;
typedef uint64_t uintptr_t; typedef uint64_t uintptr_t;
typedef u8 bool;