From 6029e115e4cc8da106ff817817175ea0fc0320a8 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Thu, 7 Apr 2011 18:36:27 +0000 Subject: Make $syscall_return work for real. ok jsing@ --- sys/arch/hppa64/hppa64/locore.S | 12 ++++++------ 1 file 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 -- cgit v1.2.3