Source-Changes-HG archive

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

[src/trunk]: src/lib/libpthread/arch/arm Use .inst instead of wfe/sev to shut...



details:   https://anonhg.NetBSD.org/src/rev/9986404626fc
branches:  trunk
changeset: 781635:9986404626fc
user:      matt <matt%NetBSD.org@localhost>
date:      Wed Sep 19 07:57:14 2012 +0000

description:
Use .inst instead of wfe/sev to shut up gas.

diffstat:

 lib/libpthread/arch/arm/pthread_md.h |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (20 lines):

diff -r bc70b3c2c175 -r 9986404626fc lib/libpthread/arch/arm/pthread_md.h
--- a/lib/libpthread/arch/arm/pthread_md.h      Wed Sep 19 07:28:38 2012 +0000
+++ b/lib/libpthread/arch/arm/pthread_md.h      Wed Sep 19 07:57:14 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pthread_md.h,v 1.7 2012/08/16 04:49:48 matt Exp $      */
+/*     $NetBSD: pthread_md.h,v 1.8 2012/09/19 07:57:14 matt Exp $      */
 
 /*
  * Copyright (c) 2001 Wasabi Systems, Inc.
@@ -49,8 +49,8 @@
        return (ret);
 }
 
-#define pthread__smt_pause()   __asm __volatile("wfe")
-#define pthread__smt_wake()    __asm __volatile("sev")
+#define pthread__smt_pause()   __asm __volatile(".inst 0xe320f002") /* wfe */
+#define pthread__smt_wake()    __asm __volatile(".inst 0xe320f004") /* sev */
 
 #define        pthread__uc_sp(ucp)     ((ucp)->uc_mcontext.__gregs[_REG_SP])
 



Home | Main Index | Thread Index | Old Index