fix(kernel/syscalls): cast syscall arguments to scarg type for call_time

Signed-off-by: EnderIce2 <enderice2@protonmail.com>
This commit is contained in:
EnderIce2 2025-03-22 01:44:46 +00:00
parent 79f2faf55b
commit f9476d8c57
No known key found for this signature in database
GPG Key ID: 2EE20AF089811A5A

View File

@ -1807,7 +1807,7 @@ typedef enum
/* Time */ /* Time */
/** @copydoc SYS_TIME */ /** @copydoc SYS_TIME */
#define call_time(t) syscall1(SYS_TIME, t) #define call_time(t) syscall1(SYS_TIME, (scarg)t)
/** @copydoc SYS_CLOCK_GETTIME */ /** @copydoc SYS_CLOCK_GETTIME */
#define call_clock_gettime(clockid, tp) syscall2(SYS_CLOCK_GETTIME, (scarg)clockid, (scarg)tp) #define call_clock_gettime(clockid, tp) syscall2(SYS_CLOCK_GETTIME, (scarg)clockid, (scarg)tp)