Skip to content
Commit 4cb194f3 authored by Nikolay Agishev's avatar Nikolay Agishev Committed by Anas Nashif
Browse files

ARC: MWDT: Force cleanup .device_states section

This PR fixes https://github.com/zephyrproject-rtos/zephyr/issues/64268



MWDT supposes .device_states section as BSS because .device_states
variables defined as uninitialized. This causes the section marked
as NOLOAD section and OpenOCD does not take it in account while
flashing it into board memory.
Finally .device_states variables becomes initialized with garbage
from RAM.

In this PR it's suggested to clean .device_states in early init stage.

Signed-off-by: default avatarNikolay Agishev <agishev@synopsys.com>
parent 6c7c5bd5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment