summaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
push/pop all registers when handling interrupt from kernel
Diffstat (limited to 'uart.c')
-rw-r--r--uart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/uart.c b/uart.c
index 807c46e..659c574 100644
--- a/uart.c
+++ b/uart.c
@@ -59,4 +59,6 @@ uartgetc(void)
void
uartintr(void)
{
+ int c = uartgetc();
+ printf("%x ", c & 0xff);
}