Skip to content

Commit

Permalink
soc/riscv/riscv-ite/it8xxx2: Support DEVNULL_REGION
Browse files Browse the repository at this point in the history
it8xxx2 uses a custom linker script, which was not updated on
dfb3674. This patch naively updates it
to support DEVNULL_REGION.

Signed-off-by: Ederson de Souza <[email protected]>
  • Loading branch information
edersondisouza authored and nashif committed Nov 1, 2023
1 parent f9d71a2 commit 928e22c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions soc/riscv/riscv-ite/it8xxx2/linker.ld
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,19 @@
#define SHA256_BLOCK_SIZE 0x200
#endif

#include <zephyr/linker/linker-devnull.h>

MEMORY
{
#ifdef CONFIG_XIP
ROM (rx) : ORIGIN = ROM_BASE, LENGTH = ROM_SIZE
#endif
RAM (rwx) : ORIGIN = RAM_BASE, LENGTH = RAM_SIZE

#if defined(CONFIG_LINKER_DEVNULL_MEMORY)
DEVNULL_ROM (rx) : ORIGIN = DEVNULL_ADDR, LENGTH = DEVNULL_SIZE
#endif

LINKER_DT_REGIONS()

/* Used by and documented in include/linker/intlist.ld */
Expand Down

0 comments on commit 928e22c

Please sign in to comment.