]> git.saurik.com Git - apple/libc.git/blobdiff - i386/sys/i386_gettimeofday.s
Libc-594.9.5.tar.gz
[apple/libc.git] / i386 / sys / i386_gettimeofday.s
index e32587cc184769e8d1dae854d98609852ab08965..3d50e2dbbb0acf96e2fc2690f9dd4ec416d35c27 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1999-2005 Apple Computer, Inc. All rights reserved.
+ * Copyright (c) 1999-2006 Apple Computer, Inc. All rights reserved.
  *
  * @APPLE_LICENSE_HEADER_START@
  * 
@@ -22,7 +22,7 @@
  */
 /* Copyright 1998 Apple Computer, Inc. */
 
-#include <SYS.h>
+#include <architecture/i386/asm_help.h>
 
 #define        __APPLE_API_PRIVATE
 #include <machine/cpu_capabilities.h>
 LABEL(___commpage_gettimeofday)
        mov             $ _COMM_PAGE_GETTIMEOFDAY,%eax
        jmp             *%eax
-
-/*
- *     This syscall is special cased: the timeval is returned in eax/edx.
- */
-LABEL(___gettimeofday)
-    UNIX_SYSCALL_INT_NONAME(gettimeofday,0)
-       mov             4(%esp),%ecx
-       mov             %eax,(%ecx)
-       mov             %edx,4(%ecx)
-       xor             %eax,%eax
-       ret