Fix reverse gasket issue that was breaking watch dog timer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10779 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
andrewfish
2010-08-08 19:07:14 +00:00
parent d0d41b52e0
commit 2ec364f9bf
7 changed files with 25 additions and 14 deletions

View File

@@ -403,10 +403,8 @@ typedef void (*SET_TIMER_CALLBACK)(UINT64 delta);
UINTN
ReverseGasketUint64 (void *api, UINT64 a)
ReverseGasketUint64 (SET_TIMER_CALLBACK settimer_callback, UINT64 a)
{
SET_TIMER_CALLBACK settimer_callback = (SET_TIMER_CALLBACK)api;
(*settimer_callback)(a);
return 0;
}

View File

@@ -35,6 +35,7 @@ typedef UINT64 UINTN;
typedef UINTN (*GASKET_VOID) ();
typedef UINTN (*GASKET_UINTN) (UINTN);
typedef UINTN (*GASKET_UINT64) (UINT64);
typedef UINTN (*GASKET_UINTN_UINTN) (UINTN, UINTN);
typedef UINTN (*GASKET_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN);
typedef UINTN (*GASKET_UINTN_UINTN_UINTN_UINTN) (UINTN, UINTN, UINTN, UINTN);
@@ -141,9 +142,9 @@ GasketUintnUint16 (void *api, UINTN a, UINT16 b)
void
ReverseGasketUint64 (void *api, UINT64 a)
{
GASKET_UINTN func;
GASKET_UINT64 func;
func = (GASKET_UINTN)api;
func = (GASKET_UINT64)api;
func (a);
return;
}