From: Ben Gras Date: Thu, 11 Dec 2008 14:37:42 +0000 (+0000) Subject: slight args change X-Git-Tag: v3.1.4~196 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/style.css?a=commitdiff_plain;h=6cfe4bdd2d716caa569fa85b99c591da1863d908;p=minix.git slight args change --- diff --git a/lib/syslib/vm_map_phys.c b/lib/syslib/vm_map_phys.c index 5eef16186..e539fa59c 100644 --- a/lib/syslib/vm_map_phys.c +++ b/lib/syslib/vm_map_phys.c @@ -1,14 +1,12 @@ #define _SYSTEM 1 #include -#define vm_map_phys _vm_map_phys -#define vm_unmap_phys _vm_unmap_phys #include #include #include #include #include -PUBLIC void *vm_map_phys(endpoint_t who, size_t len, void *phaddr) +PUBLIC void *vm_map_phys(endpoint_t who, void *phaddr, size_t len) { message m; int r; @@ -17,7 +15,7 @@ PUBLIC void *vm_map_phys(endpoint_t who, size_t len, void *phaddr) m.VMMP_PHADDR = phaddr; m.VMMP_LEN = len; - r = _syscall(VM_PROC_NR, VM_MAP_PHYS, &m); + r = _taskcall(VM_PROC_NR, VM_MAP_PHYS, &m); if(r != OK) return MAP_FAILED; @@ -32,6 +30,6 @@ PUBLIC int vm_unmap_phys(endpoint_t who, void *vaddr, size_t len) m.VMUP_EP = who; m.VMUP_VADDR = vaddr; - return _syscall(VM_PROC_NR, VM_UNMAP_PHYS, &m); + return _taskcall(VM_PROC_NR, VM_UNMAP_PHYS, &m); }