diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-10-19 19:24:55 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-10-19 19:24:55 +0000 |
commit | eb4fd5503fc9ca2e528dcf699ee4c5e270a558d3 (patch) | |
tree | c58702a3fe596e2cca71e453830cf982b862c005 /sys/dev/pci | |
parent | bbae3c05c7b342e3d31e819d83a0fdbc5b809ca1 (diff) |
Properly restore the prefetchable memory window upon resume.
ok deraadt@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/ppb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/ppb.c b/sys/dev/pci/ppb.c index 7b806daaa48..bbd13f25233 100644 --- a/sys/dev/pci/ppb.c +++ b/sys/dev/pci/ppb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ppb.c,v 1.63 2015/09/10 10:36:04 deraadt Exp $ */ +/* $OpenBSD: ppb.c,v 1.64 2015/10/19 19:24:54 kettenis Exp $ */ /* $NetBSD: ppb.c,v 1.16 1997/06/06 23:48:05 thorpej Exp $ */ /* @@ -429,7 +429,7 @@ ppbactivate(struct device *self, int act) /* Restore prefetchable MMI/O window. */ blr = sc->sc_pmemlimit & PPB_MEM_MASK; - blr |= (sc->sc_pmembase >> PPB_MEM_SHIFT); + blr |= ((sc->sc_pmembase & PPB_MEM_MASK) >> PPB_MEM_SHIFT); pci_conf_write(pc, tag, PPB_REG_PREFMEM, blr); #ifdef __LP64__ pci_conf_write(pc, tag, PPB_REG_PREFBASE_HI32, |