diff --git a/arch/Kconfig b/arch/Kconfig index f5e48eed69d..b7131ad4279 100644 --- a/arch/Kconfig +++ b/arch/Kconfig @@ -53,6 +53,8 @@ config ARM64 select IRQ_OFFLOAD_NESTED if IRQ_OFFLOAD select BARRIER_OPERATIONS_ARCH select ARCH_HAS_DIRECTED_IPIS + select ARCH_HAS_DEMAND_PAGING + select ARCH_HAS_DEMAND_MAPPING help ARM64 (AArch64) architecture diff --git a/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53.conf b/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53.conf new file mode 100644 index 00000000000..9b04e2c6ac2 --- /dev/null +++ b/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53.conf @@ -0,0 +1,6 @@ +# Copyright (c) 2024 BayLibre SAS +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_BACKING_STORE_RAM=y +CONFIG_BACKING_STORE_RAM_PAGES=24 +CONFIG_SRAM_SIZE=400 diff --git a/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53_smp.conf b/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53_smp.conf new file mode 100644 index 00000000000..e9347db2f90 --- /dev/null +++ b/tests/kernel/mem_protect/demand_paging/boards/qemu_cortex_a53_smp.conf @@ -0,0 +1,7 @@ +# Copyright (c) 2024 BayLibre SAS +# SPDX-License-Identifier: Apache-2.0 + +CONFIG_BACKING_STORE_RAM=y +CONFIG_BACKING_STORE_RAM_PAGES=24 +CONFIG_SRAM_SIZE=450 +CONFIG_DEMAND_PAGING_ALLOW_IRQ=y diff --git a/tests/kernel/mem_protect/demand_paging/prj.conf b/tests/kernel/mem_protect/demand_paging/prj.conf index bbdf6393496..900e63aae40 100644 --- a/tests/kernel/mem_protect/demand_paging/prj.conf +++ b/tests/kernel/mem_protect/demand_paging/prj.conf @@ -1,4 +1,5 @@ CONFIG_ZTEST=y +CONFIG_DEMAND_PAGING=y CONFIG_DEMAND_PAGING_STATS=y CONFIG_DEMAND_PAGING_THREAD_STATS=y CONFIG_DEMAND_PAGING_TIMING_HISTOGRAM=y diff --git a/tests/kernel/mem_protect/demand_paging/testcase.yaml b/tests/kernel/mem_protect/demand_paging/testcase.yaml index 8be4c74f1dd..f42fed2c263 100644 --- a/tests/kernel/mem_protect/demand_paging/testcase.yaml +++ b/tests/kernel/mem_protect/demand_paging/testcase.yaml @@ -6,7 +6,10 @@ tests: - kernel - mmu - demand_paging - platform_allow: qemu_x86_tiny + platform_allow: + - qemu_cortex_a53 + - qemu_cortex_a53/qemu_cortex_a53/smp + - qemu_x86_tiny extra_configs: - CONFIG_COMMON_LIBC_MALLOC_ARENA_SIZE=0 kernel.demand_paging.timing_funcs: