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 \
|
||||
mknod.S \
|
||||
mmap.S \
|
||||
munmap.S \
|
||||
vm_getphys.S \
|
||||
vm_getrefcount.S \
|
||||
vm_remap.S \
|
||||
|
|
|
@ -1,17 +1,7 @@
|
|||
.text
|
||||
.extern __mmap
|
||||
.globl _mmap
|
||||
.extern __munmap
|
||||
.globl _munmap
|
||||
.extern __munmap_text
|
||||
.globl _munmap_text
|
||||
.balign 2
|
||||
|
||||
_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