aboutsummaryrefslogtreecommitdiff
path: root/pk/frontend.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-05-16 14:34:11 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2011-05-16 14:34:11 -0700
commitbbd999a00eb4859576db2422ceefc0ebf6d721e5 (patch)
treebb7131ba32e89bd2f2944f740f134ce38c9cb7d2 /pk/frontend.c
parent5fa814486ad9b7e14f76f8c4cdc1f058bd0db706 (diff)
downloadpk-bbd999a00eb4859576db2422ceefc0ebf6d721e5.zip
pk-bbd999a00eb4859576db2422ceefc0ebf6d721e5.tar.gz
pk-bbd999a00eb4859576db2422ceefc0ebf6d721e5.tar.bz2
[sim,pk] cleanups & initial virtual memory support
Diffstat (limited to 'pk/frontend.c')
-rw-r--r--pk/frontend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/frontend.c b/pk/frontend.c
index 1cb99db..90609d8 100644
--- a/pk/frontend.c
+++ b/pk/frontend.c
@@ -19,7 +19,7 @@ sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3)
asm volatile ("cflush; fence");
- mtpcr(magic_mem,PCR_TOHOST);
+ mtpcr(PCR_TOHOST, magic_mem);
while(mfpcr(PCR_FROMHOST) == 0);
sysret_t ret = {magic_mem[0],magic_mem[1]};