File tree 4 files changed +6
-17
lines changed
4 files changed +6
-17
lines changed Original file line number Diff line number Diff line change @@ -22,26 +22,11 @@ TARGET_PATH := ./target/$(TARGET)/$(TYPE)
22
22
KERNEL_LIBS := $(TARGET_PATH )
23
23
KERNEL_LIB_OUT := $(KERNEL_LIBS ) /libkernel.a
24
24
KERNEL_LIB_ASM := kernel_lib.S
25
- RUSTFLAGS : = -C soft-float -C panic=abort
25
+ RUSTFLAGS = -C soft-float -C panic=abort
26
26
27
27
LDSCRIPT := $(KERNEL_SRC ) /linker/kernel.ld
28
28
LDFLAGS = -z max-page-size=0x1000 --gc-sections -Map map.txt
29
29
30
- CFLAGS = -Wall -Werror -O -fno-omit-frame-pointer -ggdb -gdwarf-2
31
- CFLAGS += -MD
32
- CFLAGS += -Wl,--gc-sections -mcmodel=medany -march=rv64gc
33
- CFLAGS += -Wl,--no-warn-rwx-segments
34
- CFLAGS += -ffreestanding -nostartfiles -nostdlib -nodefaultlibs -fno-common -mno-relax
35
- CFLAGS += -I.
36
- CFLAGS += $(shell $(CC ) -fno-stack-protector -E -x c /dev/null >/dev/null 2>&1 && echo -fno-stack-protector)
37
-
38
- ifneq ($(shell $(CC ) -dumpspecs 2>/dev/null | grep -e '[^f]no-pie') ,)
39
- CFLAGS += -fno-pie -no-pie
40
- endif
41
- ifneq ($(shell $(CC ) -dumpspecs 2>/dev/null | grep -e '[^f]nopie') ,)
42
- CFLAGS += -fno-pie -nopie
43
- endif
44
-
45
30
# ---------------
46
31
# Kernel building (TODO: move to build.rs structure)
47
32
#
Original file line number Diff line number Diff line change 1
1
#![ no_main]
2
2
#![ no_std]
3
3
4
+ mod task;
5
+
4
6
use core:: panic:: PanicInfo ;
5
7
6
8
use dev:: uart16550:: { putchar, UART_BASE } ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ pub struct Task {
2
+
3
+ }
You can’t perform that action at this time.
0 commit comments