From owner-freebsd-drivers@freebsd.org Mon Oct 10 21:26:45 2016 Return-Path: Delivered-To: freebsd-drivers@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A45EBC0CE56 for ; Mon, 10 Oct 2016 21:26:45 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 73DBD10C for ; Mon, 10 Oct 2016 21:26:45 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u9ALQh3K073706 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 10 Oct 2016 15:26:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u9ALQh1F073703; Mon, 10 Oct 2016 15:26:43 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Mon, 10 Oct 2016 15:26:43 -0600 (MDT) From: Warren Block To: =?ISO-8859-15?Q?fran=E7ai_s?= cc: freebsd-drivers@freebsd.org Subject: Re: What are the codes that contain the marcos that are created directly or the .word directives? In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Mon, 10 Oct 2016 15:26:44 -0600 (MDT) Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8BIT X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2016 21:26:45 -0000 On Sun, 9 Oct 2016, françai s wrote: > It has come to my attention the following: > > "The minority of FreeBSD developers either create a macro expands to > something like ".word “ or sometimes the .word is just hard > coded inline when there’s only going to be one of them, sometimes expose > them both in assembly and in C code, in which case what we do varies a bit > to accommodate the different language’s syntax. It is rare, but has > happened, that we only expose it to C code. https://forums.freebsd.org/threads/57961/ https://lists.freebsd.org/pipermail/freebsd-questions/2016-October/273948.html