Skip to content
Commit 156c7cd2 authored by Tom Burdick's avatar Tom Burdick Committed by Stephanos Ioannidis
Browse files

intel_adsp: bbzero/bmemcpy with picolibc fix



When building with picolibc and gcc, the loops to do zeroing/copying
get replaced by gcc with calls to memset/memcpy. This fails this early in
the boot process and results in an illegal instruction exception.

Marking the variables being manipulated in the calls as volatile prevents
the compiler from optimizing the loops (replacing them with memset/memcpy).

Signed-off-by: default avatarTom Burdick <thomas.burdick@intel.com>
parent ed51e48b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment