From owner-p4-projects@FreeBSD.ORG Tue Apr 22 14:13:14 2003 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 68F0937B404; Tue, 22 Apr 2003 14:13:14 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2006A37B401 for ; Tue, 22 Apr 2003 14:13:14 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF22A43FB1 for ; Tue, 22 Apr 2003 14:13:13 -0700 (PDT) (envelope-from peter@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 h3MLDD0U095077 for ; Tue, 22 Apr 2003 14:13:13 -0700 (PDT) (envelope-from peter@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h3MLDD4l095069 for perforce@freebsd.org; Tue, 22 Apr 2003 14:13:13 -0700 (PDT) Date: Tue, 22 Apr 2003 14:13:13 -0700 (PDT) Message-Id: <200304222113.h3MLDD4l095069@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to peter@freebsd.org using -f From: Peter Wemm To: Perforce Change Reviews Subject: PERFORCE change 29448 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2003 21:13:15 -0000 http://perforce.freebsd.org/chv.cgi?CH=29448 Change 29448 by peter@peter_daintree on 2003/04/22 14:12:33 stub out the pcpu stuff so that I dont have to worry about %fs/%gs for now Affected files ... .. //depot/projects/hammer/sys/x86_64/include/pcpu.h#7 edit Differences ... ==== //depot/projects/hammer/sys/x86_64/include/pcpu.h#7 (text+ko) ==== @@ -54,6 +54,7 @@ #elif defined(__GNUC__) +#if 0 /* * Evaluates to the byte offset of the per-cpu variable name. */ @@ -155,6 +156,15 @@ #define PCPU_GET(member) __PCPU_GET(pc_ ## member) #define PCPU_PTR(member) __PCPU_PTR(pc_ ## member) #define PCPU_SET(member, val) __PCPU_SET(pc_ ## member, val) +#else + +extern struct pcpu __pcpu; + +#define PCPU_GET(member) (__pcpu.pc_ ## member) +#define PCPU_PTR(member) (&__pcpu.pc_ ## member) +#define PCPU_SET(member,value) (__pcpu.pc_ ## member = (value)) + +#endif #else #error gcc or lint is required to use this file