diff options
| author | Keith Packard <keithp@keithp.com> | 2016-04-19 23:19:59 -0400 | 
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2016-04-19 23:21:30 -0400 | 
| commit | 4db6074bb15c66bd23c513e1e41b408e5408cff8 (patch) | |
| tree | 07b0db14ad1d1cc6ea9c3617bc05fcb83e7dcd82 /src | |
| parent | 09acb6821ab490d69f679a195e70acb4a71ba342 (diff) | |
altos: avoid mixed declarations and code in ao_task.c
sdcc can't handle this.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
| -rw-r--r-- | src/kernel/ao_task.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/kernel/ao_task.c b/src/kernel/ao_task.c index 104d1074..e430edc6 100644 --- a/src/kernel/ao_task.c +++ b/src/kernel/ao_task.c @@ -442,10 +442,12 @@ ao_wakeup(__xdata void *wchan) __reentrant  	}  	ao_arch_irqrestore(flags);  #else +	{  	uint8_t	i;  	for (i = 0; i < ao_num_tasks; i++)  		if (ao_tasks[i]->wchan == wchan)  			ao_tasks[i]->wchan = NULL; +	}  #endif  	ao_check_stack();  } | 
