diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2002-03-31 05:25:11 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2002-03-31 05:25:11 +0000 |
commit | f3ce6272726529bec94d8a44482ad673c5958603 (patch) | |
tree | f379e0de4d0d5a848145a288155212a79f022bed | |
parent | 10c56acc405b9b87876b92b5d6d9e84e3d41ece4 (diff) |
Limit pci register map size to 256k
ok deraadt, art, mickey
-rw-r--r-- | sys/dev/pci/iop_pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/iop_pci.c b/sys/dev/pci/iop_pci.c index 3d834945d97..bd2bac6d58e 100644 --- a/sys/dev/pci/iop_pci.c +++ b/sys/dev/pci/iop_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iop_pci.c,v 1.3 2001/08/25 10:13:29 art Exp $ */ +/* $OpenBSD: iop_pci.c,v 1.4 2002/03/31 05:25:10 nate Exp $ */ /* $NetBSD: iop_pci.c,v 1.4 2001/03/20 13:21:00 ad Exp $ */ /*- @@ -124,7 +124,7 @@ iop_pci_attach(struct device *parent, struct device *self, void *aux) /* Map the register window. */ if (pci_mapreg_map(pa, i, PCI_MAPREG_TYPE_MEM, 0, &sc->sc_iot, - &sc->sc_ioh, NULL, NULL, 0)) { + &sc->sc_ioh, NULL, NULL, 0x40000)) { printf("%s: can't map register window\n", sc->sc_dv.dv_xname); return; } |