From owner-freebsd-amd64@FreeBSD.ORG Fri Jun 5 10:35:03 2009 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D71DE106566B for ; Fri, 5 Jun 2009 10:35:03 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 278108FC0A for ; Fri, 5 Jun 2009 10:35:02 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail07.syd.optusnet.com.au (mail07.syd.optusnet.com.au [211.29.132.188]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n5586OqO032438 for ; Fri, 5 Jun 2009 18:06:24 +1000 Received: from c122-106-151-9.carlnfd1.nsw.optusnet.com.au (c122-106-151-9.carlnfd1.nsw.optusnet.com.au [122.106.151.9]) by mail07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id n5586JIa003440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 5 Jun 2009 18:06:21 +1000 Date: Fri, 5 Jun 2009 18:06:18 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: "Tseng, Kuo-Lang" In-Reply-To: <63FEFD5869C1DB49B69DCC57DF8F2157CA08AD20@orsmsx505.amr.corp.intel.com> Message-ID: <20090605180053.I15681@delplex.bde.org> References: <63FEFD5869C1DB49B69DCC57DF8F2157CA08AD20@orsmsx505.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: "freebsd-amd64@freebsd.org" Subject: Re: Declaration of intrcnt and eintrcnt in amd64/amd64/support.S X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jun 2009 10:35:04 -0000 On Thu, 4 Jun 2009, Tseng, Kuo-Lang wrote: > Currently these two variables are stored in the .text section because they are declared without a .data directive. Is there any reason why they are not declared with .data directive? Or this is missing? This is just a bug, as is formatting mail for 220-column terminals. It is missing in the reference i386 version which has a .data directive before some other variables that don't exist on amd64. Apparently, these variables only work because the text section is not write protected. Write protection of the text section was lost long ago on i386. intrnames and eintrnames are also in the text section. Bruce