summaryrefslogtreecommitdiff
path: root/sys/arch/amd64
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2007-02-09 02:58:11 +0000
committerJason Wright <jason@cvs.openbsd.org>2007-02-09 02:58:11 +0000
commit20751818273f6bdeb69e621fa8a83408b36161a2 (patch)
treeabfdc27884ac0f125d37dd706f5c142514b73a86 /sys/arch/amd64
parentc6c7555a81465ba9b9d782d016e72c1af2f31f36 (diff)
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.
Diffstat (limited to 'sys/arch/amd64')
-rw-r--r--sys/arch/amd64/pci/iommu.c4
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();