syscall.sh / microblaze / mmap2
mmap2
map files or devices into memory
sys_mmap2(unsigned long addr, unsigned long len, unsigned long prot, unsigned long flags, unsigned long fd, unsigned long pgoff)
| number | 192 (0xc0) |
|---|---|
| abi | common |
| entry point | sys_mmap2 |
| since | Linux 5.0 |
| man page | mmap2(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r12 | 192, the syscall number |
r5 | unsigned long addr |
r6 | unsigned long len |
r7 | unsigned long prot |
r8 | unsigned long flags |
r9 | unsigned long fd |
r10 | unsigned long pgoff |
r3 | the return value |
Then run brki r14,8 to enter the kernel.
Same syscall on other architectures
- x86 192
- arm 192
- ppc 192
- mipso32 4210
- arc 222
- csky 222
- hexagon 222
- m68k 192
- nios2 222
- openrisc 222
- parisc 89
- sh 192
- sparc 56
- xtensa 80
Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/mmap2