Module Name:    src
Committed By:   martin
Date:           Fri Apr 18 18:32:00 UTC 2014

Modified Files:
        src/sys/arch/hppa/hppa: machdep.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/hppa/hppa/machdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/hppa/hppa/machdep.c
diff -u src/sys/arch/hppa/hppa/machdep.c:1.3 src/sys/arch/hppa/hppa/machdep.c:1.4
--- src/sys/arch/hppa/hppa/machdep.c:1.3	Mon Mar 24 20:06:32 2014
+++ src/sys/arch/hppa/hppa/machdep.c	Fri Apr 18 18:32:00 2014
@@ -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 @@ setregs(struct lwp *l, struct exec_packa
 
 	if (pack->ep_osversion < 699003600) {
 		p->p_md.md_flags |= MDP_OLDSPACE;
+	} else {
+		p->p_md.md_flags = 0;
 	}
 
 	hppa_setvmspace(l);

Reply via email to