diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2013-11-25 02:02:42 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2013-11-25 02:03:48 -0800 |
commit | f62e692e72d1626977be0e92f766bdeed305d903 (patch) | |
tree | 0823636782afa9a01505cb12a1f1c5c2909fcbf6 /pk/frontend.c | |
parent | a8889d65d249a71f009433766a1e9b1405945708 (diff) | |
download | pk-f62e692e72d1626977be0e92f766bdeed305d903.zip pk-f62e692e72d1626977be0e92f766bdeed305d903.tar.gz pk-f62e692e72d1626977be0e92f766bdeed305d903.tar.bz2 |
Update to new privileged ISA
Diffstat (limited to 'pk/frontend.c')
-rw-r--r-- | pk/frontend.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pk/frontend.c b/pk/frontend.c index 9614142..3452b23 100644 --- a/pk/frontend.c +++ b/pk/frontend.c @@ -3,7 +3,6 @@ #include "pk.h" #include "atomic.h" #include "frontend.h" -#include "pcr.h" #include <stdint.h> sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3) @@ -21,8 +20,8 @@ sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3) mb(); - mtpcr(PCR_TOHOST, magic_mem); - while (mtpcr(PCR_FROMHOST, 0) == 0); + write_csr(tohost, magic_mem); + while (swap_csr(fromhost, 0) == 0); mb(); |