Commit c1765ff6 authored by Hou Zhiqiang's avatar Hou Zhiqiang Committed by David Leach
Browse files

soc: imx9: a55: create region and section from the zephyr,memory-region



It has been added in the arm64 common linker script, so also update
the one of mimx9 SoCs.

Signed-off-by: default avatarHou Zhiqiang <Zhiqiang.Hou@nxp.com>
parent abf90d4a
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
/*
 * Copyright 2023 NXP
 * Copyright 2023-2024 NXP
 * Copyright (c) 2013-2014 Wind River Systems, Inc.
 *
 * SPDX-License-Identifier: Apache-2.0
@@ -14,6 +14,7 @@
#include <zephyr/linker/sections.h>
#include <zephyr/devicetree.h>

#include <zephyr/linker/devicetree_regions.h>
#include <zephyr/linker/linker-defs.h>
#include <zephyr/linker/linker-tool.h>

@@ -60,6 +61,7 @@ MEMORY
{
    FLASH     (rx) : ORIGIN = ROM_ADDR, LENGTH = ROM_SIZE
    RAM       (wx) : ORIGIN = RAM_ADDR, LENGTH = RAM_SIZE
    LINKER_DT_REGIONS()
    /* Used by and documented in include/linker/intlist.ld */
    IDT_LIST  (wx) : ORIGIN = 0xFFFFF7FF, LENGTH = 2K
}
@@ -340,6 +342,8 @@ SECTIONS

    /DISCARD/ : { *(.note.GNU-stack) }

    /* Sections generated from 'zephyr,memory-region' nodes */
    LINKER_DT_SECTIONS()

    /* Must be last in romable region */
    SECTION_PROLOGUE(.last_section,,)