freebsd-src/sys/compat
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
..
freebsd32 syscalls.master: correct return type of {read,write}v 2024-04-24 20:48:46 +01:00
ia32 freebsd32: struct siginfo32 -> struct __siginfo32 2024-03-19 23:13:26 +00:00
lindebugfs sys: Automated cleanup of cdefs and other formatting 2023-11-26 22:24:00 -07:00
linprocfs linprocfs: Avoid using a sysctl to get the CPU model string 2024-01-04 08:39:53 -05:00
linsysfs linsysfs(5): Remove sys/cdefs.h inclusion where it's not needed due to 685dc743 2023-08-18 13:12:02 +03:00
linux Fix new users of MAXPHYS and hide it from the kernel namespace 2024-04-30 15:29:06 -04:00
linuxkpi linuxkpi: Fix set_memory_* 2024-05-03 15:27:29 +02:00
x86bios sys: Remove $FreeBSD$: one-line .c pattern 2023-08-16 11:54:36 -06:00