X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/36401178fd6817c043cc00b0c00c7f723e58efae..143464d58d2bd6378e74eec636961ceb0d32fb91:/libsyscall/custom/__gettimeofday.s diff --git a/libsyscall/custom/__gettimeofday.s b/libsyscall/custom/__gettimeofday.s index c43ee761e..0076f49ce 100644 --- a/libsyscall/custom/__gettimeofday.s +++ b/libsyscall/custom/__gettimeofday.s @@ -29,21 +29,7 @@ #include "SYS.h" -#if defined(__ppc__) || defined(__ppc64__) - -/* This syscall is special cased: the timeval is returned in r3/r4. - * Note also that the "seconds" field of the timeval is a long, so - * it's size is mode dependent. - */ -MI_ENTRY_POINT(___gettimeofday) - mr r12,r3 // save ptr to timeval - SYSCALL_NONAME(gettimeofday,0) - stg r3,0(r12) // "stw" in 32-bit mode, "std" in 64-bit mode - stw r4,GPR_BYTES(r12) - li r3,0 - blr - -#elif defined(__i386__) +#if defined(__i386__) /* * This syscall is special cased: the timeval is returned in eax/edx. @@ -62,7 +48,7 @@ LABEL(___gettimeofday) * This syscall is special cased: the timeval is returned in rax:rdx. */ LABEL(___gettimeofday) - UNIX_SYSCALL_NONAME(gettimeofday,0) + UNIX_SYSCALL_NONAME(gettimeofday,0,cerror_nocancel) movq %rax, (%rdi) movl %edx, 8(%rdi) xorl %eax, %eax