Skip to content

Commit

Permalink
boot,unittest: re-enable real mode testing
Browse files Browse the repository at this point in the history
Signed-off-by: Johannes Wikner <[email protected]>
  • Loading branch information
sktt committed Aug 29, 2023
1 parent 4eed64b commit 2326a87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ ifeq ($(CONFIG_ACPICA),y)
COMMON_FLAGS += -DKTF_ACPICA
endif

ifneq ($(UNITTEST),)
COMMON_FLAGS += -DKTF_UNIT_TEST
endif

AFLAGS := $(COMMON_FLAGS) -DASM_FILE -D__ASSEMBLY__ -nostdlib -nostdinc
CFLAGS := $(COMMON_FLAGS) -std=gnu99 -O2 -g -Wall -Wextra -ffreestanding -nostdlib -nostdinc
CFLAGS += -mno-red-zone -mno-mmx -mno-sse -mno-sse2
Expand Down
2 changes: 0 additions & 2 deletions tests/unittests.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,10 +175,8 @@ int unit_tests(void *_unused) {
schedule_task(task_user1, get_bsp_cpu());
schedule_task(task_user2, get_cpu(1));

#ifdef UNITTEST_LONGMODE
printk("Long mode to real mode transition:\n");
long_to_real();
#endif

return 0;
}

0 comments on commit 2326a87

Please sign in to comment.