diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-21 22:47:03 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2002-03-21 22:47:03 +0000 |
commit | 532cd25262ef81b92a8794d8518df6c6ed3e55aa (patch) | |
tree | 5108e14bcca3cf68f03f7d08746ebadf1e2510f5 /sys | |
parent | dcde6987471499ebb47f4135ff9f234c92d4d668 (diff) |
Some laptops (such as the Toshiba Libretto L series) use _PIR instead
of the standard $PIR for the signature so for that too. From NetBSD and
FreeBSD. mickey@ says commitski
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/i386/pci/pcibios.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/arch/i386/pci/pcibios.c b/sys/arch/i386/pci/pcibios.c index b21383c977d..3eac6f4ddad 100644 --- a/sys/arch/i386/pci/pcibios.c +++ b/sys/arch/i386/pci/pcibios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcibios.c,v 1.25 2002/03/14 01:26:33 millert Exp $ */ +/* $OpenBSD: pcibios.c,v 1.26 2002/03/21 22:47:02 millert Exp $ */ /* $NetBSD: pcibios.c,v 1.5 2000/08/01 05:23:59 uch Exp $ */ /* @@ -258,7 +258,13 @@ pcibios_pir_init(sc) int i; pirh = (struct pcibios_pir_header *)p = ISA_HOLE_VADDR(pa); - if (pirh->signature != BIOS32_MAKESIG('$', 'P', 'I', 'R')) + /* + * Some laptops (such as the Toshiba Libretto L series) + * use _PIR instead of the standard $PIR for the signature + * so we check for that too. + */ + if (pirh->signature != BIOS32_MAKESIG('$', 'P', 'I', 'R') && + pirh->signature != BIOS32_MAKESIG('_', 'P', 'I', 'R')) continue; cksum = 0; |