diff options
author | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-06 22:48:37 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@s141.Millennium.Berkeley.EDU> | 2010-09-06 22:48:37 -0700 |
commit | 2351867c654572283c3c85b84e8f57e0021f9295 (patch) | |
tree | ed7132345aea410b12a8304eb3961eb968be189f /pk/frontend.c | |
parent | fb6dba8fb1ac05bb1fea53cbdaa5d74c0fdb35b3 (diff) | |
download | pk-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.c | 4 |
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]}; |