From 366a7cf67c07b9c3a3b88c2b49f20ecef29cc706 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 24 Sep 2002 00:09:38 +0000 Subject: [PATCH] Fixed a prototype. Updated several structures because of the int/int32/status_t change. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1139 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/kernel/syscalls.h | 2 +- headers/os/kernel/vm_types.h | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/headers/os/kernel/syscalls.h b/headers/os/kernel/syscalls.h index 9dc4bbfa9c..5a7e7de6db 100755 --- a/headers/os/kernel/syscalls.h +++ b/headers/os/kernel/syscalls.h @@ -49,7 +49,7 @@ int sys_suspend_thread(thread_id tid); int sys_resume_thread(thread_id tid); int sys_kill_thread(thread_id tid); -status_t sys_wait_on_thread(thread_id tid, int *retcode); +status_t sys_wait_on_thread(thread_id tid, status_t *retcode); int sys_kill_team(team_id tid); team_id sys_get_current_team_id(); diff --git a/headers/os/kernel/vm_types.h b/headers/os/kernel/vm_types.h index c9c5ad9a47..4ad5470749 100755 --- a/headers/os/kernel/vm_types.h +++ b/headers/os/kernel/vm_types.h @@ -24,7 +24,7 @@ typedef struct vm_page { struct vm_page *cache_prev; struct vm_page *cache_next; - unsigned int ref_count; + int32 ref_count; unsigned int type : 2; unsigned int state : 3; @@ -54,7 +54,7 @@ typedef struct vm_cache_ref { struct vm_region *region_list; - int ref_count; + int32 ref_count; } vm_cache_ref; // vm_cache @@ -87,7 +87,7 @@ typedef struct vm_region { addr size; int lock; int wiring; - int ref_count; + int32 ref_count; struct vm_cache_ref *cache_ref; off_t cache_offset; @@ -122,8 +122,8 @@ typedef struct vm_address_space { vm_translation_map translation_map; char *name; aspace_id id; - int ref_count; - int fault_count; + int32 ref_count; + int32 fault_count; int state; addr scan_va; addr working_set_size;