summary refs log tree commit diff stats
path: root/include/user/safe-syscall.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/user/safe-syscall.h')
-rw-r--r--include/user/safe-syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/user/safe-syscall.h b/include/user/safe-syscall.h
index 27b71cdbd8..aa075f4d5c 100644
--- a/include/user/safe-syscall.h
+++ b/include/user/safe-syscall.h
@@ -134,7 +134,7 @@ extern char safe_syscall_start[];
 extern char safe_syscall_end[];
 
 #define safe_syscall(...)                                                 \
-    safe_syscall_base(&((TaskState *)thread_cpu->opaque)->signal_pending, \
+    safe_syscall_base(&get_task_state(thread_cpu)->signal_pending,        \
                       __VA_ARGS__)
 
 #endif