projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Revert "Fix lwip implementation of retransmission timers."
[bertos.git]
/
bertos
/
net
/
lwip
/
src
/
arch
/
sys_arch.c
diff --git
a/bertos/net/lwip/src/arch/sys_arch.c
b/bertos/net/lwip/src/arch/sys_arch.c
index e33f2364f54c4598947b0bc889e40e5787875bfd..0d1ade5ce6a5dd77114d7f03704f40dfd25d0985 100644
(file)
--- a/
bertos/net/lwip/src/arch/sys_arch.c
+++ b/
bertos/net/lwip/src/arch/sys_arch.c
@@
-348,7
+348,7
@@
static cpu_stack_t thread_stack[MAX_THREAD_CNT]
static int last_stack;
#endif
static int last_stack;
#endif
-sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
+sys_thread_t sys_thread_new(c
onst c
har *name, void (* thread)(void *arg),
void *arg, int stacksize, int prio)
{
ThreadNode *thread_node;
void *arg, int stacksize, int prio)
{
ThreadNode *thread_node;
@@
-369,7
+369,7
@@
sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
#if !CONFIG_KERN_HEAP
ASSERT(stacksize <= DEFAULT_THREAD_STACKSIZE);
#if !CONFIG_KERN_HEAP
ASSERT(stacksize <= DEFAULT_THREAD_STACKSIZE);
- PROC_ATOMIC(stackbase =
&
thread_stack[last_stack++]);
+ PROC_ATOMIC(stackbase = thread_stack[last_stack++]);
#else
stackbase = NULL;
#endif
#else
stackbase = NULL;
#endif
@@
-380,6
+380,9
@@
sys_thread_t sys_thread_new(char *name, void (* thread)(void *arg),
#if CONFIG_KERN_PRI
proc_setPri(thread_node->pid, prio);
#if CONFIG_KERN_PRI
proc_setPri(thread_node->pid, prio);
+ #else
+ /* Avoid warnings when priorities are disabled */
+ (void) prio;
#endif
return thread_node->pid;
#endif
return thread_node->pid;