syscall.sh / m68k / remap_file_pages

remap_file_pages

create a nonlinear file mapping

sys_remap_file_pages(unsigned long start, unsigned long size, unsigned long prot, unsigned long pgoff, unsigned long flags)
number252 (0xfc)
abicommon
entry pointsys_remap_file_pages
sinceLinux 5.0
man pageremap_file_pages(2)
sourceelixir.bootlin.com

Registers

registervalue
d0252, the syscall number
d1unsigned long start
d2unsigned long size
d3unsigned long prot
d4unsigned long pgoff
d5unsigned long flags
d0the return value

Then run trap #0 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/m68k/remap_file_pages