mirror of https://github.com/acidanthera/audk.git
1) Update SetPeiServicesTablePointer's prototype add CONST modifier.
2) Move STRING_REF from MdePkg/Include/Uefi/UefiBaseType.h to IntelFramework/Include/Protocol/FrameworkHii.h. 3) Move RELOFST from MdePkg/Include/Uefi/UefiInternalFormRepresentation.h to IntelFramework/Include/Protocol/FrameworkHii.h. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6165 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
19fd6450a3
commit
a86fda431e
|
@ -39,7 +39,7 @@ GetPeiServicesTablePointer (
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetPeiServicesTablePointer (
|
SetPeiServicesTablePointer (
|
||||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
IN CONST EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||||
);
|
);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -48,8 +48,6 @@ typedef UINT64 EFI_LBA;
|
||||||
typedef UINT64 EFI_PHYSICAL_ADDRESS;
|
typedef UINT64 EFI_PHYSICAL_ADDRESS;
|
||||||
typedef UINT64 EFI_VIRTUAL_ADDRESS;
|
typedef UINT64 EFI_VIRTUAL_ADDRESS;
|
||||||
|
|
||||||
typedef UINT16 STRING_REF;
|
|
||||||
|
|
||||||
///
|
///
|
||||||
/// EFI Time Abstraction:
|
/// EFI Time Abstraction:
|
||||||
/// Year: 1998 - 20XX
|
/// Year: 1998 - 20XX
|
||||||
|
|
|
@ -23,8 +23,6 @@
|
||||||
///
|
///
|
||||||
/// The following types are currently defined:
|
/// The following types are currently defined:
|
||||||
///
|
///
|
||||||
typedef UINT32 RELOFST;
|
|
||||||
|
|
||||||
typedef VOID* EFI_HII_HANDLE;
|
typedef VOID* EFI_HII_HANDLE;
|
||||||
typedef CHAR16* EFI_STRING;
|
typedef CHAR16* EFI_STRING;
|
||||||
typedef UINT16 EFI_IMAGE_ID;
|
typedef UINT16 EFI_IMAGE_ID;
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include <Library/PeiServicesTablePointerLib.h>
|
#include <Library/PeiServicesTablePointerLib.h>
|
||||||
#include <Library/DebugLib.h>
|
#include <Library/DebugLib.h>
|
||||||
|
|
||||||
STATIC EFI_PEI_SERVICES **gPeiServices;
|
STATIC CONST EFI_PEI_SERVICES **gPeiServices;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The function cache the pointer of PEI services to global variable.
|
The function cache the pointer of PEI services to global variable.
|
||||||
|
@ -29,7 +29,7 @@ STATIC EFI_PEI_SERVICES **gPeiServices;
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetPeiServicesTablePointer (
|
SetPeiServicesTablePointer (
|
||||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
IN CONST EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
gPeiServices = PeiServicesTablePointer;
|
gPeiServices = PeiServicesTablePointer;
|
||||||
|
@ -51,7 +51,7 @@ GetPeiServicesTablePointer (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
ASSERT (gPeiServices != NULL);
|
ASSERT (gPeiServices != NULL);
|
||||||
return (CONST EFI_PEI_SERVICES **) gPeiServices;
|
return gPeiServices;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ GetPeiServicesTablePointer (
|
||||||
EFI_STATUS
|
EFI_STATUS
|
||||||
EFIAPI
|
EFIAPI
|
||||||
PeiServicesTablePointerLibConstructor (
|
PeiServicesTablePointerLibConstructor (
|
||||||
IN EFI_PEI_FILE_HANDLE FileHandle,
|
IN EFI_PEI_FILE_HANDLE FileHandle,
|
||||||
IN EFI_PEI_SERVICES **PeiServices
|
IN CONST EFI_PEI_SERVICES **PeiServices
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
gPeiServices = PeiServices;
|
gPeiServices = PeiServices;
|
||||||
|
|
|
@ -65,7 +65,7 @@ GetPeiServicesTablePointer (
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetPeiServicesTablePointer (
|
SetPeiServicesTablePointer (
|
||||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
IN CONST EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
IA32_DESCRIPTOR Idtr;
|
IA32_DESCRIPTOR Idtr;
|
||||||
|
|
|
@ -48,7 +48,7 @@ GetPeiServicesTablePointer (
|
||||||
VOID
|
VOID
|
||||||
EFIAPI
|
EFIAPI
|
||||||
SetPeiServicesTablePointer (
|
SetPeiServicesTablePointer (
|
||||||
IN EFI_PEI_SERVICES ** PeiServicesTablePointer
|
IN CONST EFI_PEI_SERVICES ** PeiServicesTablePointer
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
AsmWriteKr7 ((UINT64)(UINTN)PeiServicesTablePointer);
|
AsmWriteKr7 ((UINT64)(UINTN)PeiServicesTablePointer);
|
||||||
|
|
Loading…
Reference in New Issue