Commit fadc6b79 authored by Keith Packard's avatar Keith Packard Committed by Fabio Baltieri
Browse files

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: default avatarKeith Packard <keithp@keithp.com>
parent 6a9a8768
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -112,6 +112,6 @@ config X86_EXTRA_PAGE_TABLE_PAGES

config DEMAND_PAGING_PAGE_FRAMES_RESERVE
	# 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