Module Name: src
Committed By: martin
Date: Fri Nov 17 15:07:16 UTC 2017
Modified Files:
src/sys/arch/arm/cortex [netbsd-8]: a9_mpsubr.S
Log Message:
Pull up following revision(s) (requested by skrll in ticket #351):
sys/arch/arm/cortex/a9_mpsubr.S: revision 1.52
Ensure CNTVOFF is 0 before dropping out of Hyp mode
To generate a diff of this commit:
cvs rdiff -u -r1.47.8.1 -r1.47.8.2 src/sys/arch/arm/cortex/a9_mpsubr.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/cortex/a9_mpsubr.S
diff -u src/sys/arch/arm/cortex/a9_mpsubr.S:1.47.8.1 src/sys/arch/arm/cortex/a9_mpsubr.S:1.47.8.2
--- src/sys/arch/arm/cortex/a9_mpsubr.S:1.47.8.1 Thu Jul 6 05:28:43 2017
+++ src/sys/arch/arm/cortex/a9_mpsubr.S Fri Nov 17 15:07:16 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.47.8.1 2017/07/06 05:28:43 martin Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.47.8.2 2017/11/17 15:07:16 martin Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -354,6 +354,10 @@ cortex_init:
teq r0, #(PSR_HYP32_MODE) /* Hyp Mode? */
bne 1f
+ /* Set CNTVOFF to 0 */
+ mov r0, #0
+ mcrr p15, 4, r0, r0, c14
+
/* Ensure that IRQ, and FIQ will be disabled after eret */
mrs r0, cpsr
bic r0, r0, #(PSR_MODE)