diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-01-14 10:40:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-01-14 11:32:27 -0500 |
commit | ed715ec43770e197f639c31736e1ea9ed6202996 (patch) | |
tree | efbbbb14deb75fff47daaed178fce8ff06804ca8 /src/avr/serial.c | |
parent | 9a44a20a9d25f7e5d38ff943fbbd51d0f305ce3f (diff) | |
download | kutter-ed715ec43770e197f639c31736e1ea9ed6202996.tar.gz kutter-ed715ec43770e197f639c31736e1ea9ed6202996.tar.xz kutter-ed715ec43770e197f639c31736e1ea9ed6202996.zip |
command: No need to disable irqs in sendf reentrant check
As long as the code is careful when writing the in_sendf variable it
should be safe to update it without having to disable irqs.
Also, make sure in_sendf is cleared on shutdown.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/avr/serial.c')
-rw-r--r-- | src/avr/serial.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/avr/serial.c b/src/avr/serial.c index 6bd88598..8c0da553 100644 --- a/src/avr/serial.c +++ b/src/avr/serial.c @@ -141,6 +141,7 @@ console_get_output(uint8_t len) void console_push_output(uint8_t len) { + barrier(); writeb(&transmit_max, readb(&transmit_max) + len); enable_tx_irq(); } |