Page MenuHomeFreeBSD

linuxkpi: Fix set_memory_*
ClosedPublic

Authored by tijl on May 2 2024, 9:01 AM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 12 2024, 2:59 PM
Unknown Object (File)
Oct 12 2024, 2:59 PM
Unknown Object (File)
Oct 12 2024, 2:58 PM
Unknown Object (File)
Oct 12 2024, 2:48 PM
Unknown Object (File)
Oct 9 2024, 2:50 AM
Unknown Object (File)
Sep 22 2024, 6:56 AM
Unknown Object (File)
Sep 18 2024, 2:19 PM
Unknown Object (File)
Sep 16 2024, 1:07 AM

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