Skip to content

Commit 64d0277

Browse files
rizlikdanielinux
authored andcommitted
x86/paging: fix: don't allocate page table pages in stage1
1 parent da89bfd commit 64d0277

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/x86/paging.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
#define PAGE_2MB_SHIFT 21
4343

44-
#if !defined(WOLFBOOT_LOADER)
44+
#if !defined(BUILD_LOADER_STAGE1)
4545
#define WOLFBOOT_PTP_NUM 128
4646
static uint8_t page_table_pages[WOLFBOOT_PTP_NUM * PAGE_TABLE_PAGE_SIZE]
4747
__attribute__((aligned(PAGE_TABLE_PAGE_SIZE)));

0 commit comments

Comments
 (0)