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 Ensure SBZ register is zero



details:   https://anonhg.NetBSD.org/src/rev/25b3dbfbe733
branches:  trunk
changeset: 328167:25b3dbfbe733
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Mar 28 21:32:41 2014 +0000

description:
Ensure SBZ register is zero

diffstat:

 common/lib/libc/arch/arm/atomic/membar_ops.S |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r c94da4c8292c -r 25b3dbfbe733 common/lib/libc/arch/arm/atomic/membar_ops.S
--- a/common/lib/libc/arch/arm/atomic/membar_ops.S      Fri Mar 28 18:27:14 2014 +0000
+++ b/common/lib/libc/arch/arm/atomic/membar_ops.S      Fri Mar 28 21:32:41 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: membar_ops.S,v 1.5 2014/03/04 16:15:28 matt Exp $      */
+/*     $NetBSD: membar_ops.S,v 1.6 2014/03/28 21:32:41 skrll Exp $     */
 /*-
  * Copyright (c) 2008 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -36,6 +36,7 @@
 #ifdef _ARM_ARCH_7
        dsb
 #else
+       mov     r0, #0
        mcr     p15, 0, r0, c7, c10, 4   /* Data Synchronization Barrier */
 #endif
        RET
@@ -48,6 +49,7 @@
 #ifdef _ARM_ARCH_7
        dmb
 #else
+       mov     r0, #0
        mcr     p15, 0, r0, c7, c10, 5  /* Data Memory Barrier */
 #endif
        RET



Home | Main Index | Thread Index | Old Index