Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/include Update a comment. Probably still needs...



details:   https://anonhg.NetBSD.org/src/rev/c56596c8880d
branches:  trunk
changeset: 798064:c56596c8880d
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Aug 08 07:34:02 2014 +0000

description:
Update a comment.  Probably still needs tweaking further.

diffstat:

 sys/arch/arm/include/mutex.h |  16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diffs (32 lines):

diff -r 9540d1ef34f3 -r c56596c8880d sys/arch/arm/include/mutex.h
--- a/sys/arch/arm/include/mutex.h      Fri Aug 08 07:30:51 2014 +0000
+++ b/sys/arch/arm/include/mutex.h      Fri Aug 08 07:34:02 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mutex.h,v 1.16 2014/06/12 08:50:52 ozaki-r Exp $       */
+/*     $NetBSD: mutex.h,v 1.17 2014/08/08 07:34:02 skrll Exp $ */
 
 /*-
  * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc.
@@ -35,15 +35,15 @@
 /*
  * The ARM mutex implementation is troublesome, because pre-v6 ARM lacks a
  * compare-and-swap operation.  However, there aren't any MP pre-v6 ARM
- * systems to speak of.  We are mostly concerned with atomicity with respect
- * to interrupts.
+ * systems to speak of.
+ *
+ * ARMv6 and later, however, does have ldrex/strex, and can thus implement an
+ * MP-safe compare-and-swap.
  *
- * ARMv6, however, does have ldrex/strex, and can thus implement an MP-safe
- * compare-and-swap.
- *
- * So, what we have done is impement simple mutexes using a compare-and-swap.
+ * So, what we have done is implement simple mutexes using a compare-and-swap.
  * We support pre-ARMv6 by implementing CAS as a restartable atomic sequence
- * that is checked by the IRQ vector.  MP-safe ARMv6 support will be added later.
+ * that is checked by the IRQ vector.
+ * 
  */
 
 #ifndef __MUTEX_PRIVATE



Home | Main Index | Thread Index | Old Index