From dc3c7fb2bab148cf7305468dcca0b61200bf263c Mon Sep 17 00:00:00 2001 From: pk Date: Thu, 14 Mar 1996 00:11:29 +0000 Subject: [PATCH] Actually enter executables where promised... --- sys/arch/sparc/sparc/machdep.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index caa1c614e83d..5f59cb8882ad 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $NetBSD: machdep.c,v 1.57 1996/02/13 23:59:02 pk Exp $ */ +/* $NetBSD: machdep.c,v 1.58 1996/03/14 00:11:29 pk Exp $ */ /* * Copyright (c) 1992, 1993 @@ -385,8 +385,7 @@ setregs(p, pack, stack, retval) } bzero((caddr_t)tf, sizeof *tf); tf->tf_psr = psr; - tf->tf_pc = pack->ep_entry & ~3; - tf->tf_npc = tf->tf_pc + 4; + tf->tf_npc = pack->ep_entry & ~3; tf->tf_global[1] = (int)PS_STRINGS; tf->tf_global[2] = tf->tf_global[7] = tf->tf_npc; stack -= sizeof(struct rwindow);