diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2012-08-01 22:53:55 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2012-08-01 22:53:55 -0700 |
commit | 2260383b5245cf73fef4434d9f69a4c98311b7cd (patch) | |
tree | 3bcb8b1f759389c64886c0d889bfbc6f9a3ae2d3 /pk/frontend.c | |
parent | 15f31b54049fda09b60dc8e0b74dd5f65c7c8318 (diff) | |
download | pk-2260383b5245cf73fef4434d9f69a4c98311b7cd.zip pk-2260383b5245cf73fef4434d9f69a4c98311b7cd.tar.gz pk-2260383b5245cf73fef4434d9f69a4c98311b7cd.tar.bz2 |
new tohost/fromhost semantics
Diffstat (limited to 'pk/frontend.c')
-rw-r--r-- | pk/frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pk/frontend.c b/pk/frontend.c index 90609d8..4e4c138 100644 --- a/pk/frontend.c +++ b/pk/frontend.c @@ -20,7 +20,7 @@ sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3) asm volatile ("cflush; fence"); mtpcr(PCR_TOHOST, magic_mem); - while(mfpcr(PCR_FROMHOST) == 0); + while (mtpcr(PCR_FROMHOST, 0) == 0); sysret_t ret = {magic_mem[0],magic_mem[1]}; |