Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hppa/hppa Explicitly clear p_md.md_flags for newer ...



details:   https://anonhg.NetBSD.org/src/rev/e93f2f3b964d
branches:  trunk
changeset: 328804:e93f2f3b964d
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Apr 18 18:32:00 2014 +0000

description:
Explicitly clear p_md.md_flags for newer binaries. Fixes PR port-hppa/48755.
OK: skrll

diffstat:

 sys/arch/hppa/hppa/machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 2d5e1ff32649 -r e93f2f3b964d sys/arch/hppa/hppa/machdep.c
--- a/sys/arch/hppa/hppa/machdep.c      Fri Apr 18 15:45:46 2014 +0000
+++ b/sys/arch/hppa/hppa/machdep.c      Fri Apr 18 18:32:00 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: machdep.c,v 1.3 2014/03/24 20:06:32 christos Exp $     */
+/*     $NetBSD: machdep.c,v 1.4 2014/04/18 18:32:00 martin Exp $       */
 
 /*-
  * Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@@ -58,7 +58,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.3 2014/03/24 20:06:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: machdep.c,v 1.4 2014/04/18 18:32:00 martin Exp $");
 
 #include "opt_cputype.h"
 #include "opt_ddb.h"
@@ -1906,6 +1906,8 @@
 
        if (pack->ep_osversion < 699003600) {
                p->p_md.md_flags |= MDP_OLDSPACE;
+       } else {
+               p->p_md.md_flags = 0;
        }
 
        hppa_setvmspace(l);



Home | Main Index | Thread Index | Old Index