blob: 760ce73f6b7aad0a775ddfe0b0bd6e5e7af47332 [file] [log] [blame]
/*
* Copyright (c) 2023 Andes Technology Corporation
*
* SPDX-License-Identifier: Apache-2.0
*/
/*
* Workaround for RAM_BASE is zero in XIP system, kernel object
* address maybe zero(NULL) and break some test case assertions.
* ex: tests/kernel/queue, k_queue_get() return k_queue address
* 0x0, but treat as NULL fail.
*/
SECTION_DATA_PROLOGUE(ram_start_nonzero,(NOLOAD),)
{
. = ABSOLUTE(.) ? . : . + 0x8;
} GROUP_DATA_LINK_IN(RAMABLE_REGION, RAMABLE_REGION)