push/pop all registers when handling interrupt from kernel

This commit is contained in:
Robert Morris 2019-06-03 15:23:12 -04:00
parent e630e0743b
commit 6eae1be755
7 changed files with 48 additions and 83 deletions

2
uart.c
View file

@ -59,4 +59,6 @@ uartgetc(void)
void
uartintr(void)
{
int c = uartgetc();
printf("%x ", c & 0xff);
}