Page MenuHomeFreeBSD

D17318.diff
No OneTemporary

D17318.diff

Index: head/sys/amd64/amd64/pmap.c
===================================================================
--- head/sys/amd64/amd64/pmap.c
+++ head/sys/amd64/amd64/pmap.c
@@ -1422,7 +1422,7 @@
if (ppim->va == 0)
continue;
/* Make the direct map consistent */
- if (ppim->pa < dmaplimit && ppim->pa + ppim->sz < dmaplimit) {
+ if (ppim->pa < dmaplimit && ppim->pa + ppim->sz <= dmaplimit) {
(void)pmap_change_attr(PHYS_TO_DMAP(ppim->pa),
ppim->sz, ppim->mode);
}
@@ -7055,7 +7055,7 @@
* If the specified range of physical addresses fits within
* the direct map window, use the direct map.
*/
- if (pa < dmaplimit && pa + size < dmaplimit) {
+ if (pa < dmaplimit && pa + size <= dmaplimit) {
va = PHYS_TO_DMAP(pa);
if (!pmap_change_attr(va, size, mode))
return ((void *)(va + offset));

File Metadata

Mime Type
text/plain
Expires
Mon, May 18, 9:35 PM (4 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33270118
Default Alt Text
D17318.diff (834 B)

Event Timeline