From owner-cvs-src@FreeBSD.ORG Sun Apr 6 16:09:58 2003 Return-Path: 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 F310C37B401; Sun, 6 Apr 2003 16:09:57 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90F6043F75; Sun, 6 Apr 2003 16:09:57 -0700 (PDT) (envelope-from mux@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 h36N9v0U088365; Sun, 6 Apr 2003 16:09:57 -0700 (PDT) (envelope-from mux@repoman.freebsd.org) Received: (from mux@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h36N9vka088364; Sun, 6 Apr 2003 16:09:57 -0700 (PDT) Message-Id: <200304062309.h36N9vka088364@repoman.freebsd.org> From: Maxime Henrion Date: Sun, 6 Apr 2003 16:09:57 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/fxp if_fxp.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Apr 2003 23:09:58 -0000 mux 2003/04/06 16:09:57 PDT FreeBSD src repository Modified files: sys/dev/fxp if_fxp.c Log: Because alpha can't access memory in 16-bit granularity, we're using an atomic operation to clear the suspend flag in fxp_start(). Since other architectures may need the same thing, we want to do it all the time and not only in the __alpha__ case. However, we don't want to use atomic operations on 16-bit integers, because those may not be available on any architecture. We're thus faking a 32-bit atomic operation here. This patch also deals with endianness here. Revision Changes Path 1.159 +11 -7 src/sys/dev/fxp/if_fxp.c