Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/matt-nb6-plus]: src/sys/arch/arm/cortex Busy wait in a WFI loop until to...
details: https://anonhg.NetBSD.org/src/rev/101c6acd7e39
branches: matt-nb6-plus
changeset: 774565:101c6acd7e39
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 12 21:20:04 2013 +0000
description:
Busy wait in a WFI loop until told to exit.
diffstat:
sys/arch/arm/cortex/a9_mpsubr.S | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r 20d2cd6834a2 -r 101c6acd7e39 sys/arch/arm/cortex/a9_mpsubr.S
--- a/sys/arch/arm/cortex/a9_mpsubr.S Tue Feb 19 07:19:40 2013 +0000
+++ b/sys/arch/arm/cortex/a9_mpsubr.S Tue Mar 12 21:20:04 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: a9_mpsubr.S,v 1.3.6.2 2012/11/28 22:40:25 matt Exp $ */
+/* $NetBSD: a9_mpsubr.S,v 1.3.6.3 2013/03/12 21:20:04 matt Exp $ */
/*-
* Copyright (c) 2012 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -367,17 +367,18 @@
/* Now we will wait for someone tell this cpu to start running */
#ifdef MULTIPROCESSOR
ldr r0, .Lcpu_mbox
-#else
- cmp r0, r0
#endif
2:
#ifdef MULTIPROCESSOR
dmb
ldr r2, [r0]
tst r2, r5
+ wfieq
+ beq 2b
+#else
+ wfi
+ b 2b
#endif
- @wfeeq
- beq 2b
#ifdef MULTIPROCESSOR
3: XPUTC(#98)
Home |
Main Index |
Thread Index |
Old Index