diff options
author | 2007-02-09 02:58:10 +0000 | |
---|---|---|
committer | 2007-02-09 02:58:10 +0000 | |
commit | ff5b4fd1a9d89914e07df69c82eb922c68f5a844 (patch) | |
tree | e4f5faedfbe3799fa58999d3d52defe51f0a5917 | |
parent | Don't clear IFF_OACTIVE in re_txeof() unless there are at least 4 free (diff) | |
download | wireguard-openbsd-ff5b4fd1a9d89914e07df69c82eb922c68f5a844.tar.xz wireguard-openbsd-ff5b4fd1a9d89914e07df69c82eb922c68f5a844.zip |
according to the errata, invalid pages shouldn't be used. Always make
sure a page is mapped at every location (a page is already reserved for
just this occaision). And no, this doesn't fix it.
-rw-r--r-- | sys/arch/amd64/pci/iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c index ea3e5ec94b9..e6f8476d4db 100644 --- a/sys/arch/amd64/pci/iommu.c +++ b/sys/arch/amd64/pci/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.16 2005/09/29 21:30:42 marco Exp $ */ +/* $OpenBSD: iommu.c,v 1.17 2007/02/09 02:58:10 jason Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -492,7 +492,7 @@ amdgart_iommu_unmap(struct extent *ex, paddr_t pa, psize_t len) for (idx = 0; idx < alen; idx += PAGE_SIZE) { pgno = ((base - amdgart_softcs[0].g_pa) + idx) >> PGSHIFT; - amdgart_softcs[0].g_pte[pgno] = 0; + amdgart_softcs[0].g_pte[pgno] = amdgart_softcs[0].g_scribpte; } s = splhigh(); |