[riot-notifications] [RIOT-OS/RIOT] cpu/msp430_common: set top of heap for sbrk (#10943)

Gunar Schorcht notifications at github.com
Tue Mar 12 17:06:44 CET 2019


gschorcht commented on this pull request.



> @@ -26,6 +26,8 @@
 
 extern void board_init(void);
 
+#define STACK_EXTRA 32

`STACK_EXTRA` is simply a margin to leave some space on the stack for the calls of `kernel_init` and further `cpu_switch_context_exit`. It  ensures that the stack pointer doesn't decrease to `__heap_end` before it is set to any thread stack in `kernel_init`.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10943#discussion_r264751863
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190312/eb965f6d/attachment.html>


More information about the notifications mailing list