]> begriffs open source - cmsis/commit
Fix the endless loop issue with GCC O0.
authorMarkus Klein <46537402+Masmiseim36@users.noreply.github.com>
Wed, 22 Jun 2022 14:00:16 +0000 (16:00 +0200)
committerGitHub <noreply@github.com>
Wed, 22 Jun 2022 14:00:16 +0000 (16:00 +0200)
commitbe30d9c2b48f40f14f02f9896e7fbcdce8699803
tree3c2c8becec56168c0f69f81f217cd33d320393a1
parent70ec577d0d43aed8a82bc1a737878df79fba8b2b
Fix the endless loop issue with GCC O0.

More details, see https://github.com/ARM-software/CMSIS_5/issues/620
The issue only happens when local variables are in stack (GCC O0). If local variables are saved
in general purpose register, then the function is OK.
When local variables are in stack, after disabling the cache, flush the local variables cache
line for data consistency.
CMSIS/Core/Include/cachel1_armv7.h