Source-Changes-HG archive

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

[src/trunk]: src/common/lib/libc/arch/arm/atomic Correct copyright/fix comments.



details:   https://anonhg.NetBSD.org/src/rev/f85a9b86e99c
branches:  trunk
changeset: 781529:f85a9b86e99c
user:      matt <matt%NetBSD.org@localhost>
date:      Thu Sep 13 00:36:12 2012 +0000

description:
Correct copyright/fix comments.

diffstat:

 common/lib/libc/arch/arm/atomic/atomic_add_64.S  |   3 +--
 common/lib/libc/arch/arm/atomic/atomic_and_64.S  |   5 ++---
 common/lib/libc/arch/arm/atomic/atomic_dec_64.S  |   4 ++--
 common/lib/libc/arch/arm/atomic/atomic_inc_64.S  |   4 ++--
 common/lib/libc/arch/arm/atomic/atomic_or_64.S   |   4 ++--
 common/lib/libc/arch/arm/atomic/atomic_swap_64.S |  20 +++-----------------
 6 files changed, 12 insertions(+), 28 deletions(-)

diffs (97 lines):

diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_add_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_add_64.S   Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_add_64.S   Thu Sep 13 00:36:12 2012 +0000
@@ -1,5 +1,4 @@
-/*     $NetBSD: atomic_add_64.S,v 1.2 2012/09/12 18:23:33 matt Exp $   */
-
+/*     $NetBSD: atomic_add_64.S,v 1.3 2012/09/13 00:36:12 matt Exp $   */
 /*-
  * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_and_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_and_64.S   Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_and_64.S   Thu Sep 13 00:36:12 2012 +0000
@@ -1,7 +1,6 @@
-/*     $NetBSD: atomic_and_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $   */
-
+/*     $NetBSD: atomic_and_64.S,v 1.2 2012/09/13 00:36:12 matt Exp $   */
 /*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_dec_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_dec_64.S   Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_dec_64.S   Thu Sep 13 00:36:12 2012 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: atomic_dec_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $   */
+/*     $NetBSD: atomic_dec_64.S,v 1.2 2012/09/13 00:36:12 matt Exp $   */
 /*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_inc_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_inc_64.S   Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_inc_64.S   Thu Sep 13 00:36:12 2012 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: atomic_inc_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $   */
+/*     $NetBSD: atomic_inc_64.S,v 1.2 2012/09/13 00:36:12 matt Exp $   */
 /*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_or_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_or_64.S    Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_or_64.S    Thu Sep 13 00:36:12 2012 +0000
@@ -1,6 +1,6 @@
-/*     $NetBSD: atomic_or_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $    */
+/*     $NetBSD: atomic_or_64.S,v 1.2 2012/09/13 00:36:12 matt Exp $    */
 /*-
- * Copyright (c) 2008 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
diff -r 88eeed888b02 -r f85a9b86e99c common/lib/libc/arch/arm/atomic/atomic_swap_64.S
--- a/common/lib/libc/arch/arm/atomic/atomic_swap_64.S  Wed Sep 12 23:06:15 2012 +0000
+++ b/common/lib/libc/arch/arm/atomic/atomic_swap_64.S  Thu Sep 13 00:36:12 2012 +0000
@@ -1,11 +1,10 @@
-/*     $NetBSD: atomic_swap_64.S,v 1.1 2012/09/11 20:51:25 matt Exp $  */
-
+/*     $NetBSD: atomic_swap_64.S,v 1.2 2012/09/13 00:36:12 matt Exp $  */
 /*-
- * Copyright (c) 2007,2012 The NetBSD Foundation, Inc.
+ * Copyright (c) 2012 The NetBSD Foundation, Inc.
  * All rights reserved.
  *
  * This code is derived from software contributed to The NetBSD Foundation
- * by Jason R. Thorpe and Matt Thomas.
+ * by Matt Thomas.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -31,19 +30,6 @@
 
 #include "atomic_op_asm.h"
 
-/*
- * While SWP{B} is sufficient on its own for pre-ARMv7 CPUs, on MP ARMv7 cores
- * SWP{B} is disabled since it's no longer atomic among multiple CPUs.  They
- * will actually raise an UNDEFINED exception.
- *
- * So if we use the LDREX/STREX template, but use a SWP instruction followed
- * by a MOV instruction (using a temporary register), that gives a handler
- * for the SWP UNDEFINED exception enough information to "patch" this instance
- * SWP with correct forms of LDREX/STREX.  (note that this would happen even
- * "read-only" pages.  If the page gets tossed, we will get another exception
- * and fix yet again).
- */
-
 ENTRY_NP(_atomic_swap_64)
        str     r4, [sp, #-4]!          /* save temporary */
        mov     r4, r0                  /* return value will be in r0 */



Home | Main Index | Thread Index | Old Index