summaryrefslogtreecommitdiff
path: root/uart.c
diff options
context:
space:
mode:
authorRobert Morris <[email protected]>2019-06-03 15:23:12 -0400
committerRobert Morris <[email protected]>2019-06-03 15:23:12 -0400
commit6eae1be7550ecdc85269ce57c4a2f2dd0e9297b9 (patch)
tree9a168c1fed57523f1683799ce5fb555629a29942 /uart.c
parente630e0743b8c1a0f9ebca702811bd59065c9f457 (diff)
downloadxv6-labs-6eae1be7550ecdc85269ce57c4a2f2dd0e9297b9.tar.gz
xv6-labs-6eae1be7550ecdc85269ce57c4a2f2dd0e9297b9.tar.bz2
xv6-labs-6eae1be7550ecdc85269ce57c4a2f2dd0e9297b9.zip
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);
}