diff options
| author | Keith Packard <keithp@keithp.com> | 2013-03-24 15:00:20 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2013-03-24 15:00:20 -0700 |
| commit | f3dc025a764ca6a2c44fb514ccaf22e6210f769d (patch) | |
| tree | 05c0be2a58f2bfc84d2916d90baaea0f1609d890 /src/core/ao.h | |
| parent | 0365df9ed5a638bfdefb29eec830e51301c13936 (diff) | |
altos: Do not release interrupts from any pollchar function
getchar relies on interrupts being blocked across the pollchar calls
and into the sleep call or it may go to sleep with data pending.
This prefixes all pollchar functions with _ to indicate that they are
to be called with interrupts blocked and eliminates all interrupt
manipulation calls from within the pollchar functions.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/core/ao.h')
| -rw-r--r-- | src/core/ao.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ao.h b/src/core/ao.h index ce0bf5d1..adda0b6f 100644 --- a/src/core/ao.h +++ b/src/core/ao.h @@ -607,7 +607,7 @@ ao_monitor_init(void) __reentrant; #define AO_READ_AGAIN (-1) struct ao_stdio { - int (*pollchar)(void); + int (*_pollchar)(void); /* Called with interrupts blocked */ void (*putchar)(char c) __reentrant; void (*flush)(void); uint8_t echo; |
