various syscall entry points
This commit is contained in:
parent
40411ea908
commit
d6819ff659
13 changed files with 82 additions and 3 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -6,5 +6,5 @@ PUBLIC pid_t getpid()
|
|||
{
|
||||
message m;
|
||||
|
||||
return(_syscall(MM, GETPID, &m));
|
||||
return(_syscall(MM, MINIX_GETPID, &m));
|
||||
}
|
||||
|
|
|
@ -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 \
|
||||
|
|
7
lib/syscall/getngid.s
Normal file
7
lib/syscall/getngid.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __getngid
|
||||
.define _getngid
|
||||
.align 2
|
||||
|
||||
_getngid:
|
||||
jmp __getngid
|
7
lib/syscall/getnuid.s
Normal file
7
lib/syscall/getnuid.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __getnuid
|
||||
.define _getnuid
|
||||
.align 2
|
||||
|
||||
_getnuid:
|
||||
jmp __getnuid
|
|
@ -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
|
||||
|
|
|
@ -5,3 +5,9 @@
|
|||
|
||||
_sleep:
|
||||
jmp __sleep
|
||||
|
||||
.extern __nanosleep
|
||||
.define _nanosleep
|
||||
|
||||
_nanosleep:
|
||||
jmp __nanosleep
|
||||
|
|
7
lib/syscall/vm_getphys.s
Executable file
7
lib/syscall/vm_getphys.s
Executable file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_getphys
|
||||
.define _vm_getphys
|
||||
.align 2
|
||||
|
||||
_vm_getphys:
|
||||
jmp __vm_getphys
|
7
lib/syscall/vm_getrefcount.s
Executable file
7
lib/syscall/vm_getrefcount.s
Executable file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_getrefcount
|
||||
.define _vm_getrefcount
|
||||
.align 2
|
||||
|
||||
_vm_getrefcount:
|
||||
jmp __vm_getrefcount
|
7
lib/syscall/vm_query_exit.s
Normal file
7
lib/syscall/vm_query_exit.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_query_exit
|
||||
.define _vm_query_exit
|
||||
.align 2
|
||||
|
||||
_vm_query_exit:
|
||||
jmp __vm_query_exit
|
7
lib/syscall/vm_remap.s
Executable file
7
lib/syscall/vm_remap.s
Executable file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_remap
|
||||
.define _vm_remap
|
||||
.align 2
|
||||
|
||||
_vm_remap:
|
||||
jmp __vm_remap
|
7
lib/syscall/vm_set_priv.s
Normal file
7
lib/syscall/vm_set_priv.s
Normal file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_set_priv
|
||||
.define _vm_set_priv
|
||||
.align 2
|
||||
|
||||
_vm_set_priv:
|
||||
jmp __vm_set_priv
|
7
lib/syscall/vm_unmap.s
Executable file
7
lib/syscall/vm_unmap.s
Executable file
|
@ -0,0 +1,7 @@
|
|||
.sect .text
|
||||
.extern __vm_unmap
|
||||
.define _vm_unmap
|
||||
.align 2
|
||||
|
||||
_vm_unmap:
|
||||
jmp __vm_unmap
|
Loading…
Reference in a new issue