Added/changed/fixed area syscalls.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4356 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2003-08-20 15:58:06 +00:00
parent 8655936935
commit 2f096f5a3e
2 changed files with 20 additions and 21 deletions
+11 -16
View File
@@ -17,26 +17,24 @@ create_area(const char *name, void **address, uint32 addressSpec, size_t size,
area_id area_id
clone_area(const char *name, void **dest_addr, uint32 addr_spec, clone_area(const char *name, void **address, uint32 addressSpec,
uint32 protection, area_id source) uint32 protection, area_id sourceArea)
{ {
// ToDo: Not 100% sure about the REGION_PRIVATE_MAP return _kern_clone_area(name, address, addressSpec, protection, sourceArea);
return sys_vm_clone_region(name, dest_addr, addr_spec, source, REGION_PRIVATE_MAP, protection);
} }
area_id area_id
find_area(const char *name) find_area(const char *name)
{ {
return sys_find_region_by_name(name); return _kern_find_area(name);
} }
area_id area_id
area_for(void *addr) area_for(void *address)
{ {
// ToDo: implement area_for() return _kern_area_for(address);
return B_ERROR;
} }
@@ -50,16 +48,14 @@ delete_area(area_id id)
status_t status_t
resize_area(area_id id, size_t newSize) resize_area(area_id id, size_t newSize)
{ {
// ToDo: implement resize_area() return _kern_resize_area(id, newSize);
return B_ERROR;
} }
status_t status_t
set_area_protection(area_id id, uint32 protection) set_area_protection(area_id id, uint32 protection)
{ {
// ToDo: implement set_area_protection() return _kern_set_area_protection(id, protection);
return B_ERROR;
} }
@@ -69,17 +65,16 @@ _get_area_info(area_id id, area_info *areaInfo, size_t size)
// size is not yet used, but may, if area_info changes // size is not yet used, but may, if area_info changes
(void)size; (void)size;
return sys_vm_get_region_info(id, (void *)areaInfo); return _kern_get_area_info(id, areaInfo);
} }
status_t status_t
_get_next_area_info(team_id team, int32 *cookie, area_info *ainfo, size_t size) _get_next_area_info(team_id team, int32 *cookie, area_info *areaInfo, size_t size)
{ {
// size is not yet used, but may, if area_info changes // size is not yet used, but may, if area_info changes
(void)size; (void)size;
// ToDo: implement _get_next_area_info() return _kern_get_next_area_info(team, cookie, areaInfo);
return B_ERROR;
} }
+9 -5
View File
@@ -110,6 +110,8 @@ SYSCALL2(sys_get_thread_info, 88)
SYSCALL3(sys_get_next_thread_info, 89) SYSCALL3(sys_get_next_thread_info, 89)
SYSCALL2(sys_get_team_info, 90) SYSCALL2(sys_get_team_info, 90)
SYSCALL2(sys_get_next_team_info, 91) SYSCALL2(sys_get_next_team_info, 91)
SYSCALL1(sys_kill_team, 39)
SYSCALL0(sys_get_current_team_id, 40)
/* image calls */ /* image calls */
SYSCALL2(sys_register_image, 114) SYSCALL2(sys_register_image, 114)
@@ -124,13 +126,15 @@ SYSCALL2(sys_stop_notifying, 120)
/* VM calls */ /* VM calls */
SYSCALL6(_kern_create_area, 29) SYSCALL6(_kern_create_area, 29)
SYSCALL6(sys_vm_clone_region, 30) SYSCALL5(_kern_clone_area, 30)
SYSCALL9(sys_vm_map_file, 31) SYSCALL9(sys_vm_map_file, 31)
SYSCALL1(_kern_delete_area, 32) SYSCALL1(_kern_delete_area, 32)
SYSCALL2(sys_vm_get_region_info, 33) SYSCALL2(_kern_get_area_info, 33)
SYSCALL1(sys_find_region_by_name, 34) SYSCALL1(_kern_find_area, 34)
SYSCALL1(sys_kill_team, 39) SYSCALL3(_kern_get_next_area_info, 122)
SYSCALL0(sys_get_current_team_id, 40) SYSCALL2(_kern_set_area_protection, 123)
SYSCALL2(_kern_resize_area, 124)
SYSCALL1(_kern_area_for, 125)
/* port syscalls */ /* port syscalls */
SYSCALL2(sys_port_create, 43) SYSCALL2(sys_port_create, 43)