From 414250d013a15651f3f945f5575cf477d99dded0 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Thu, 28 Mar 2024 12:01:43 -0700 Subject: [PATCH] boards: qemu_x86/atom/virt: forcibly disable memory mapped stack The current memory mapped stack code requires actual physical addresses for stacks, and cannot deal with stacks already using virtual addresses. So disable mapped stack via defconfig. Note that this is done before enabling memory mapped stacks on x86 so test won't fail when the support in the architecture code is introduced. Signed-off-by: Daniel Leung --- boards/qemu/x86/qemu_x86_atom_virt_defconfig | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/boards/qemu/x86/qemu_x86_atom_virt_defconfig b/boards/qemu/x86/qemu_x86_atom_virt_defconfig index c06824e6004..f4a79e4d306 100644 --- a/boards/qemu/x86/qemu_x86_atom_virt_defconfig +++ b/boards/qemu/x86/qemu_x86_atom_virt_defconfig @@ -20,3 +20,9 @@ CONFIG_KERNEL_VM_OFFSET=0 CONFIG_LINKER_USE_BOOT_SECTION=y CONFIG_LINKER_USE_PINNED_SECTION=y + +# For now, the mapped stacks require physical addresses +# and cannot deal with mapping a stack with virtual +# address. So make sure memory mapped stack is not +# enabled. +CONFIG_THREAD_STACK_MEM_MAPPED=n