From owner-cvs-src  Sat Feb 22 22:34:23 2003
Delivered-To: cvs-src@freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id DA40937B401; Sat, 22 Feb 2003 22:34:21 -0800 (PST)
Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 90C3743FA3; Sat, 22 Feb 2003 22:34:21 -0800 (PST)
	(envelope-from marcel@FreeBSD.org)
Received: from repoman.freebsd.org (localhost [127.0.0.1])
	by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h1N6YL0U023152;
	Sat, 22 Feb 2003 22:34:21 -0800 (PST)
	(envelope-from marcel@repoman.freebsd.org)
Received: (from marcel@localhost)
	by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h1N6YLQL023151;
	Sat, 22 Feb 2003 22:34:21 -0800 (PST)
Message-Id: <200302230634.h1N6YLQL023151@repoman.freebsd.org>
From: Marcel Moolenaar <marcel@FreeBSD.org>
Date: Sat, 22 Feb 2003 22:34:21 -0800 (PST)
To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org,
	cvs-all@FreeBSD.org
Subject: cvs commit: src/sys/alpha/include atomic.h
X-FreeBSD-CVS-Branch: HEAD
Sender: owner-cvs-src@FreeBSD.ORG
Precedence: bulk
List-ID: <cvs-src.FreeBSD.ORG>
List-Archive: <http://docs.freebsd.org/mail/> (Web Archive)
List-Help: <mailto:majordomo@FreeBSD.ORG?subject=help> (List Instructions)
List-Subscribe: <mailto:majordomo@FreeBSD.ORG?subject=subscribe%20cvs-src>
List-Unsubscribe: <mailto:majordomo@FreeBSD.ORG?subject=unsubscribe%20cvs-src>
X-Loop: FreeBSD.ORG

marcel      2003/02/22 22:34:21 PST

  Modified files:
    sys/alpha/include    atomic.h 
  Log:
  Workaround for compiling LINT. Large kernels (like LINT) can have
  branch targets that are too far apart for the BRADDR relocation.
  This is caused by the branch prediction optimizationi in the atomic
  inlines here, because they jump across sections.
  The workaround is to suppress jumping to a different section when
  compiling LINT. To generate correct code in that case, the section
  directives are replaced by a branch and a label to deal with the
  fall-through case. Reasonably good C compilers will optimize this
  away anyway, so the end result isn't really that bad.
  
  Revision  Changes    Path
  1.18      +32 -20    src/sys/alpha/include/atomic.h

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