1) Replace IA32API with EFIAPI to standardise the calling convention.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@7499 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
qwang12 2009-02-11 05:50:37 +00:00
parent 98b15cf156
commit 4798ea5b2a
2 changed files with 18 additions and 22 deletions

View File

@ -22,8 +22,6 @@ Abstract:
#include "Tiano.h"
#define IA32API __cdecl
typedef struct {
UINT32 RegEax;
UINT32 RegEbx;
@ -139,7 +137,7 @@ typedef struct {
(((UINT32) (f) << 16) | ((UINT32) (m) << 8) | ((UINT32) (s)))
VOID
IA32API
EFIAPI
EfiHalt (
VOID
);
@ -153,7 +151,7 @@ Returns:
None
--*/
VOID
IA32API
EFIAPI
EfiWbinvd (
VOID
);
@ -167,7 +165,7 @@ Returns:
None
--*/
VOID
IA32API
EFIAPI
EfiInvd (
VOID
);
@ -181,7 +179,7 @@ Returns:
None
--*/
VOID
IA32API
EFIAPI
EfiCpuid (
IN UINT32 RegisterInEax,
OUT EFI_CPUID_REGISTER *Regs
@ -198,7 +196,7 @@ Returns:
--*/
VOID
IA32API
EFIAPI
EfiCpuidExt (
IN UINT32 RegisterInEax,
IN UINT32 CacheLevel,
@ -219,7 +217,7 @@ Returns:
;
UINT64
IA32API
EFIAPI
EfiReadMsr (
IN UINT32 Index
);
@ -234,7 +232,7 @@ Returns:
Return the read data
--*/
VOID
IA32API
EFIAPI
EfiWriteMsr (
IN UINT32 Index,
IN UINT64 Value
@ -250,7 +248,7 @@ Returns:
None
--*/
UINT64
IA32API
EFIAPI
EfiReadTsc (
VOID
);
@ -264,7 +262,7 @@ Returns:
Return the read data
--*/
VOID
IA32API
EFIAPI
EfiDisableCache (
VOID
);
@ -278,7 +276,7 @@ Returns:
None
--*/
VOID
IA32API
EFIAPI
EfiEnableCache (
VOID
);
@ -292,7 +290,7 @@ Returns:
None
--*/
UINT32
IA32API
EFIAPI
EfiGetEflags (
VOID
);
@ -306,7 +304,7 @@ Returns:
Return the Eflags value
--*/
VOID
IA32API
EFIAPI
EfiDisableInterrupts (
VOID
);
@ -320,7 +318,7 @@ Returns:
None
--*/
VOID
IA32API
EFIAPI
EfiEnableInterrupts (
VOID
);
@ -336,7 +334,7 @@ Returns:
VOID
IA32API
EFIAPI
EfiCpuVersion (
IN UINT16 *FamilyId, OPTIONAL
IN UINT8 *Model, OPTIONAL

View File

@ -23,13 +23,11 @@ Abstract:
#include "Thunk16Lib.h"
#include "EfiCommonLib.h"
#define IA32API EFIAPI
extern CONST UINTN mCode16Size;
extern
IA32_REGISTER_SET *
IA32API
EFIAPI
_Thunk16 (
IN OUT IA32_REGISTER_SET *RegisterSet,
IN UINT32 ThunkFlags,
@ -38,19 +36,19 @@ _Thunk16 (
extern
VOID
IA32API
EFIAPI
_Code16Addr (
VOID
);
VOID
IA32API
EFIAPI
AsmFxRestore (
IN CONST IA32_FX_BUFFER *Buffer
);
VOID
IA32API
EFIAPI
AsmFxSave (
OUT IA32_FX_BUFFER *Buffer
);