From owner-freebsd-current@FreeBSD.ORG Mon Sep 28 12:44:02 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9A81B1065692; Mon, 28 Sep 2009 12:44:02 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 9F8DD8FC0C; Mon, 28 Sep 2009 12:44:00 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA07374; Mon, 28 Sep 2009 15:43:56 +0300 (EEST) (envelope-from avg@icyb.net.ua) Message-ID: <4AC0AF8B.5080401@icyb.net.ua> Date: Mon, 28 Sep 2009 15:43:55 +0300 From: Andriy Gapon User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: paradox References: <205895.10887.qm@web59105.mail.re1.yahoo.com> In-Reply-To: <205895.10887.qm@web59105.mail.re1.yahoo.com> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Alan Cox , freebsd-current@freebsd.org, d@delphij.net, Jung-uk Kim Subject: Re: svn commit: r197501 - head/sys/dev/atkbdc X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2009 12:44:02 -0000 on 25/09/2009 23:07 paradox said the following: > http://svn.freebsd.org/changeset/base/197501 > > would not be bad if someone is from developers who are develop the amd64 looked at the problem this commit > > on arch amd64 > this code > > p = BIOS_PADDRTOVADDR((regs.R_ES << 4) + regs.R_BX); > if ((readb(p + 6) & 0x40) == 0) > > page fault ot access violation when try to readb from p pointer > > R_ES = 0xf000 > R_BX = 0xe6f5 > > as result it is a bios rom area > on arch i386 this works but not work on amd64 It looks like on amd64 BIOS_PADDRTOVADDR should be defined in terms of the direct map. Now, it is a twin of i386 definition. > would be better to use BIOS_PADDRTOVADDR > but we migrate to x86bios_offset to access rom bios area I think that the code, as it is in svn now, does the right thing. Not an expert, perhaps amd64 BIOS_PADDRTOVADDR should be aliased to PHYS_TO_DMAP. Alan, what do you think? -- Andriy Gapon