Skip to content

Commit b51ffb7

Browse files
committed
boot,unittest: re-enable real mode testing
Signed-off-by: Johannes Wikner <johannes.wikner@gmail.com>
1 parent 5cbaa52 commit b51ffb7

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ ifeq ($(CONFIG_ACPICA),y)
124124
COMMON_FLAGS += -DKTF_ACPICA
125125
endif
126126

127+
ifneq ($(UNITTEST),)
128+
COMMON_FLAGS += -DKTF_UNIT_TEST
129+
endif
130+
127131
AFLAGS := $(COMMON_FLAGS) -DASM_FILE -D__ASSEMBLY__ -nostdlib -nostdinc
128132
CFLAGS := $(COMMON_FLAGS) -std=gnu99 -O2 -g -Wall -Wextra -ffreestanding -nostdlib -nostdinc
129133
CFLAGS += -mno-red-zone -mno-mmx -mno-sse -mno-sse2

tests/unittests.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,8 @@ int unit_tests(void *_unused) {
173173
schedule_task(task_user1, get_bsp_cpu());
174174
schedule_task(task_user2, get_cpu(1));
175175

176-
#ifdef UNITTEST_LONGMODE
177176
printk("Long mode to real mode transition:\n");
178177
long_to_real();
179-
#endif
180178

181179
return 0;
182180
}

0 commit comments

Comments
 (0)