Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sh3/sh3 In setregs(), pass PS_STRINGS in r9.



details:   https://anonhg.NetBSD.org/src/rev/84e5167e77bd
branches:  trunk
changeset: 521703:84e5167e77bd
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Sun Feb 03 22:28:09 2002 +0000

description:
In setregs(), pass PS_STRINGS in r9.

diffstat:

 sys/arch/sh3/sh3/sh3_machdep.c |  8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)

diffs (27 lines):

diff -r 2020d737ac65 -r 84e5167e77bd sys/arch/sh3/sh3/sh3_machdep.c
--- a/sys/arch/sh3/sh3/sh3_machdep.c    Sun Feb 03 22:22:45 2002 +0000
+++ b/sys/arch/sh3/sh3/sh3_machdep.c    Sun Feb 03 22:28:09 2002 +0000
@@ -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 @@
        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 @@
        tf->tf_spc = pack->ep_entry;
        tf->tf_ssr = PSL_USERSET;
        tf->tf_r15 = stack;
-#ifdef TODO
-       tf->tf_r9 = (int)PS_STRINGS;
-#endif
 }
-



Home | Main Index | Thread Index | Old Index