From dceb4ffaf492f7911f0906cdce03b06071dfd6af Mon Sep 17 00:00:00 2001 From: Andrew Boie Date: Thu, 19 Oct 2017 10:02:06 -0700 Subject: [PATCH] x86: add qemu_x86_nommu board target This will run all tests with the memory management unit disabled. This means no hardware-based stack protection or user threads. qemu_x86_iamcu now runs with all MMU features enabled. Signed-off-by: Andrew Boie --- boards/x86/qemu_x86/qemu_x86_iamcu_defconfig | 2 ++ boards/x86/qemu_x86/qemu_x86_nommu.yaml | 9 +++++++++ boards/x86/qemu_x86/qemu_x86_nommu_defconfig | 18 ++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 boards/x86/qemu_x86/qemu_x86_nommu.yaml create mode 100644 boards/x86/qemu_x86/qemu_x86_nommu_defconfig diff --git a/boards/x86/qemu_x86/qemu_x86_iamcu_defconfig b/boards/x86/qemu_x86/qemu_x86_iamcu_defconfig index 509e60c9e69..de1d86fbd94 100644 --- a/boards/x86/qemu_x86/qemu_x86_iamcu_defconfig +++ b/boards/x86/qemu_x86/qemu_x86_iamcu_defconfig @@ -20,3 +20,5 @@ CONFIG_X86_IAMCU=y CONFIG_XIP=y CONFIG_X86_MMU=y CONFIG_HW_STACK_PROTECTION=y +CONFIG_USERSPACE=y +CONFIG_APPLICATION_MEMORY=y diff --git a/boards/x86/qemu_x86/qemu_x86_nommu.yaml b/boards/x86/qemu_x86/qemu_x86_nommu.yaml new file mode 100644 index 00000000000..61f37306bf2 --- /dev/null +++ b/boards/x86/qemu_x86/qemu_x86_nommu.yaml @@ -0,0 +1,9 @@ +identifier: qemu_x86_nommu +name: QEMU Emulation for X86 (MMU disabled) +type: qemu +arch: x86 +toolchain: + - zephyr +supported: + - pci + - netif:slip diff --git a/boards/x86/qemu_x86/qemu_x86_nommu_defconfig b/boards/x86/qemu_x86/qemu_x86_nommu_defconfig new file mode 100644 index 00000000000..234acae218c --- /dev/null +++ b/boards/x86/qemu_x86/qemu_x86_nommu_defconfig @@ -0,0 +1,18 @@ +CONFIG_X86=y +CONFIG_SOC_IA32=y +CONFIG_BOARD_QEMU_X86=y +CONFIG_CPU_MINUTEIA=y +CONFIG_IA32_LEGACY_IO_PORTS=y +CONFIG_HPET_TIMER=y +CONFIG_HPET_TIMER_IRQ=2 +CONFIG_HPET_TIMER_LEGACY_EMULATION=y +CONFIG_HPET_TIMER_RISING_EDGE=y +CONFIG_PIC_DISABLE=y +CONFIG_LOAPIC=y +CONFIG_CONSOLE=y +CONFIG_SERIAL=y +CONFIG_UART_NS16550=y +CONFIG_UART_CONSOLE=y +CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=25000000 +CONFIG_TEST_RANDOM_GENERATOR=y +CONFIG_XIP=y