Compare commits
2 commits
b24035c51f
...
23a41dfbdd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
23a41dfbdd | ||
|
|
c8abe9e1aa |
3 changed files with 12 additions and 3 deletions
5
Makefile
5
Makefile
|
|
@ -17,7 +17,10 @@ CFLAGS = -Wall -Werror -O
|
|||
CFLAGS += -Wno-unused-result
|
||||
CFLAGS += -mcmodel=medany
|
||||
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 += -MD # Generate header dependency files (.d)
|
||||
|
|
|
|||
8
kern/libkern/stdbool.h
Normal file
8
kern/libkern/stdbool.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef _STDBOOL_H
|
||||
#define _STDBOOL_H
|
||||
|
||||
/*TODO*/
|
||||
typedef char bool;
|
||||
enum { false = 0, true = 1 };
|
||||
|
||||
#endif
|
||||
|
|
@ -12,5 +12,3 @@ typedef unsigned long uint64_t;
|
|||
typedef uint64_t size_t;
|
||||
|
||||
typedef uint64_t uintptr_t;
|
||||
|
||||
typedef u8 bool;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue