summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2013-02-15 22:58:18 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2013-02-15 22:58:18 +0000
commit2479ccc62448831bc15e4ab5fde2d7d1067eff4b (patch)
tree04645b870d7f1d340b2c5df4f9550c5e7dcdf9c0 /sys
parent89010678e6c18afb34622a621fe9bc1db6d59ade (diff)
We deprecated returning to %g7 after a successful system call long ago.
These days we use it as a thread register and want to have it initialized to zero for future thread local storage (TLS) support.
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc64/sparc64/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/sparc64/machdep.c b/sys/arch/sparc64/sparc64/machdep.c
index 4874788a991..357cff33f96 100644
--- a/sys/arch/sparc64/sparc64/machdep.c
+++ b/sys/arch/sparc64/sparc64/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.145 2013/01/22 23:56:31 dlg Exp $ */
+/* $OpenBSD: machdep.c,v 1.146 2013/02/15 22:58:17 kettenis Exp $ */
/* $NetBSD: machdep.c,v 1.108 2001/07/24 19:30:14 eeh Exp $ */
/*-
@@ -332,7 +332,7 @@ setregs(p, pack, stack, retval)
tf->tf_tstate = tstate;
tf->tf_pc = pack->ep_entry & ~3;
tf->tf_npc = tf->tf_pc + 4;
- tf->tf_global[2] = tf->tf_global[7] = tf->tf_pc;
+ tf->tf_global[2] = tf->tf_pc;
stack -= sizeof(struct rwindow);
tf->tf_out[6] = stack - STACK_OFFSET;
#ifdef NOTDEF_DEBUG