mirror of https://github.com/acidanthera/audk.git
changed the guid assignment from constant array to hi and low UINT64s (Intel compiler was using a global variable to assign an array which is not OK at run time)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@2469 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e8d4831b19
commit
aa156393bf
|
@ -45,7 +45,10 @@ Returns:
|
|||
|
||||
--*/
|
||||
{
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
EfiCallEsalService (
|
||||
&Guid,
|
||||
|
@ -91,7 +94,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (&Guid, GetTime, (UINT64) Time, (UINT64) Capabilities, 0, 0, 0, 0, 0);
|
||||
return ReturnReg.Status;
|
||||
|
@ -119,7 +125,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (&Guid, SetTime, (UINT64) Time, 0, 0, 0, 0, 0, 0);
|
||||
return ReturnReg.Status;
|
||||
|
@ -151,7 +160,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (&Guid, GetWakeupTime, (UINT64) Enabled, (UINT64) Pending, (UINT64) Time, 0, 0, 0, 0);
|
||||
return ReturnReg.Status;
|
||||
|
@ -182,7 +194,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_RTC_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (&Guid, SetWakeupTime, (UINT64) Enable, (UINT64) Time, 0, 0, 0, 0, 0);
|
||||
return ReturnReg.Status;
|
||||
|
@ -221,7 +236,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (
|
||||
&Guid,
|
||||
|
@ -268,7 +286,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (
|
||||
&Guid,
|
||||
|
@ -315,7 +336,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VARIABLE_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (
|
||||
&Guid,
|
||||
|
@ -353,7 +377,10 @@ Returns:
|
|||
--*/
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_MTC_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (&Guid, GetNextHighMonotonicCount, (UINT64) HighCount, 0, 0, 0, 0, 0, 0);
|
||||
return (EFI_STATUS) ReturnReg.Status;
|
||||
|
@ -467,7 +494,10 @@ EfiSetVirtualAddressMap (
|
|||
)
|
||||
{
|
||||
SAL_RETURN_REGS ReturnReg;
|
||||
EFI_GUID Guid = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID;
|
||||
EFI_GUID Guid;
|
||||
|
||||
*((UINT64 *) &Guid) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_LO;
|
||||
*(((UINT64 *)&Guid) + 1) = EFI_EXTENDED_SAL_VIRTUAL_SERVICES_PROTOCOL_GUID_HI;
|
||||
|
||||
ReturnReg = EfiCallEsalService (
|
||||
&Guid,
|
||||
|
|
Loading…
Reference in New Issue