Commit 202a8ae5 authored by Maureen Helm's avatar Maureen Helm Committed by Fabio Baltieri
Browse files

arch: x86: Enable devicetree linker memory regions



A devicetree compatible "zephyr,memory-region" was introduced in commit
18ffcdcf to generate linker script
memory regions from devicetree. It was enabled on arm and riscv
architectures only; extend that support to x86.

Signed-off-by: default avatarMaureen Helm <maureen.helm@intel.com>
parent d0bfc254
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
#define ARCH_X86_MEMORY_LD

#include <zephyr/devicetree.h>
#include <zephyr/linker/devicetree_regions.h>
#include <zephyr/sys/mem_manage.h>

/* Bounds of physical RAM from DTS */
@@ -88,6 +89,7 @@ MEMORY
     * physical ROM locations
     */
    RAM (wx)        : ORIGIN = KERNEL_BASE_ADDR, LENGTH = KERNEL_RAM_SIZE
    LINKER_DT_REGIONS()

#ifdef CONFIG_X86_64
    /* Special low-memory area for bootstrapping other CPUs from real mode */