summaryrefslogtreecommitdiff
path: root/src/uart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/uart.c')
-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();