Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Make sure to clear MDLWP_NOALIGNFLT on !aap...
details: https://anonhg.NetBSD.org/src/rev/36cbe64c1c0f
branches: trunk
changeset: 326852:36cbe64c1c0f
user: matt <matt%NetBSD.org@localhost>
date: Thu Feb 20 15:45:20 2014 +0000
description:
Make sure to clear MDLWP_NOALIGNFLT on !aapcs or !(armv6 && armv7)
diffstat:
sys/arch/arm/arm/cpu_exec.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (35 lines):
diff -r 8f56f3f097d4 -r 36cbe64c1c0f sys/arch/arm/arm/cpu_exec.c
--- a/sys/arch/arm/arm/cpu_exec.c Thu Feb 20 15:11:36 2014 +0000
+++ b/sys/arch/arm/arm/cpu_exec.c Thu Feb 20 15:45:20 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu_exec.c,v 1.8 2013/12/20 06:50:28 matt Exp $ */
+/* $NetBSD: cpu_exec.c,v 1.9 2014/02/20 15:45:20 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.8 2013/12/20 06:50:28 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.9 2014/02/20 15:45:20 matt Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_netbsd32.h"
@@ -111,12 +111,15 @@
strlcpy(l->l_proc->p_md.md_march, epp->ep_machine_arch,
sizeof(l->l_proc->p_md.md_march));
}
+
/*
* If we are AAPCS (EABI) and armv6/armv7, we want alignment faults
- * be off.
+ * to be off.
*/
if (aapcs_p && (CPU_IS_ARMV7_P() || CPU_IS_ARMV6_P())) {
l->l_md.md_flags |= MDLWP_NOALIGNFLT;
+ } else {
+ l->l_md.md_flags &= ~MDLWP_NOALIGNFLT;
}
return 0;
}
Home |
Main Index |
Thread Index |
Old Index