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 fix to invalidate all way of own processor
details: https://anonhg.NetBSD.org/src/rev/edbd5a93bf8b
branches: trunk
changeset: 332313:edbd5a93bf8b
user: ryo <ryo%NetBSD.org@localhost>
date: Mon Sep 15 11:49:01 2014 +0000
description:
fix to invalidate all way of own processor
diffstat:
sys/arch/arm/cortex/a9_mpsubr.S | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (22 lines):
diff -r 28ef0c76f136 -r edbd5a93bf8b sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S Mon Sep 15 06:48:05 2014 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S Mon Sep 15 11:49:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.19 2014/09/15 00:35:37 matt Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.20 2014/09/15 11:49:01 ryo Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -369,9 +369,9 @@
#ifdef __ARMEB__
setend le
#endif
- ldr r0, [r3, #SCU_CFG] // read scu config
- and r0, r0, #7 // get cpu max
- add r0, r0, #2 // adjust to cpu num shift
+ mrc p15, 0, r0, c0, c0, 5 // MPIDR get
+ and r0, r0, #3 // get our cpu numder
+ lsl r0, r0, #2 // adjust to cpu num shift
mov r1, #0xf // select all ways
lsl r1, r1, r0 // shift into place
str r1, [r3, #SCU_INV_ALL_REG] // write scu invalidate all
Home |
Main Index |
Thread Index |
Old Index