syscall.sh / mipso32 / mmap
mmap
map or unmap files or devices into memory
sys_mips_mmap(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, off_t offset)
| number | 4090 (0xffa) |
|---|---|
| abi | o32 |
| entry point | sys_mips_mmap |
| since | Linux 5.0 |
| man page | mmap(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
v0 | 4090, the syscall number |
a0 | unsigned long addr |
a1 | unsigned long len |
a2 | unsigned long prot |
a3 | unsigned long flags |
sp+16 | unsigned long fd |
sp+20 | off_t offset |
v0 | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 9
- x86 90
- arm64 222
- riscv64 222
- x32 1073741833
- loongarch64 222
- ppc64 90
- ppc 90
- s390x 90
- mips64 5009
- mipsn32 6009
- alpha 71
- m68k 90
- microblaze 90
- parisc 90
- sh 90
- sparc 71
- sparc64 71
Get this as JSON: https://api.syscall.sh/v2/syscalls/mipso32/mmap