diff options
author | zwei4 <david.wei@intel.com> | 2017-05-26 11:13:42 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-05-26 11:13:42 +0800 |
commit | 673afaa1174832eeab98ccfd89e7d1504aecc1f5 (patch) | |
tree | 2bdb88319c033b7427600d5336fa11fc9504dd9e /Platform/BroxtonPlatformPkg/Common/PlatformSmm | |
parent | 22c9d0932dca0d0d959faf8399c8f220ba5ff7d2 (diff) | |
download | edk2-platforms-673afaa1174832eeab98ccfd89e7d1504aecc1f5.tar.xz |
GCC build support.
Change code which is not compatible with GCC.
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 | 12 | ||||
-rw-r--r-- | Platform/BroxtonPlatformPkg/Common/PlatformSmm/SmmPlatform.h | 15 |
2 files changed, 26 insertions, 1 deletions
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c index b0c96267d0..024384fe85 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/Platform.c @@ -78,6 +78,7 @@ DevicePathSize ( );
EFI_STATUS
+EFIAPI
S5SleepWakeOnRtcCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -441,6 +442,7 @@ Stall ( EFI_STATUS
+EFIAPI
SmmReadyToBootCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -484,6 +486,7 @@ SmmReadyToBootCallback ( **/
EFI_STATUS
+EFIAPI
SxSleepEntryCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -623,6 +626,7 @@ SetAfterG3On ( **/
EFI_STATUS
+EFIAPI
PowerButtonCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -681,6 +685,7 @@ PowerButtonCallback ( VOID
+EFIAPI
PmeCallback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
@@ -691,6 +696,7 @@ PmeCallback ( EFI_STATUS
+EFIAPI
S5SleepAcLossCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -711,6 +717,7 @@ S5SleepAcLossCallBack ( EFI_STATUS
+EFIAPI
S4S5CallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -754,6 +761,7 @@ S4S5CallBack ( **/
EFI_STATUS
+EFIAPI
EnableAcpiCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -822,6 +830,7 @@ EnableAcpiCallback ( **/
EFI_STATUS
+EFIAPI
DisableAcpiCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -843,6 +852,7 @@ DisableAcpiCallback ( VOID
+EFIAPI
DummyTco1Callback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
@@ -877,6 +887,7 @@ DevicePathSize ( EFI_STATUS
+EFIAPI
S5SleepWakeOnRtcCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -1064,6 +1075,7 @@ BcdToHex( **/
EFI_STATUS
+EFIAPI
TpmPtsSmbsCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
diff --git a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/SmmPlatform.h b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/SmmPlatform.h index 0689f31647..44c1cc4b82 100644 --- a/Platform/BroxtonPlatformPkg/Common/PlatformSmm/SmmPlatform.h +++ b/Platform/BroxtonPlatformPkg/Common/PlatformSmm/SmmPlatform.h @@ -1,7 +1,7 @@ /** @file
Header file for Platform Smm driver.
- Copyright (c) 1999 - 2016, Intel Corporation. All rights reserved.<BR>
+ Copyright (c) 1999 - 2017, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
@@ -108,6 +108,7 @@ typedef struct { // Callback function prototypes
//
EFI_STATUS
+EFIAPI
PowerButtonCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -116,6 +117,7 @@ PowerButtonCallback ( );
EFI_STATUS
+EFIAPI
S5SleepWakeOnLanCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -124,6 +126,7 @@ S5SleepWakeOnLanCallBack ( );
EFI_STATUS
+EFIAPI
S5SleepAcLossCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -133,6 +136,7 @@ S5SleepAcLossCallBack ( EFI_STATUS
+EFIAPI
S4S5CallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -141,6 +145,7 @@ S4S5CallBack ( );
EFI_STATUS
+EFIAPI
EnableAcpiCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -149,6 +154,7 @@ EnableAcpiCallback ( );
EFI_STATUS
+EFIAPI
DisableAcpiCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -157,6 +163,7 @@ DisableAcpiCallback ( );
EFI_STATUS
+EFIAPI
SmmReadyToBootCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -165,18 +172,21 @@ SmmReadyToBootCallback ( );
VOID
+EFIAPI
DummyTco1Callback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
);
VOID
+EFIAPI
PmeCallback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
);
VOID
+EFIAPI
PerrSerrCallback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
@@ -184,6 +194,7 @@ PerrSerrCallback ( VOID
+EFIAPI
EnableWatchdogCallback (
IN EFI_HANDLE DispatchHandle,
IN EFI_SMM_ICHN_DISPATCH_CONTEXT *DispatchContext
@@ -199,6 +210,7 @@ TurnOffVregUsb ( );
EFI_STATUS
+EFIAPI
SxSleepEntryCallBack (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
@@ -212,6 +224,7 @@ SaveRuntimeScriptTable ( );
EFI_STATUS
+EFIAPI
TpmPtsSmbsCallback (
IN EFI_HANDLE DispatchHandle,
IN CONST VOID *DispatchContext,
|