soc: intel_adsp/ace: zero out memory at ram init
There is an assumption in parse_module() during code/data copying that the memory has already been zero-ed, and hence no need to clear memory when a BSS segment is encountered. In CAVS ram initialization code, bbzero() is called. However, in ACE code, there is no such call. So add them. Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
parent
635506ec27
commit
195db14400
|
@ -32,6 +32,8 @@ __imr void hp_sram_init(uint32_t memory_size)
|
|||
z_idelay(DELAY_COUNT);
|
||||
}
|
||||
}
|
||||
|
||||
bbzero((void *)L2_SRAM_BASE, L2_SRAM_SIZE);
|
||||
}
|
||||
|
||||
__imr void lp_sram_init(void)
|
||||
|
@ -42,4 +44,6 @@ __imr void lp_sram_init(void)
|
|||
for (uint32_t idx = 0; idx < lpsram_ebb_quantity; ++idx) {
|
||||
*(l2usbpmptr + idx * 2) = 0;
|
||||
}
|
||||
|
||||
bbzero((void *)LP_SRAM_BASE, LP_SRAM_SIZE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue