]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UnixPkg/Sec/Ia32/Gasket.S
Port UnixPkg to also support X64. Currently only supports Unix x86_64 ABI. In the...
[mirror_edk2.git] / UnixPkg / Sec / Ia32 / Gasket.S
index f9a2b53faf7cd3f122abc407e821df8fabf15563..caeabf89ebe9a2e23a37fa14c563af736dfbd8b1 100644 (file)
@@ -16,7 +16,7 @@
 # on Leopard and _stat$INDOE64 on Snow Leopard. That is why we pass stat()\r
 # into one of these gaskets from C code.\r
 #\r
-# Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>\r
+# Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>\r
 # This program and the accompanying materials\r
 # are licensed and made available under the terms and conditions of the BSD License\r
 # which accompanies this distribution.  The full text of the license may be found at\r
@@ -235,7 +235,23 @@ _GasketUintnUint16:
   call  *%eax\r
   leave\r
   ret\r
-\r
+.globl _ReverseGasketUint64\r
+_ReverseGasketUint64:\r
+       pushl   %ebp\r
+       movl    %esp, %ebp\r
+       subl    $56, %esp\r
+       movl    12(%ebp), %eax\r
+       movl    %eax, -32(%ebp)\r
+       movl    16(%ebp), %eax\r
+       movl    %eax, -28(%ebp)\r
+       movl    8(%ebp), %eax\r
+       movl    %eax, -12(%ebp)\r
+       movl    -32(%ebp), %eax\r
+       movl    %eax, (%esp)\r
+       movl    -12(%ebp), %eax\r
+       call    *%eax\r
+       leave\r
+       ret\r
   .subsections_via_symbols\r
   \r
   #endif\r