]> Zhao Yanbai Git Server - minix.git/commitdiff
various syscall entry points
authorBen Gras <ben@minix3.org>
Mon, 21 Sep 2009 14:46:10 +0000 (14:46 +0000)
committerBen Gras <ben@minix3.org>
Mon, 21 Sep 2009 14:46:10 +0000 (14:46 +0000)
13 files changed:
lib/i386/misc/_cpuid.s
lib/posix/_getpid.c
lib/syscall/Makefile.in
lib/syscall/getngid.s [new file with mode: 0644]
lib/syscall/getnuid.s [new file with mode: 0644]
lib/syscall/mmap.s
lib/syscall/sleep.s
lib/syscall/vm_getphys.s [new file with mode: 0755]
lib/syscall/vm_getrefcount.s [new file with mode: 0755]
lib/syscall/vm_query_exit.s [new file with mode: 0644]
lib/syscall/vm_remap.s [new file with mode: 0755]
lib/syscall/vm_set_priv.s [new file with mode: 0644]
lib/syscall/vm_unmap.s [new file with mode: 0755]

index 6ca569a3045727896575928feea959cc6e6f1a83..7be01bf5311171b69baaca73ac45b468097dce71 100755 (executable)
@@ -3,8 +3,7 @@
 .sect .text; .sect .rom; .sect .data; .sect .bss
 .sect .text
 
-! int _cpuid(u32_t eax, u32_t *eax, u32_t *ebx, u32_t *ecx, u32_t *edx);
-! 0 for OK, nonzero for unsupported
+! void _cpuid(u32_t eax, u32_t *eax, u32_t *ebx, u32_t *ecx, u32_t *edx);
 
 .define        __cpuid
 
index 25e843a69aba3de6e29c57d43a9f4a9a4090c231..7f6e0e4f4564bf14fda7fa194953d954310d0806 100755 (executable)
@@ -6,5 +6,5 @@ PUBLIC pid_t getpid()
 {
   message m;
 
-  return(_syscall(MM, GETPID, &m));
+  return(_syscall(MM, MINIX_GETPID, &m));
 }
index d5b27e0d6125c7683d2fb77ba9699106e0daf5ea..8dee5e90acd5a971aa98892a0d31bc5d8f82e082 100644 (file)
@@ -47,6 +47,8 @@ libc_FILES=" \
        getgroups.s \
        getitimer.s \
        getnpid.s \
+       getnuid.s \
+       getngid.s \
        getnprocnr.s \
        getpgrp.s \
        getpid.s \
@@ -69,6 +71,12 @@ libc_FILES=" \
        mkfifo.s \
        mknod.s \
        mmap.s \
+       vm_getphys.s \
+       vm_getrefcount.s \
+       vm_remap.s \
+       vm_unmap.s \
+       vm_set_priv.s \
+       vm_query_exit.s \
        mount.s \
        nanosleep.s \
        open.s \
diff --git a/lib/syscall/getngid.s b/lib/syscall/getngid.s
new file mode 100644 (file)
index 0000000..810d9f2
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __getngid
+.define        _getngid
+.align 2
+
+_getngid:
+       jmp     __getngid
diff --git a/lib/syscall/getnuid.s b/lib/syscall/getnuid.s
new file mode 100644 (file)
index 0000000..be94875
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __getnuid
+.define        _getnuid
+.align 2
+
+_getnuid:
+       jmp     __getnuid
index 60664320fa188b838dbaea0bc324eb73aa44ac05..a6c4b80a4ff72b9b851c1fa0a99afd3a1656fd28 100755 (executable)
@@ -1,7 +1,17 @@
 .sect .text
 .extern        __mmap
 .define        _mmap
+.extern        __munmap
+.define        _munmap
+.extern        __munmap_text
+.define        _munmap_text
 .align 2
 
 _mmap:
        jmp     __mmap
+
+_munmap:
+       jmp     __munmap
+
+_munmap_text:
+       jmp     __munmap_text
index 6760731b3d5df48b34c90e9bef5a15f081dba35d..a5394ef36faa4a6b2c2fa4ed84490c8592a5e609 100755 (executable)
@@ -5,3 +5,9 @@
 
 _sleep:
        jmp     __sleep
+
+.extern        __nanosleep
+.define        _nanosleep
+
+_nanosleep:
+       jmp     __nanosleep
diff --git a/lib/syscall/vm_getphys.s b/lib/syscall/vm_getphys.s
new file mode 100755 (executable)
index 0000000..f153bfd
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __vm_getphys
+.define        _vm_getphys
+.align 2
+
+_vm_getphys:
+       jmp     __vm_getphys
diff --git a/lib/syscall/vm_getrefcount.s b/lib/syscall/vm_getrefcount.s
new file mode 100755 (executable)
index 0000000..0020cf2
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __vm_getrefcount
+.define        _vm_getrefcount
+.align 2
+
+_vm_getrefcount:
+       jmp     __vm_getrefcount
diff --git a/lib/syscall/vm_query_exit.s b/lib/syscall/vm_query_exit.s
new file mode 100644 (file)
index 0000000..f84ecfd
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern __vm_query_exit
+.define _vm_query_exit
+.align 2
+
+_vm_query_exit:
+       jmp     __vm_query_exit
diff --git a/lib/syscall/vm_remap.s b/lib/syscall/vm_remap.s
new file mode 100755 (executable)
index 0000000..c8e7c0d
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __vm_remap
+.define        _vm_remap
+.align 2
+
+_vm_remap:
+       jmp     __vm_remap
diff --git a/lib/syscall/vm_set_priv.s b/lib/syscall/vm_set_priv.s
new file mode 100644 (file)
index 0000000..09a7bc9
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern __vm_set_priv
+.define _vm_set_priv
+.align 2
+
+_vm_set_priv:
+       jmp     __vm_set_priv
diff --git a/lib/syscall/vm_unmap.s b/lib/syscall/vm_unmap.s
new file mode 100755 (executable)
index 0000000..69ff205
--- /dev/null
@@ -0,0 +1,7 @@
+.sect .text
+.extern        __vm_unmap
+.define        _vm_unmap
+.align 2
+
+_vm_unmap:
+       jmp     __vm_unmap