aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/Makefile4
-rw-r--r--src/kernel/core/kmain.c2
-rw-r--r--src/kernel/core/sys.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/src/kernel/Makefile b/src/kernel/Makefile
index cbd6a96..a6f9a1b 100644
--- a/src/kernel/Makefile
+++ b/src/kernel/Makefile
@@ -1,5 +1,5 @@
-OBJ = core/loader.o core/dbglog.o core/sys.o \
+OBJ = core/loader.o core/dbglog.o \
core/gdt.o core/idt.o core/interrupt.o core/context_switch.o core/thread.o \
core/frame.o core/paging.o core/region.o core/kmalloc.o \
user/vfs.o user/nullfs.o user/process.o user/elf.o user/syscall.o
@@ -14,7 +14,7 @@ OUT = kernel.lib
include ../rules.make
-kernel.bin: kernel.lib core/kmain.o
+kernel.bin: kernel.lib core/kmain.o core/sys.o
$(LD) $(LDFLAGS) -o $@ $^
all: $(OUT) kernel.bin
diff --git a/src/kernel/core/kmain.c b/src/kernel/core/kmain.c
index 2e8991e..f5d2ace 100644
--- a/src/kernel/core/kmain.c
+++ b/src/kernel/core/kmain.c
@@ -28,7 +28,7 @@
#define TEST_PLACEHOLDER_AFTER_KMALLOC
#define TEST_PLACEHOLDER_AFTER_TASKING
#define TEST_PLACEHOLDER_AFTER_DEVFS
-#ifdef IS_A_TEST
+#ifdef BUILD_KERNEL_TEST
#define BEGIN_TEST(n) dbg_printf("(BEGIN-TEST %s)\n", n);
#define TEST_OK { dbg_printf("(TEST-OK)\n"); asm volatile("cli; hlt"); }
#include <test.c>
diff --git a/src/kernel/core/sys.c b/src/kernel/core/sys.c
index b1e69ad..fceada7 100644
--- a/src/kernel/core/sys.c
+++ b/src/kernel/core/sys.c
@@ -11,8 +11,8 @@ static void panic_do(const char* type, const char *msg, const char* file, int li
dbg_printf("| System halted -_-'\n");
dbg_printf("\\---------------------------------------------------------/");
BOCHS_BREAKPOINT;
-#ifdef IS_A_TEST
- dbg_printf("(TEST-FAIL)\n");
+#ifdef BUILD_KERNEL_TEST
+ dbg_printf("\n(TEST-FAIL)\n");
#endif
asm volatile("hlt");
}