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 Correct _ARM_ARCH_8 instructions



details:   https://anonhg.NetBSD.org/src/rev/1308f3c3359c
branches:  trunk
changeset: 331377:1308f3c3359c
user:      matt <matt%NetBSD.org@localhost>
date:      Sun Aug 10 06:23:13 2014 +0000

description:
Correct _ARM_ARCH_8 instructions

diffstat:

 sys/arch/arm/include/lock.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (22 lines):

diff -r 080c5a60f080 -r 1308f3c3359c sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h       Sun Aug 10 06:22:06 2014 +0000
+++ b/sys/arch/arm/include/lock.h       Sun Aug 10 06:23:13 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.27 2014/03/13 12:59:08 matt Exp $   */
+/*     $NetBSD: lock.h,v 1.28 2014/08/10 06:23:13 matt Exp $   */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -214,10 +214,10 @@
 
 #ifdef _ARM_ARCH_8
        if (sizeof(*__alp) == 1) {
-               __asm __volatile("stab\t%0, [%1]"
+               __asm __volatile("stlb\t%0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
        } else {
-               __asm __volatile("sta\t%0, [%1]"
+               __asm __volatile("stl\t%0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
        }
 #else



Home | Main Index | Thread Index | Old Index