In setregs(), pass PS_STRINGS in r9.

This commit is contained in:
thorpej 2002-02-03 22:28:09 +00:00
parent 2f289b0f4d
commit 74cd9f1058
1 changed files with 2 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sh3_machdep.c,v 1.20 2002/02/01 17:52:56 uch Exp $ */
/* $NetBSD: sh3_machdep.c,v 1.21 2002/02/03 22:28:09 thorpej Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@ -420,7 +420,7 @@ setregs(p, pack, stack)
tf->tf_r6 = stack+4*tf->tf_r4 + 8; /* envp */
tf->tf_r7 = 0;
tf->tf_r8 = 0;
tf->tf_r9 = 0;
tf->tf_r9 = (int)PS_STRINGS;
tf->tf_r10 = 0;
tf->tf_r11 = 0;
tf->tf_r12 = 0;
@ -429,8 +429,4 @@ setregs(p, pack, stack)
tf->tf_spc = pack->ep_entry;
tf->tf_ssr = PSL_USERSET;
tf->tf_r15 = stack;
#ifdef TODO
tf->tf_r9 = (int)PS_STRINGS;
#endif
}