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/51ca7da07814
branches:  trunk
changeset: 794907:51ca7da07814
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 a610ae2a1d00 -r 51ca7da07814 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