]> Zhao Yanbai Git Server - minix.git/commitdiff
Put the munmap and munmap_text trampolines in a separate .S file, so that they can...
authorKees van Reeuwijk <reeuwijk@few.vu.nl>
Thu, 29 Apr 2010 20:12:56 +0000 (20:12 +0000)
committerKees van Reeuwijk <reeuwijk@few.vu.nl>
Thu, 29 Apr 2010 20:12:56 +0000 (20:12 +0000)
lib/libc/syscall/Makefile.inc
lib/libc/syscall/mmap.S
lib/libc/syscall/munmap.S [new file with mode: 0644]

index f4993c4f104e0ad40f6937172beda8506c6ddf1a..18410494ae8667e9f160821697338c24fc3b133f 100644 (file)
@@ -69,6 +69,7 @@ SRCS+=  \
        mkfifo.S \
        mknod.S \
        mmap.S \
+       munmap.S \
        vm_getphys.S \
        vm_getrefcount.S \
        vm_remap.S \
index 0ea709587b4dbffa6848301efa16b24bd3dc49af..6a10fe4b526537ae2b6f371bc0338878adaefcec 100644 (file)
@@ -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
diff --git a/lib/libc/syscall/munmap.S b/lib/libc/syscall/munmap.S
new file mode 100644 (file)
index 0000000..c7da555
--- /dev/null
@@ -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