Date: Thu, 16 May 2002 22:45:39 -0700 (PDT) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/alpha/include atomic.h Message-ID: <200205170545.g4H5jdd33910@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2002/05/16 22:45:39 PDT Modified files: sys/alpha/include atomic.h Log: - Apparently, the Alpha ABI mandates that arguments be passed sign-extended regardless of if they are signed or unsigned since it is easier to work with sign-extended values. Thus, remove the disabled zapnot to zero-extend the sign-extended value we read from *p in atomic_cmpset_32() since the cmpval we are comparing against should already be sign-extended. - To ensure that the compiler knows to sign-extend the upper 32 bits of cmpval rather than leaving garbage in there, cast the appropriately in the constraints section. Help from: Richard Henderson <rth@redhat.com> Revision Changes Path 1.14 +1 -4 src/sys/alpha/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?200205170545.g4H5jdd33910>