[riot-notifications] [RIOT-OS/RIOT] cpu/esp*: Xtensa vendor code moved to esp_common (#10883)

Gunar Schorcht notifications at github.com
Fri Feb 1 17:44:09 CET 2019

gschorcht commented on this pull request.

> @@ -183,7 +183,7 @@ char* thread_stack_init(thread_task_func_t task_func, void *arg, void *stack_sta
     uint32_t *p;
-    p = (uint32_t *)(((uint32_t) top_of_stack+1 - XT_CP_SIZE));
+    p = (uint32_t *)(((uint32_t)(top_of_stack + 1) - XT_CP_SIZE) & ~0xf);

Yes, it was a small difference to the original vendor code which had obviously no affect til now. The address has to be aligned to a multiple of 16. So it is better to have it here.

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190201/c38f48e2/attachment.html>

More information about the notifications mailing list