Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2001 18:15:12 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/i386/include atomic.h
Message-ID:  <200101170215.f0H2FDY60595@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/01/16 18:15:12 PST

  Modified files:
    sys/i386/include     atomic.h 
  Log:
  - Sort of lie and say that %eax is an output only and not an input for the
    non-386 atomic_load_acq().  %eax is an input since its value is used in
    the cmpxchg instruction, but we don't care what value it is, so setting
    it to a specific value is just wasteful.  Thus, it is being used without
    being initialized as the warning stated, but it is ok for it to be used
    because its value isn't important.  Thus, we are only sort of lying when
    we say it is an output only operand.
  - Add "cc" to the clobber list for atomic_load_acq() since the cmpxchgl
    changes ZF.
  
  Revision  Changes    Path
  1.19      +3 -3      src/sys/i386/include/atomic.h



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101170215.f0H2FDY60595>