We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cbaa52 commit b51ffb7Copy full SHA for b51ffb7
2 files changed
Makefile
@@ -124,6 +124,10 @@ ifeq ($(CONFIG_ACPICA),y)
124
COMMON_FLAGS += -DKTF_ACPICA
125
endif
126
127
+ifneq ($(UNITTEST),)
128
+COMMON_FLAGS += -DKTF_UNIT_TEST
129
+endif
130
+
131
AFLAGS := $(COMMON_FLAGS) -DASM_FILE -D__ASSEMBLY__ -nostdlib -nostdinc
132
CFLAGS := $(COMMON_FLAGS) -std=gnu99 -O2 -g -Wall -Wextra -ffreestanding -nostdlib -nostdinc
133
CFLAGS += -mno-red-zone -mno-mmx -mno-sse -mno-sse2
tests/unittests.c
@@ -173,10 +173,8 @@ int unit_tests(void *_unused) {
173
schedule_task(task_user1, get_bsp_cpu());
174
schedule_task(task_user2, get_cpu(1));
175
176
-#ifdef UNITTEST_LONGMODE
177
printk("Long mode to real mode transition:\n");
178
long_to_real();
179
-#endif
180
181
return 0;
182
}
0 commit comments