mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-25 06:23:53 +01:00
Merge pull request #110 from mehlis/master
fix changed prototype parameter 1 of thread_stack_init from void* to void(*)(void)
This commit is contained in:
commit
93e470eb80
@ -29,7 +29,7 @@ void board_init(void);
|
||||
*
|
||||
* @return stack pointer
|
||||
*/
|
||||
char *thread_stack_init(void *task_func, void *stack_start, int stack_size);
|
||||
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size);
|
||||
|
||||
/**
|
||||
* @brief Removes thread from scheduler and set status to STATUS_STOPPED
|
||||
|
||||
@ -38,7 +38,7 @@ void thread_yield(void)
|
||||
* Processor specific routine - here for ARM7
|
||||
* sizeof(void*) = sizeof(int)
|
||||
*--------------------------------------------------------------------------*/
|
||||
char *thread_stack_init(void *task_func, void *stack_start, int stack_size)
|
||||
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size)
|
||||
{
|
||||
unsigned int *stk;
|
||||
int i;
|
||||
|
||||
@ -46,7 +46,7 @@ void cpu_switch_context_exit(void)
|
||||
//----------------------------------------------------------------------------
|
||||
// Processor specific routine - here for MSP
|
||||
//----------------------------------------------------------------------------
|
||||
char *thread_stack_init(void *task_func, void *stack_start, int stack_size)
|
||||
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stack_size)
|
||||
{
|
||||
unsigned short *stk;
|
||||
stk = (unsigned short *)(stack_start + stack_size);
|
||||
|
||||
@ -45,7 +45,7 @@ void thread_print_stack(void)
|
||||
return;
|
||||
}
|
||||
|
||||
char *thread_stack_init(void *task_func, void *stack_start, int stacksize)
|
||||
char *thread_stack_init(void (*task_func)(void), void *stack_start, int stacksize)
|
||||
{
|
||||
unsigned int *stk;
|
||||
ucontext_t *p;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user