From owner-p4-projects@FreeBSD.ORG Wed Apr 4 15:36:08 2007 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 0B2C616A409; Wed, 4 Apr 2007 15:36:08 +0000 (UTC) X-Original-To: perforce@FreeBSD.org Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B69E616A407 for ; Wed, 4 Apr 2007 15:36:07 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id A82BF13C44C for ; Wed, 4 Apr 2007 15:36:07 +0000 (UTC) (envelope-from gonzo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l34Fa7N4076721 for ; Wed, 4 Apr 2007 15:36:07 GMT (envelope-from gonzo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l34Fa7WM076718 for perforce@freebsd.org; Wed, 4 Apr 2007 15:36:07 GMT (envelope-from gonzo@FreeBSD.org) Date: Wed, 4 Apr 2007 15:36:07 GMT Message-Id: <200704041536.l34Fa7WM076718@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to gonzo@FreeBSD.org using -f From: Oleksandr Tymoshenko To: Perforce Change Reviews Cc: Subject: PERFORCE change 117366 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Apr 2007 15:36:08 -0000 http://perforce.freebsd.org/chv.cgi?CH=117366 Change 117366 by gonzo@gonzo_jeeves on 2007/04/04 15:35:37 o Add PCPU_LAZY_INC macro Affected files ... .. //depot/projects/mips2/src/sys/mips/include/pcpu.h#4 edit Differences ... ==== //depot/projects/mips2/src/sys/mips/include/pcpu.h#4 (text+ko) ==== @@ -40,9 +40,14 @@ #define PCPUP (pcpup) +/* + * XXX The implementation of this operation should be made atomic + * with respect to preemption. + */ #define PCPU_GET(member) (PCPUP->pc_ ## member) #define PCPU_PTR(member) (&PCPUP->pc_ ## member) #define PCPU_SET(member,value) (PCPUP->pc_ ## member = (value)) +#define PCPU_LAZY_INC(member) (++PCPUP->pc_ ## member) extern struct pcpu *pcpup;