diff options
author | zwei4 <david.wei@intel.com> | 2017-08-03 17:10:08 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-08-04 16:48:43 +0800 |
commit | 4cf5e270e746af032aeef7f3bac2b676952342e3 (patch) | |
tree | cbae24a89b898ab496d92cbcfb46248dccda7a53 /Silicon/BroxtonSoC/BroxtonSiPkg | |
parent | ee4bdd327420aed76eefbf9f69dbba9e6df4d7d8 (diff) | |
download | edk2-platforms-4cf5e270e746af032aeef7f3bac2b676952342e3.tar.xz |
Enable source level debug.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Silicon/BroxtonSoC/BroxtonSiPkg')
-rw-r--r-- | Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c | 4 | ||||
-rw-r--r-- | Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c index 01ac0fa66e..5ca7c0bf6b 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Library/GpioLib/GpioLib.c @@ -306,9 +306,9 @@ ConfigureDirectIrqWakeEvent ( // program Event Trigger Mapping
//
d64 = (LShiftU64 ((UINT64) GpioRead (Community, EVMAP_0 + 4), 32)) | GpioRead (Community, EVMAP_0);
- d64 |= LShiftU64 ((UINT64) Index / EVENT_MUX_SIZE, ((Index % EVENT_MUX_SIZE) << 2));
+ d64 |= LShiftU64 ((UINT64) (Index / EVENT_MUX_SIZE), ((Index % EVENT_MUX_SIZE) << 2));
GpioWrite (Community, EVMAP_0, (UINT32) (d64 & 0xFFFFFFFF));
- GpioWrite (Community, EVMAP_0 + 4, (UINT32) (d64 >> 32));
+ GpioWrite (Community, EVMAP_0 + 4, (UINT32) RShiftU64(d64, 32));
//
// program Event Trigger Output Enable
diff --git a/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c index 075c760ccc..66c7115feb 100644 --- a/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c +++ b/Silicon/BroxtonSoC/BroxtonSiPkg/Txe/Library/HeciMsgLib/HeciMsgLib.c @@ -291,7 +291,7 @@ HeciWriteNVMFile ( SendNVMWrite->Size = (UINT32) DataSize;
SendNVMWrite->Truncate = (Truncate) ? 1 : 0;
SendNVMWrite->SrcAddressLower = (UINT32) (UINTN) TempBuffer;
- SendNVMWrite->SrcAddressUpper = (UINT32) ((PHYSICAL_ADDRESS) (UINTN) TempBuffer >> 32);
+ SendNVMWrite->SrcAddressUpper = (UINT32) RShiftU64 ((PHYSICAL_ADDRESS) (UINTN) TempBuffer, 32);
DEBUG ((EFI_D_INFO, "TempBuffer: 0x%x \n", TempBuffer));
DEBUG ((EFI_D_INFO, "WRITE_TO_RPMB_STORAGE_CMD_REQ_DATA size if %x\n", sizeof(WRITE_TO_RPMB_STORAGE_CMD_REQ_DATA)));
@@ -383,7 +383,7 @@ HeciReadNVMFile( SendNVMRead->Offset = Offset;
SendNVMRead->Size = (UINT16)*DataSize;
SendNVMRead->DstAddressLower = (UINT32) (UINTN) TempBuffer;
- SendNVMRead->DstAddressUpper = (UINT32) ((PHYSICAL_ADDRESS) (UINTN) TempBuffer >> 32);;
+ SendNVMRead->DstAddressUpper = (UINT32) RShiftU64 ((PHYSICAL_ADDRESS) (UINTN) TempBuffer, 32);
DEBUG((EFI_D_INFO, "TempBuffer: 0x%x \n", TempBuffer));
DEBUG ((EFI_D_INFO, "READ_FROM_RPMB_STORAGE_CMD_REQ_DATA size if %x\n", sizeof (READ_FROM_RPMB_STORAGE_CMD_REQ_DATA)));
|