Module Name:    src
Committed By:   mrg
Date:           Mon Sep 21 21:26:43 UTC 2020

Modified Files:
        src/sys/arch/arm/arm: armv6_start.S

Log Message:
turn on CPU_CONTROL_SWP_ENABLE.

this allows armv[67] systems to use 'swp' and 'swpb' instructions,
which means they can run armv[45] software.

arm recommends ldrex/strex for armv6 and newer, and it is not
present in armv8 at all or some armv7.  we emulate it on armv8 and
need to add emulation for the some armv7.  using the hardware is
going to be faster, so, enable this path too.

ok jmcneill.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/sys/arch/arm/arm/armv6_start.S

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/arm/arm/armv6_start.S
diff -u src/sys/arch/arm/arm/armv6_start.S:1.27 src/sys/arch/arm/arm/armv6_start.S:1.28
--- src/sys/arch/arm/arm/armv6_start.S:1.27	Fri Aug 28 13:36:52 2020
+++ src/sys/arch/arm/arm/armv6_start.S	Mon Sep 21 21:26:43 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: armv6_start.S,v 1.27 2020/08/28 13:36:52 skrll Exp $	*/
+/*	$NetBSD: armv6_start.S,v 1.28 2020/09/21 21:26:43 mrg Exp $	*/
 
 /*-
  * Copyright (c) 2012, 2017, 2018 The NetBSD Foundation, Inc.
@@ -660,6 +660,7 @@ armv7_init:
 
 #define ARMV7_SCTLR_SET	( 	\
     CPU_CONTROL_UNAL_ENABLE |	\
+    CPU_CONTROL_SWP_ENABLE |	\
     0)
 
 	mrc	p15, 0, r0, c1, c0, 0

Reply via email to