Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 957fcbe7a3396dbd568f685d6c967514bdfb59f1
      
https://github.com/tianocore/edk2/commit/957fcbe7a3396dbd568f685d6c967514bdfb59f1
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M ArmPkg/Drivers/ArmGic/GicV3/ArmGicV3Dxe.c

  Log Message:
  -----------
  ArmPkg: ArmGic: Cast CpuTarget to UINT32 for legacy GIC

The current code path supporting `PcdArmGicV3WithV2Legacy` will read 32
bit CPU target and try to program ARM_GIC_ICDIPTR. However, all these
operations are 32bit wide.

This change casts the CpuTarget variable to be UINT32 before calling
MMIO read.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: 77d32b179661739ce9a7e59141338c460da54e47
      
https://github.com/tianocore/edk2/commit/77d32b179661739ce9a7e59141338c460da54e47
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M ArmPkg/Drivers/TimerDxe/TimerDxe.c

  Log Message:
  -----------
  ArmPkg: TimerDxe: Use 64bit operation for timer ticks

The current implementation operates on 64bit value with implicit value
truncation.

This change updates the involved frequencies to use 64 bit based
operations.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: 9d0f3dd35d86fba542d38467ff679fd961e0f6f0
      
https://github.com/tianocore/edk2/commit/9d0f3dd35d86fba542d38467ff679fd961e0f6f0
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M ArmPkg/Library/ArmArchTimerLib/ArmArchTimerLib.c

  Log Message:
  -----------
  ArmPkg: ArmArchTimerLib: Update operations to be 64 bit wide

The existing operation in ArmArchTimerLib is operating on UINT32 or
UINT64 based on the target system. This casting game originates from the
fact that timer frequency is UINTN type.

This change will simply promote all operations to UINT64 based, which
will remove the casting and conditional #if in the code for better
portability and readability.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: 6539b693d1322b27dff78e5b433324cb1690c732
      
https://github.com/tianocore/edk2/commit/6539b693d1322b27dff78e5b433324cb1690c732
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M MdePkg/Include/Library/ArmLib.h

  Log Message:
  -----------
  MdePkg: ArmLib: Return UINT32 for ArmCacheWritebackGranule

ArmCacheWritebackGranule should not return value higher than MAX_UINT32.

This change will allow the usage without architecture depenedent return
size.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: b689c387e21b6624ed1067ccfa7d2eeadca059df
      
https://github.com/tianocore/edk2/commit/b689c387e21b6624ed1067ccfa7d2eeadca059df
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M ArmPkg/Library/ArmLib/ArmLib.c

  Log Message:
  -----------
  ArmPkg: ArmLib: Update function to match header file

Update function implementation to match interface definition. The return
should be bound to 0xffff0000, which is guaranteed to be a UINT32.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: e8b7d7a238e89992c029d951d10c40730f0deeab
      
https://github.com/tianocore/edk2/commit/e8b7d7a238e89992c029d951d10c40730f0deeab
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M ArmPkg/Library/ArmExceptionLib/ArmExceptionLib.c

  Log Message:
  -----------
  ArmPkg: ArmExceptionLib: Fixing exception vector and type casting

The current VectorBase is taking value from a 64bit PCD into a UINTN
value, which could have truncated value for 32bit system.

In addition, the comparison between UINTN and INTN could lead to
undesired comparison outcome or compiler complaints.

This change updates all of them to be UINT64 based operation.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


  Commit: 25ce25ecce47b54756832d278c30036f9c57b77d
      
https://github.com/tianocore/edk2/commit/25ce25ecce47b54756832d278c30036f9c57b77d
  Author: Kun Qin <ku...@microsoft.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M 
ArmPkg/Library/DefaultExceptionHandlerLib/AArch64/DefaultExceptionHandler.c

  Log Message:
  -----------
  ArmPkg: DefaultExceptionHandlerLib: Update function input bitwidth

The current DescribeExceptionSyndrome is taking ESR as 32bit value.
However, ESR should be a 64 bit value. This change updates the function
to intake a 64bit value.

Cc: Leif Lindholm <quic_llind...@quicinc.com>
Cc: Ard Biesheuvel <ardb+tianoc...@kernel.org>
Cc: Sami Mujawar <sami.muja...@arm.com>

Signed-off-by: Kun Qin <kun....@microsoft.com>


Compare: https://github.com/tianocore/edk2/compare/95972f966ebf...25ce25ecce47

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to