diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-10 13:39:02 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2008-05-10 13:39:02 +0000 |
commit | 282c9b7d2b095691b11461b757ba58215295d558 (patch) | |
tree | a6d6cd1adee6e9d81291a40a7b8dfc3119aad06a /sys/dev/pci | |
parent | 0672abf03cc36b958cc36a396a115139f1a95f03 (diff) |
On socppc, we need to be able to map a zero base address too.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/pci_map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci_map.c b/sys/dev/pci/pci_map.c index 77c8d52009d..f660a6ffcd2 100644 --- a/sys/dev/pci/pci_map.c +++ b/sys/dev/pci/pci_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pci_map.c,v 1.21 2008/04/09 21:47:36 kettenis Exp $ */ +/* $OpenBSD: pci_map.c,v 1.22 2008/05/10 13:39:01 kettenis Exp $ */ /* $NetBSD: pci_map.c,v 1.7 2000/05/10 16:58:42 thorpej Exp $ */ /*- @@ -326,7 +326,7 @@ pci_mapreg_map(struct pci_attach_args *pa, int reg, pcireg_t type, int busflags, if ((rv = pci_mapreg_info(pa->pa_pc, pa->pa_tag, reg, type, &base, &size, &flags)) != 0) return (rv); -#ifndef __sparc64__ +#if !defined(__sparc64__) && !defined(__socppc__) if (base == 0) return (EINVAL); /* disabled because of invalid BAR */ #endif |