Skip to content
Snippets Groups Projects
Commit 2215f298 authored by Gunar Schorcht's avatar Gunar Schorcht
Browse files

cpu/esp32: add memset that cannot be optimized out

Adds a memset function `system_secure_memset` which cannot be optimized out by the compiler. It uses the libsodium approach of weak symbols. Function system_secure_memset calls the standard memset. Calling an empty function declared with weak attribute after the memset call, prevents the compiler to optimize it out. The overhead is only one function call.
parent 519b9ebc
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment