diff options
Diffstat (limited to 'src/kernel')
| -rw-r--r-- | src/kernel/ao_stdio.c | 4 | ||||
| -rw-r--r-- | src/kernel/ao_task.h | 3 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/ao_stdio.c b/src/kernel/ao_stdio.c index f0ee0a14..dc09b5c7 100644 --- a/src/kernel/ao_stdio.c +++ b/src/kernel/ao_stdio.c @@ -84,7 +84,7 @@ __pdata int8_t ao_cur_stdio;  #endif  void -putchar(char c) +ao_putchar(char c)  {  #if LOW_LEVEL_DEBUG  	if (!ao_cur_task) { @@ -110,7 +110,7 @@ flush(void)  __xdata uint8_t ao_stdin_ready;  char -getchar(void) __reentrant +ao_getchar(void) __reentrant  {  	int c;  	int8_t stdio; diff --git a/src/kernel/ao_task.h b/src/kernel/ao_task.h index 30b018ff..7549b598 100644 --- a/src/kernel/ao_task.h +++ b/src/kernel/ao_task.h @@ -44,6 +44,9 @@ struct ao_task {  	ao_arch_task_members		/* any architecture-specific fields */  	uint8_t task_id;		/* unique id */  	__code char *name;		/* task name */ +#ifdef NEWLIB +	int __errno;			/* storage for errno in newlib libc */ +#endif  #if HAS_TASK_QUEUE  	struct ao_list	queue;  	struct ao_list	alarm_queue;  | 
