Source-Changes-HG archive

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

[src/netbsd-6]: src/sys/arch/x86/include Pull up following revision(s) (reque...



details:   https://anonhg.NetBSD.org/src/rev/94baa9587caf
branches:  netbsd-6
changeset: 775367:94baa9587caf
user:      riz <riz%NetBSD.org@localhost>
date:      Wed Oct 17 22:39:26 2012 +0000

description:
Pull up following revision(s) (requested by apb in ticket #606):
        sys/arch/x86/include/lock.h: revision 1.26
Change "=r" to "=qQ" in a register constraint in an asm statement
for a register that is used with the "xchgb" instruction in the
definition of __cpu_simple_lock_try().  This fixes PR 45673, or at
least works around the gcc bug that might be behind PR 45673.
The output from "objdump -d" before and after this change is
identical, for the amd64 GENERIC kernel, the i386 GENERIC kernel,
and the i386 MONOLITHIC kernel.

diffstat:

 sys/arch/x86/include/lock.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c1d969c88d21 -r 94baa9587caf sys/arch/x86/include/lock.h
--- a/sys/arch/x86/include/lock.h       Wed Oct 17 22:36:59 2012 +0000
+++ b/sys/arch/x86/include/lock.h       Wed Oct 17 22:39:26 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.25 2009/01/15 01:20:31 pooka Exp $  */
+/*     $NetBSD: lock.h,v 1.25.20.1 2012/10/17 22:39:26 riz Exp $       */
 
 /*-
  * Copyright (c) 2000, 2006 The NetBSD Foundation, Inc.
@@ -106,7 +106,7 @@
 
        val = __SIMPLELOCK_LOCKED;
        __asm volatile ("xchgb %0,(%2)" : 
-           "=r" (val)
+           "=qQ" (val)
            :"0" (val), "r" (lockp));
        __insn_barrier();
        return val == __SIMPLELOCK_UNLOCKED;



Home | Main Index | Thread Index | Old Index