Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix the sparc_v9 hack...



details:   https://anonhg.NetBSD.org/src/rev/e9bac5c03e05
branches:  trunk
changeset: 495393:e9bac5c03e05
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Thu Jul 27 13:45:59 2000 +0000

description:
Fix the sparc_v9 hack...

diffstat:

 sys/kern/kern_exec.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (25 lines):

diff -r 322ef37f90d7 -r e9bac5c03e05 sys/kern/kern_exec.c
--- a/sys/kern/kern_exec.c      Thu Jul 27 11:51:14 2000 +0000
+++ b/sys/kern/kern_exec.c      Thu Jul 27 13:45:59 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_exec.c,v 1.116 2000/07/26 15:42:09 mycroft Exp $  */
+/*     $NetBSD: kern_exec.c,v 1.117 2000/07/27 13:45:59 mycroft Exp $  */
 
 /*-
  * Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@@ -598,10 +598,14 @@
 
 #ifdef __sparc_v9__
        /* XXX Temporary hack for argc format conversion. */
-       argc = (argc << 32) | (argc & 0xffffffff);
+       argc <<= 32;
 #endif
        if (copyout(&argc, cpp++, sizeof(argc)))
                return NULL;
+#ifdef __sparc_v9__
+       /* XXX Temporary hack for argc format conversion. */
+       argc >>= 32;
+#endif
 
        dp = (char *) (cpp + argc + envc + 2 + pack->ep_emul->e_arglen);
        sp = argp;



Home | Main Index | Thread Index | Old Index