aboutsummaryrefslogtreecommitdiff
path: root/pk/frontend.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-06 22:48:37 -0700
committerAndrew Waterman <waterman@s141.Millennium.Berkeley.EDU>2010-09-06 22:48:37 -0700
commit2351867c654572283c3c85b84e8f57e0021f9295 (patch)
treeed7132345aea410b12a8304eb3961eb968be189f /pk/frontend.c
parentfb6dba8fb1ac05bb1fea53cbdaa5d74c0fdb35b3 (diff)
downloadpk-2351867c654572283c3c85b84e8f57e0021f9295.zip
pk-2351867c654572283c3c85b84e8f57e0021f9295.tar.gz
pk-2351867c654572283c3c85b84e8f57e0021f9295.tar.bz2
[sim, xcc] added PCRs to replace k0 and k1
Diffstat (limited to 'pk/frontend.c')
-rw-r--r--pk/frontend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pk/frontend.c b/pk/frontend.c
index f02ed0d..c28dca4 100644
--- a/pk/frontend.c
+++ b/pk/frontend.c
@@ -17,8 +17,8 @@ sysret_t frontend_syscall(long n, long a0, long a1, long a2, long a3)
magic_mem[3] = a2;
magic_mem[4] = a3;
- mtpcr(magic_mem,16);
- while(mfpcr(17) == 0);
+ mtpcr(magic_mem,PCR_TOHOST);
+ while(mfpcr(PCR_FROMHOST) == 0);
sysret_t ret = {magic_mem[0],magic_mem[1]};