diff options
author | zwei4 <david.wei@intel.com> | 2017-05-11 14:14:48 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-05-11 14:14:48 +0800 |
commit | 9085457c819add4d580882a047f49c22859833ac (patch) | |
tree | f9791adebee1a60954dd8513d95a6897ebe7ec94 /Platform/BroxtonPlatformPkg/Common/PlatformSmm | |
parent | b48d585a213b1dbb925ac108fe7235cd087bc5c0 (diff) | |
download | edk2-platforms-9085457c819add4d580882a047f49c22859833ac.tar.xz |
Fix some GCC build errors.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Platform/BroxtonPlatformPkg/Common/PlatformSmm')
-rw-r--r-- | Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c index e0c6c7138f..b0c96267d0 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c @@ -124,6 +124,7 @@ CpuSmmSxWorkAround( **/
EFI_STATUS
+EFIAPI
InitializePlatformSmm (
IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE *SystemTable
@@ -210,7 +211,7 @@ InitializePlatformSmm ( PowerButtonContext.Phase = EfiPowerButtonEntry;
Status = PowerButtonDispatch->Register(
PowerButtonDispatch,
- PowerButtonCallback,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)PowerButtonCallback,
&PowerButtonContext,
&Handle
);
@@ -235,7 +236,7 @@ InitializePlatformSmm ( Status = SxDispatch->Register (
SxDispatch,
- SxSleepEntryCallBack,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)SxSleepEntryCallBack,
&EntryDispatchContext,
&Handle
);
@@ -244,7 +245,7 @@ InitializePlatformSmm ( Status = SxDispatch->Register (
SxDispatch,
- S4S5CallBack,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)S4S5CallBack,
&EntryDispatchContext,
&Handle
);
@@ -254,7 +255,7 @@ InitializePlatformSmm ( Status = SxDispatch->Register (
SxDispatch,
- S4S5CallBack,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)S4S5CallBack,
&EntryDispatchContext,
&Handle
);
@@ -262,7 +263,7 @@ InitializePlatformSmm ( Status = SxDispatch->Register (
SxDispatch,
- S5SleepAcLossCallBack,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)S5SleepAcLossCallBack,
&EntryDispatchContext,
&Handle
);
@@ -284,7 +285,7 @@ InitializePlatformSmm ( SwContext.SwSmiInputValue = ACPI_ENABLE;
Status = SwDispatch->Register (
SwDispatch,
- EnableAcpiCallback,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)EnableAcpiCallback,
&SwContext,
&Handle
);
@@ -296,7 +297,7 @@ InitializePlatformSmm ( SwContext.SwSmiInputValue = ACPI_DISABLE;
Status = SwDispatch->Register (
SwDispatch,
- DisableAcpiCallback,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)DisableAcpiCallback,
&SwContext,
&Handle
);
@@ -309,7 +310,7 @@ InitializePlatformSmm ( Status = SwDispatch->Register (
SwDispatch,
- TpmPtsSmbsCallback,
+ (EFI_SMM_HANDLER_ENTRY_POINT2)TpmPtsSmbsCallback,
&SwContext,
&Handle
);
@@ -344,7 +345,7 @@ InitializePlatformSmm ( IchnContext.Type = mTco1Sources[Index];
Status = IchnDispatch->Register(
IchnDispatch,
- DummyTco1Callback,
+ (EFI_SMM_ICHN_DISPATCH)DummyTco1Callback,
&IchnContext,
&Handle
);
|