diff options
author | dg <dg@FreeBSD.org> | 1997-01-30 19:36:58 +0000 |
---|---|---|
committer | dg <dg@FreeBSD.org> | 1997-01-30 19:36:58 +0000 |
commit | d613a1ec674f6bf67578600d64989f51b54c879e (patch) | |
tree | 720adc8ccee8791f6a058e44d77d526deeb44e12 /sys | |
parent | 902c1eaf5a52164739beb9bbe558b253226a3c75 (diff) | |
download | FreeBSD-src-d613a1ec674f6bf67578600d64989f51b54c879e.zip FreeBSD-src-d613a1ec674f6bf67578600d64989f51b54c879e.tar.gz |
Removed unnecessary PG_N flag from device memory mappings. This is handled
by the CPU/chipset already and was apparantly triggering a hardware bug that
causes strange parity errors.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/pmap.c | 2 | ||||
-rw-r--r-- | sys/i386/i386/pmap.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/amd64/amd64/pmap.c b/sys/amd64/amd64/pmap.c index 17ee939..3c47ee4 100644 --- a/sys/amd64/amd64/pmap.c +++ b/sys/amd64/amd64/pmap.c @@ -2938,7 +2938,7 @@ pmap_mapdev(pa, size) pa = pa & PG_FRAME; for (tmpva = va; size > 0;) { pte = (unsigned *)vtopte(tmpva); - *pte = pa | PG_RW | PG_V | PG_N; + *pte = pa | PG_RW | PG_V; size -= PAGE_SIZE; tmpva += PAGE_SIZE; pa += PAGE_SIZE; diff --git a/sys/i386/i386/pmap.c b/sys/i386/i386/pmap.c index 17ee939..3c47ee4 100644 --- a/sys/i386/i386/pmap.c +++ b/sys/i386/i386/pmap.c @@ -2938,7 +2938,7 @@ pmap_mapdev(pa, size) pa = pa & PG_FRAME; for (tmpva = va; size > 0;) { pte = (unsigned *)vtopte(tmpva); - *pte = pa | PG_RW | PG_V | PG_N; + *pte = pa | PG_RW | PG_V; size -= PAGE_SIZE; tmpva += PAGE_SIZE; pa += PAGE_SIZE; |