Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Sep 2009 13:07:11 -0700 (PDT)
From:      paradox <ddkprog@yahoo.com>
To:        freebsd-current@freebsd.org
Cc:        d@delphij.net, Jung-uk Kim <jkim@FreeBSD.org>
Subject:   svn commit: r197501 - head/sys/dev/atkbdc
Message-ID:  <205895.10887.qm@web59105.mail.re1.yahoo.com>

next in thread | raw e-mail | index | archive | help
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

would be better to use BIOS_PADDRTOVADDR
but we migrate to x86bios_offset to access rom bios area


      



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?205895.10887.qm>