Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intel_adsp: bbzero/bmemcpy with picolibc fix #54314

Merged
merged 1 commit into from
Feb 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions soc/xtensa/intel_adsp/common/include/soc.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ static ALWAYS_INLINE void z_idelay(int n)
/* memcopy used by boot loader */
static ALWAYS_INLINE void bmemcpy(void *dest, void *src, size_t bytes)
{
uint32_t *d = (uint32_t *)dest;
uint32_t *s = (uint32_t *)src;
volatile uint32_t *d = (uint32_t *)dest;
volatile uint32_t *s = (uint32_t *)src;

z_xtensa_cache_inv(src, bytes);
for (size_t i = 0; i < (bytes >> 2); i++)
Expand All @@ -82,7 +82,7 @@ static ALWAYS_INLINE void bmemcpy(void *dest, void *src, size_t bytes)
/* bzero used by bootloader */
static ALWAYS_INLINE void bbzero(void *dest, size_t bytes)
{
uint32_t *d = (uint32_t *)dest;
volatile uint32_t *d = (uint32_t *)dest;

for (size_t i = 0; i < (bytes >> 2); i++)
d[i] = 0;
teburd marked this conversation as resolved.
Show resolved Hide resolved
Expand Down