opnsense-src/sys/compat/linuxkpi
Tijl Coosemans 7206f7c619 linuxkpi: Fix set_memory_*
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.

Reviewed by:	kib, markj
MFC after:	3 days
Differential Revision:	https://reviews.freebsd.org/D45057
2024-05-03 15:27:29 +02:00
..
common linuxkpi: Fix set_memory_* 2024-05-03 15:27:29 +02:00
dummy/include LinuxKPI: Move [SU](8|16|32|64)_(MAX|MIN) defines to linux/limits.h 2024-04-08 09:47:42 +03:00