diff options
author | Ammar Faizi <[email protected]> | 2022-03-29 17:17:33 +0700 |
---|---|---|
committer | Paul E. McKenney <[email protected]> | 2022-04-20 17:05:46 -0700 |
commit | 544fa1a2d3e61c954ab531f2c790bc79c1745606 (patch) | |
tree | 9d671e46bf8b28b32a61cc96d61a8d9b2c4ea330 /scripts/gdb/linux/utils.py | |
parent | f4738ff74c74241c2458269bb6afb64000ec1001 (diff) |
tools/nolibc/sys: Implement `mmap()` and `munmap()`
Implement mmap() and munmap(). Currently, they are only available for
architecures that have my_syscall6 macro. For architectures that don't
have, this function will return -1 with errno set to ENOSYS (Function
not implemented).
This has been tested on x86 and i386.
Notes for i386:
1) The common mmap() syscall implementation uses __NR_mmap2 instead
of __NR_mmap.
2) The offset must be shifted-right by 12-bit.
Acked-by: Willy Tarreau <[email protected]>
Signed-off-by: Ammar Faizi <[email protected]>
Signed-off-by: Paul E. McKenney <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions