Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157001332
D17318.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
834 B
Referenced Files
None
Subscribers
None
D17318.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D17318: Fix some uses of dmaplimit.
Attached
Detach File
Event Timeline
Log In to Comment