Replaced old create/delete area syscalls with the new ones.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4313 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
9970840118
commit
50ba6835f7
@ -78,13 +78,13 @@ status_t sys_stop_watching(dev_t device, ino_t node, uint32 flags,
|
||||
port_id port, uint32 token);
|
||||
|
||||
// area functions
|
||||
region_id sys_vm_create_anonymous_region(const char *name, void **address, int addr_type,
|
||||
addr size, int wiring, int lock);
|
||||
area_id _kern_create_area(const char *name, void **address, uint32 addressSpec,
|
||||
size_t size, uint32 lock, uint32 protection);
|
||||
region_id sys_vm_clone_region(const char *name, void **address, int addr_type,
|
||||
region_id source_region, int mapping, int lock);
|
||||
region_id sys_vm_map_file(const char *name, void **address, int addr_type,
|
||||
addr size, int lock, int mapping, const char *path, off_t offset);
|
||||
int sys_vm_delete_region(region_id id);
|
||||
status_t _kern_delete_area(area_id area);
|
||||
int sys_vm_get_region_info(region_id id, vm_region_info *info);
|
||||
|
||||
/* kernel port functions */
|
||||
|
@ -221,10 +221,9 @@ int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_re
|
||||
case SYSCALL_WAIT_ON_TEAM:
|
||||
*call_ret = user_wait_for_team((team_id)arg0, (status_t *)arg1);
|
||||
break;
|
||||
case SYSCALL_VM_CREATE_ANONYMOUS_REGION:
|
||||
*call_ret = user_vm_create_anonymous_region(
|
||||
(char *)arg0, (void **)arg1, (int)arg2,
|
||||
(addr)arg3, (int)arg4, (int)arg5);
|
||||
case SYSCALL_CREATE_AREA:
|
||||
*call_ret = _user_create_area((char *)arg0, (void **)arg1, (uint32)arg2,
|
||||
(size_t)arg3, (uint32)arg4, (uint32)arg5);
|
||||
break;
|
||||
case SYSCALL_VM_CLONE_REGION:
|
||||
*call_ret = user_vm_clone_region(
|
||||
@ -240,8 +239,8 @@ int syscall_dispatcher(unsigned long call_num, void *arg_buffer, uint64 *call_re
|
||||
case SYSCALL_VM_FIND_REGION_BY_NAME:
|
||||
*call_ret = find_region_by_name((const char *)arg0);
|
||||
break;
|
||||
case SYSCALL_VM_DELETE_REGION:
|
||||
*call_ret = vm_delete_region(vm_get_current_user_aspace_id(), (region_id)arg0);
|
||||
case SYSCALL_DELETE_AREA:
|
||||
*call_ret = _user_delete_area((area_id)arg0);
|
||||
break;
|
||||
case SYSCALL_VM_GET_REGION_INFO:
|
||||
*call_ret = user_vm_get_region_info((region_id)arg0, (vm_region_info *)arg1);
|
||||
|
Loading…
Reference in New Issue
Block a user