Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 3e7e3e2467445fe3b5931c1423a36df09cc26a80
      
https://github.com/tianocore/edk2/commit/3e7e3e2467445fe3b5931c1423a36df09cc26a80
  Author: Leif Lindholm <leif.lindh...@oss.qualcomm.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

  Changed paths:
    M MdePkg/Include/AArch64/AsmMacroLib.h

  Log Message:
  -----------
  MdePkg/AArch64: fix AsmMacroLib signed value handling for MOV32/MOV64

MOV32 and MOV64, defined in AsmMacrolib.h, use a combination of movz and
movk instructions to fill a register with an immediate value. With each
instruction supplying 16 of the bits.

CLANGPDB builds have been reported to fail on the current implementation
when provided with negative values with:
  error: immediate must be an integer in range [0, 65535].

To resolve this, add a mask for the line filling the top 16 bits, like
the other lines already had.

Reported-by: Michael Kubacki <mikub...@linux.microsoft.com>
Signed-off-by: Leif Lindholm <leif.lindh...@oss.qualcomm.com>


  Commit: 2625e9196372f31f230e26d3a90dbde16a4e1667
      
https://github.com/tianocore/edk2/commit/2625e9196372f31f230e26d3a90dbde16a4e1667
  Author: Michael Kubacki <michael.kuba...@microsoft.com>
  Date:   2025-02-24 (Mon, 24 Feb 2025)

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

  Log Message:
  -----------
  ArmPkg/ArmStandaloneMmCoreEntryPoint: Fix cast on clang

Compilation error:

```
ArmStandaloneMmCoreEntryPoint.c:1041:48: error: cast to smaller
  integer type 'unsigned long' from 'void *'
  [-Werror,-Wvoid-pointer-to-int-cast]

  1041 |   DEBUG ((DEBUG_INFO, "Start Dump Hob: %lx\n",
             (unsigned long)HobStart));
```

The `%p` specifer is now used to print the pointers.

Signed-off-by: Michael Kubacki <michael.kuba...@microsoft.com>


Compare: https://github.com/tianocore/edk2/compare/81803b9eba52...2625e9196372

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