01e9646638
This commit should fix the concern about uninitialized memory of main thread that was raised in https://gerrit.zephyrproject.org/r/#/c/12920/ The issue is more general, if it happens that the content of the CPENABLE flag of any thread is set then any other thread using the CP may cause a memory corruption. I'd prefer to avoid the issue by initializing the CP descriptor to 0. The descriptor itself is few words. We set them to 0 up to CP_ASA, which is set to a real value. As the dummy thread instantiated at the kernel startup does not use CP, there is no CP area in its thread memory buffer. However it is mandatory that it have the CP descriptor and that cpEnable in that descripot is set to null. This is ensured by adding XT_CP_DESCR_SIZE to _K_THREAD_NO_FLOAT_SIZEOF. Change-Id: I6a36b5b363600ea1e6d98ab679981182b2b5a236 Signed-off-by: Mazen NEIFER <mazen@nestwave.com> |
||
---|---|---|
.. | ||
Makefile | ||
offsets.c |