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 Use r0 in the tlbiall instruction to avo...



details:   https://anonhg.NetBSD.org/src/rev/0558b76209b2
branches:  trunk
changeset: 358827:0558b76209b2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Jan 18 12:49:09 2018 +0000

description:
Use r0 in the tlbiall instruction to avoid confusion.

>From Ramakrishna Rao Desetti

diffstat:

 sys/arch/arm/cortex/a9_mpsubr.S |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 3fdd45dfb06a -r 0558b76209b2 sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S   Thu Jan 18 09:54:52 2018 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S   Thu Jan 18 12:49:09 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: a9_mpsubr.S,v 1.54 2017/12/10 21:38:26 skrll Exp $     */
+/*     $NetBSD: a9_mpsubr.S,v 1.55 2018/01/18 12:49:09 skrll Exp $     */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -506,7 +506,7 @@
        // turning on SMP.
        //
        mov     r0, #0
-       mcr     p15, 0, r1, c8, c7, 0   // TLBIALL (just this core)
+       mcr     p15, 0, r0, c8, c7, 0   // TLBIALL (just this core)
 #endif
 
        // For the A7, SMP must be on ldrex/strex to work.



Home | Main Index | Thread Index | Old Index