mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-26 15:03:53 +01:00
stack alignment workaround
Should be fixed in thread.c instead, this is just a temporary workaround to enable msp-430 threads in the mean time.
This commit is contained in:
parent
2a8411b6a3
commit
76cfdc33b1
@ -53,6 +53,10 @@ __attribute__((section (".fini9"))) void __main_epilogue(void) { __asm__("ret");
|
||||
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size)
|
||||
{
|
||||
unsigned short *stk;
|
||||
|
||||
/* XXX: work around for misalignment, remove once solved properly in thread.c */
|
||||
stack_size--;
|
||||
|
||||
stk = (unsigned short *)(stack_start + stack_size);
|
||||
|
||||
*stk = (unsigned short) sched_task_exit;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user