aboutsummaryrefslogtreecommitdiff
path: root/pk
diff options
context:
space:
mode:
authorAndrew Waterman <andrew@sifive.com>2017-02-15 18:59:21 -0800
committerAndrew Waterman <andrew@sifive.com>2017-02-15 18:59:21 -0800
commit611290ccde8d76c1973a37d82a5d4b3e4b7b90c4 (patch)
treed8b19a464a043d362663d8207daeae1f31d226d1 /pk
parent15a111444d6819021328e990eb5308155a9def6a (diff)
downloadpk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.zip
pk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.tar.gz
pk-611290ccde8d76c1973a37d82a5d4b3e4b7b90c4.tar.bz2
Cleanly separate HTIF code; don't poll keyboard on timer interrupt
Diffstat (limited to 'pk')
-rw-r--r--pk/frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/frontend.c b/pk/frontend.c
index 13fdfcf..716f050 100644
--- a/pk/frontend.c
+++ b/pk/frontend.c
@@ -4,8 +4,8 @@
#include "atomic.h"
#include "frontend.h"
#include "sbi.h"
-#include "mcall.h"
#include "syscall.h"
+#include "htif.h"
#include <stdint.h>
long frontend_syscall(long n, uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3, uint64_t a4, uint64_t a5, uint64_t a6)
@@ -24,7 +24,7 @@ long frontend_syscall(long n, uint64_t a0, uint64_t a1, uint64_t a2, uint64_t a3
magic_mem[6] = a5;
magic_mem[7] = a6;
- do_mcall(MCALL_HTIF_SYSCALL, magic_mem);
+ htif_syscall((uintptr_t)magic_mem);
long ret = magic_mem[0];