summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2018-02-17 19:58:24 +0100
committerRichard Braun <rbraun@sceen.net>2018-02-17 19:58:24 +0100
commit0b0ec8327bfd55c9bfd8e0180d14d27e556b56f0 (patch)
tree67f2dd5b8ea868c719bd876e4b248731a673d7ba
parenta2e363b9c3166d13b145018944209e7d0d8ba042 (diff)
uart: fix eflags type
-rw-r--r--src/uart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/uart.c b/src/uart.c
index 8697874..4023b67 100644
--- a/src/uart.c
+++ b/src/uart.c
@@ -158,7 +158,8 @@ uart_write(uint8_t byte)
int
uart_read(uint8_t *byte)
{
- int eflags, error;
+ uint32_t eflags;
+ int error;
thread_preempt_disable();
eflags = cpu_intr_save();