Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/cortex Deal with ARM32_DISABLE_ALIGNMENT_FAULTS
details: https://anonhg.NetBSD.org/src/rev/734413919352
branches: trunk
changeset: 791308:734413919352
user: matt <matt%NetBSD.org@localhost>
date: Tue Nov 12 17:10:39 2013 +0000
description:
Deal with ARM32_DISABLE_ALIGNMENT_FAULTS
diffstat:
sys/arch/arm/cortex/a9_mpsubr.S | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r cef8fd238fa6 -r 734413919352 sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S Tue Nov 12 17:05:09 2013 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S Tue Nov 12 17:10:39 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.9 2013/09/07 00:33:32 matt Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.10 2013/11/12 17:10:39 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -117,6 +117,10 @@
#undef CPU_CONTROL_EX_BEND // needs to clear on LE systems
#define CPU_CONTROL_EX_BEND 0
#endif
+#ifdef ARM32_DISABLE_ALIGNMENT_FAULTS
+#undef CPU_CONTROL_AFLT_ENABLE
+#define CPU_CONTROL_AFLT_ENABLE 0
+#endif
#define CPU_CONTROL_SET \
(CPU_CONTROL_MMU_ENABLE | \
@@ -125,7 +129,8 @@
CPU_CONTROL_DC_ENABLE | \
CPU_CONTROL_SWP_ENABLE | \
CPU_CONTROL_BPRD_ENABLE | \
- CPU_CONTROL_IC_ENABLE)
+ CPU_CONTROL_IC_ENABLE | \
+ CPU_CONTROL_UNAL_ENABLE)
arm_cpuinit:
/*
Home |
Main Index |
Thread Index |
Old Index