From 5fdc928d3d29fdc93ad00cea5f5c877a19013d44 Mon Sep 17 00:00:00 2001 From: Luca Dariz Date: Sun, 12 Feb 2023 18:03:11 +0100 Subject: fix rpc time value for 64 bit * include/mach/task_info.h: use rpc variant of time_value_t * include/mach/thread_info.h: Likewise * kern/mach_clock.c: use rpc variant of time_value_t in read_time_stamp() * kern/mach_clock.h: Likewise * kern/thread.c: use rpc variant of thread_read_times() * kern/timer.h_ add thread_read_times_rpc() by converting time_value_t to the corresponding rpc structures inline. Message-Id: <20230212170313.1501404-5-luca@orpolo.org> --- include/mach/thread_info.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/mach/thread_info.h') diff --git a/include/mach/thread_info.h b/include/mach/thread_info.h index 569c8c84..46c1ceca 100644 --- a/include/mach/thread_info.h +++ b/include/mach/thread_info.h @@ -55,8 +55,8 @@ typedef integer_t thread_info_data_t[THREAD_INFO_MAX]; #define THREAD_BASIC_INFO 1 /* basic information */ struct thread_basic_info { - time_value_t user_time; /* user run time */ - time_value_t system_time; /* system run time */ + rpc_time_value_t user_time; /* user run time */ + rpc_time_value_t system_time; /* system run time */ integer_t cpu_usage; /* scaled cpu usage percentage */ integer_t base_priority; /* base scheduling priority */ integer_t cur_priority; /* current scheduling priority */ @@ -65,7 +65,7 @@ struct thread_basic_info { integer_t suspend_count; /* suspend count for thread */ integer_t sleep_time; /* number of seconds that thread has been sleeping */ - time_value_t creation_time; /* time stamp of creation */ + rpc_time_value_t creation_time; /* time stamp of creation */ }; typedef struct thread_basic_info thread_basic_info_data_t; -- cgit v1.2.3