diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-04-07 18:36:27 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2011-04-07 18:36:27 +0000 |
commit | 6029e115e4cc8da106ff817817175ea0fc0320a8 (patch) | |
tree | 9a0aae933afac32f3355f03466569fce4fa31d5b /sys/arch/hppa64 | |
parent | bc475a8ede392bd4a149f57bd7837dac9b7a15b2 (diff) |
Make $syscall_return work for real.
ok jsing@
Diffstat (limited to 'sys/arch/hppa64')
-rw-r--r-- | sys/arch/hppa64/hppa64/locore.S | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/hppa64/hppa64/locore.S b/sys/arch/hppa64/hppa64/locore.S index 9ab89bc3f95..a3c3da2f210 100644 --- a/sys/arch/hppa64/hppa64/locore.S +++ b/sys/arch/hppa64/hppa64/locore.S @@ -1,4 +1,4 @@ -/* $OpenBSD: locore.S,v 1.17 2011/04/06 14:45:23 jsing Exp $ */ +/* $OpenBSD: locore.S,v 1.18 2011/04/07 18:36:26 kettenis Exp $ */ /* * Copyright (c) 2005 Michael Shalayeff @@ -459,7 +459,7 @@ $syscall_return std %arg2, 12*8(%r1) std %arg3, 13*8(%r1) - ldd TF_SP(%arg1), %arg2 /* sp */ + ldd TF_SP(%arg0), %arg2 /* sp */ std %arg2, 14*8(%r1) /* @@ -550,10 +550,10 @@ $syscall_return ldd 14*8(%arg0), %sp /* sp */ /* Restore temporary registers. */ - ldd 0*8(%arg1), %arg3 - ldd 1*8(%arg1), %arg2 - ldd 2*8(%arg1), %arg1 - ldd 3*8(%arg1), %arg0 + ldd 0*8(%arg0), %arg3 + ldd 1*8(%arg0), %arg2 + ldd 2*8(%arg0), %arg1 + ldd 3*8(%arg0), %arg0 rfi nop |