Page MenuHomeFreeBSD

linuxkpi: Fix set_memory_*
ClosedPublic

Authored by tijl on May 2 2024, 9:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 14, 1:50 AM
Unknown Object (File)
Feb 22 2025, 2:26 PM
Unknown Object (File)
Feb 22 2025, 1:42 PM
Unknown Object (File)
Feb 14 2025, 5:54 AM
Unknown Object (File)
Jan 27 2025, 5:38 AM
Unknown Object (File)
Jan 27 2025, 5:30 AM
Unknown Object (File)
Jan 26 2025, 8:03 AM
Unknown Object (File)
Jan 17 2025, 5:32 PM

Details

Summary

set_memory_* is currently implemented using PHYS_TO_DMAP but not all
architectures have a DMAP. Looking at how this function is used the
given address isn't physical, but virtual so the PHYS_TO_DMAP call
can simply be removed.

Also cast numpages before shifting it to avoid overflow.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable