boards/qemu_x86: Don't reserve pages with no picolib heap

When there's no malloc heap needed for picolibc, don't reserve
the page frames that would be needed. This makes sure
the kernel.demand_paging tests provoke the page faults as
expected.

Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Keith Packard 2023-01-27 15:09:55 -08:00 committed by Fabio Baltieri
parent 6a9a8768e7
commit fadc6b79bb

View file

@ -112,6 +112,6 @@ config X86_EXTRA_PAGE_TABLE_PAGES
config DEMAND_PAGING_PAGE_FRAMES_RESERVE config DEMAND_PAGING_PAGE_FRAMES_RESERVE
# Need to accommodate the heap for newlib in libc-hook.c # Need to accommodate the heap for newlib in libc-hook.c
default 6 if NEWLIB_LIBC || PICOLIBC default 6 if NEWLIB_LIBC || (PICOLIBC && PICOLIBC_HEAP_SIZE > 0)
endif # BOARD_QEMU_X86_TINY endif # BOARD_QEMU_X86_TINY