Source-Changes-HG archive

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

[src/netbsd-1-6]: src/sys/arch/sparc64/sparc64 Pull up revision 1.121 (reques...



details:   https://anonhg.NetBSD.org/src/rev/7c1f3ae9e0ef
branches:  netbsd-1-6
changeset: 527741:7c1f3ae9e0ef
user:      lukem <lukem%NetBSD.org@localhost>
date:      Wed Jun 05 04:09:19 2002 +0000

description:
Pull up revision 1.121 (requested by eeh in ticket #156):
Clear the P_32 flag when exec-ing native binaries.

diffstat:

 sys/arch/sparc64/sparc64/machdep.c |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 486c0d82d8b7 -r 7c1f3ae9e0ef sys/arch/sparc64/sparc64/machdep.c
--- a/sys/arch/sparc64/sparc64/machdep.c        Wed Jun 05 04:07:28 2002 +0000
+++ b/sys/arch/sparc64/sparc64/machdep.c        Wed Jun 05 04:09:19 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.119 2002/03/20 18:54:49 eeh Exp $ */
+/*     $NetBSD: machdep.c,v 1.119.6.1 2002/06/05 04:09:19 lukem Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -315,6 +315,9 @@
        Elf_Ehdr *eh = pack->ep_hdr;
 #endif
 
+       /* Clear the P_32 flag. */
+       p->p_flag &= ~P_32;
+
        /* Don't allow misaligned code by default */
        p->p_md.md_flags &= ~MDP_FIXALIGN;
 



Home | Main Index | Thread Index | Old Index