summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-01 00:37:44 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-12-01 00:37:44 +0100
commit43572e94214186d6094407ec51815434ddd3e256 (patch)
treee373bdb8c65f13c1c5fa91647347205fab715447 /include
parentc7c51ea1940ccb558ac52b08d294f33d17088842 (diff)
gsync: Use vm_address_t instead of vm_offset_t
vm_offset_t are offsets inside memory objects, not actual addresses. * include/mach/gnumach.defs (gsync_wait, gsync_wake, gsync_requeue): Use vm_address_t instead of vm_offset_t.
Diffstat (limited to 'include')
-rw-r--r--include/mach/gnumach.defs8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mach/gnumach.defs b/include/mach/gnumach.defs
index d423a10a..531b5d4d 100644
--- a/include/mach/gnumach.defs
+++ b/include/mach/gnumach.defs
@@ -98,7 +98,7 @@ routine register_new_task_notification(
* - GSYNC_TIMED: The call only blocks for MSEC milliseconds. */
routine gsync_wait(
task : task_t;
- addr : vm_offset_t;
+ addr : vm_address_t;
val1 : unsigned;
val2 : unsigned;
msec : natural_t;
@@ -117,7 +117,7 @@ routine gsync_wait(
* and because the return value rarely matters. */
simpleroutine gsync_wake(
task : task_t;
- addr : vm_offset_t;
+ addr : vm_address_t;
val : unsigned;
flags : int);
@@ -133,8 +133,8 @@ simpleroutine gsync_wake(
* with 'gsync_wake'. */
simpleroutine gsync_requeue(
task : task_t;
- src_addr : vm_offset_t;
- dst_addr : vm_offset_t;
+ src_addr : vm_address_t;
+ dst_addr : vm_address_t;
wake_one : boolean_t;
flags : int);