Put the munmap and munmap_text trampolines in a separate .S file, so that they can be overridden independenly of mmap.
This commit is contained in:
parent
a2a0562a9c
commit
cfd28b671a
3 changed files with 13 additions and 10 deletions
|
@ -69,6 +69,7 @@ SRCS+= \
|
||||||
mkfifo.S \
|
mkfifo.S \
|
||||||
mknod.S \
|
mknod.S \
|
||||||
mmap.S \
|
mmap.S \
|
||||||
|
munmap.S \
|
||||||
vm_getphys.S \
|
vm_getphys.S \
|
||||||
vm_getrefcount.S \
|
vm_getrefcount.S \
|
||||||
vm_remap.S \
|
vm_remap.S \
|
||||||
|
|
|
@ -1,17 +1,7 @@
|
||||||
.text
|
.text
|
||||||
.extern __mmap
|
.extern __mmap
|
||||||
.globl _mmap
|
.globl _mmap
|
||||||
.extern __munmap
|
|
||||||
.globl _munmap
|
|
||||||
.extern __munmap_text
|
|
||||||
.globl _munmap_text
|
|
||||||
.balign 2
|
.balign 2
|
||||||
|
|
||||||
_mmap:
|
_mmap:
|
||||||
jmp __mmap
|
jmp __mmap
|
||||||
|
|
||||||
_munmap:
|
|
||||||
jmp __munmap
|
|
||||||
|
|
||||||
_munmap_text:
|
|
||||||
jmp __munmap_text
|
|
||||||
|
|
12
lib/libc/syscall/munmap.S
Normal file
12
lib/libc/syscall/munmap.S
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
.text
|
||||||
|
.extern __munmap
|
||||||
|
.globl _munmap
|
||||||
|
.extern __munmap_text
|
||||||
|
.globl _munmap_text
|
||||||
|
.balign 2
|
||||||
|
|
||||||
|
_munmap:
|
||||||
|
jmp __munmap
|
||||||
|
|
||||||
|
_munmap_text:
|
||||||
|
jmp __munmap_text
|
Loading…
Reference in a new issue