1/*
2 * Copyright (c) 2023 Andes Technology Corporation
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7/*
8 * Workaround for RAM_BASE is zero in XIP system, kernel object
9 * address maybe zero(NULL) and break some test case assertions.
10 * ex: tests/kernel/queue, k_queue_get() return k_queue address
11 * 0x0, but treat as NULL fail.
12 */
13SECTION_DATA_PROLOGUE(ram_start_nonzero,(NOLOAD),)
14{
15	. = ABSOLUTE(.) ? . : . + 0x8;
16} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)
17