X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/2d21ac55c334faf3a56e5634905ed6987fc787d4..13f56ec4e58bf8687e2a68032c093c0213dd519b:/libsyscall/custom/__gettimeofday.s diff --git a/libsyscall/custom/__gettimeofday.s b/libsyscall/custom/__gettimeofday.s index aa1a7d1f0..1dbf19c77 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. @@ -68,17 +54,6 @@ LABEL(___gettimeofday) xorl %eax, %eax ret -#elif defined(__arm__) -/* - * This syscall is special cased: the timeval is returned in r0/r1. - */ -MI_ENTRY_POINT(___gettimeofday) - mov r3, r0 // save ptr to timeval - SYSCALL_NONAME(gettimeofday,2) - stmia r3, { r0, r1 } - mov r0, #0 - bx lr - #else #error Unsupported architecture #endif