From 0e131b226336808c135795f5b9d7defc5a58b2ae Mon Sep 17 00:00:00 2001 From: Robert Morris Date: Tue, 4 Jun 2019 10:43:45 -0400 Subject: fix a problem with end. make uartputc() wait until h/w is ready. --- trap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trap.c') diff --git a/trap.c b/trap.c index 98ab143..39ff61d 100644 --- a/trap.c +++ b/trap.c @@ -108,7 +108,7 @@ usertrapret(void) // interrupts and exceptions from kernel code go here, // on whatever the current kernel stack is. // must be 4-byte aligned to fit in stvec. -void __attribute__ ((aligned (4))) +void kerneltrap() { uint64 sstatus = r_sstatus(); -- cgit v1.2.3