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>
This commit is contained in:
Kevin O'Connor 2017-01-14 10:40:46 -05:00
parent 9a44a20a9d
commit ed715ec437
3 changed files with 16 additions and 14 deletions

View file

@ -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();
}