1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-17 10:26:15 +00:00

Test PCIbios.ventry against 0 to see if we found a PCIbios entry point,

not the 'entry' member.  The entry point is formed from both a base and
a relative entry point.  'entry' is that relative offset.  It is perfectly
valid to have an entry point with a relative offset of 0.  PCIbios.ventry
is the virtual address of the entry point that takes both 'base' and
'entry' into account, thus it is the proper variable to test to see if we
have an entry point or not.
This commit is contained in:
John Baldwin 2002-09-05 17:07:07 +00:00
parent a01e3379df
commit 5264a94f3f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=102976
3 changed files with 6 additions and 6 deletions

View File

@ -109,7 +109,7 @@ pcibios_get_version(void)
{
struct bios_regs args;
if (PCIbios.entry == 0) {
if (PCIbios.ventry == 0) {
PRVERB(("pcibios: No call entry point\n"));
return (0);
}
@ -552,7 +552,7 @@ pcibios_cfgopen(void)
{
u_int16_t v = 0;
if (PCIbios.entry != 0 && enable_pcibios) {
if (PCIbios.ventry != 0 && enable_pcibios) {
v = pcibios_get_version();
if (v > 0)
printf("pcibios: BIOS version %x.%02x\n",

View File

@ -109,7 +109,7 @@ pcibios_get_version(void)
{
struct bios_regs args;
if (PCIbios.entry == 0) {
if (PCIbios.ventry == 0) {
PRVERB(("pcibios: No call entry point\n"));
return (0);
}
@ -552,7 +552,7 @@ pcibios_cfgopen(void)
{
u_int16_t v = 0;
if (PCIbios.entry != 0 && enable_pcibios) {
if (PCIbios.ventry != 0 && enable_pcibios) {
v = pcibios_get_version();
if (v > 0)
printf("pcibios: BIOS version %x.%02x\n",

View File

@ -109,7 +109,7 @@ pcibios_get_version(void)
{
struct bios_regs args;
if (PCIbios.entry == 0) {
if (PCIbios.ventry == 0) {
PRVERB(("pcibios: No call entry point\n"));
return (0);
}
@ -552,7 +552,7 @@ pcibios_cfgopen(void)
{
u_int16_t v = 0;
if (PCIbios.entry != 0 && enable_pcibios) {
if (PCIbios.ventry != 0 && enable_pcibios) {
v = pcibios_get_version();
if (v > 0)
printf("pcibios: BIOS version %x.%02x\n",