summaryrefslogtreecommitdiff
path: root/UnixPkg/Sec/Ia32/GasketTemplate.c
diff options
context:
space:
mode:
Diffstat (limited to 'UnixPkg/Sec/Ia32/GasketTemplate.c')
-rw-r--r--UnixPkg/Sec/Ia32/GasketTemplate.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/UnixPkg/Sec/Ia32/GasketTemplate.c b/UnixPkg/Sec/Ia32/GasketTemplate.c
index bb703bf631..d85a26a53e 100644
--- a/UnixPkg/Sec/Ia32/GasketTemplate.c
+++ b/UnixPkg/Sec/Ia32/GasketTemplate.c
@@ -7,7 +7,7 @@
the assembly functions.
Copyright (c) 2006 - 2009, Intel Corporation. All rights reserved.<BR>
-Portions copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
+Portions copyright (c) 2008 - 2010, Apple Inc. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -36,6 +36,7 @@ typedef UINT32 UINTN;
typedef int (*GASKET_VOID) ();
typedef int (*GASKET_UINTN) (UINTN);
typedef int (*GASKET_UINT64) (UINT64);
+typedef int (*GASKET_UINT64UINT64) (UINT64, UINT64);
typedef int (*GASKET_UINTN_UINTN) (UINTN, UINTN);
typedef int (*GASKET_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN);
typedef int (*GASKET_UINTN_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN, UINTN);
@@ -149,4 +150,14 @@ ReverseGasketUint64 (void *api, UINT64 a)
return;
}
+void
+ReverseGasketUint64UINT64 (void *api, UINT64 a, UINT64 b)
+{
+ GASKET_UINT64UINT64 func;
+
+ func = (GASKET_UINT64UINT64)api;
+ func (a, b);
+ return;
+}
+