Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: beff015bc78e272cd6a51f66092e6cdd5b7f7372
https://github.com/tianocore/edk2/commit/beff015bc78e272cd6a51f66092e6cdd5b7f7372
Author: Chris Fernald <[email protected]>
Date: 2026-03-13 (Fri, 13 Mar 2026)
Changed paths:
M ArmPkg/Library/ArmExceptionLib/AArch64/AArch64Exception.c
Log Message:
-----------
ArmPkg: Fix incorrect bit width mask for SP_EL0
The current code uses `0xFUL` for stack alignment. Since this is only specified
to be an unsigned long, it may only be translated to 0xFFFFFFF0 in compilation
using LL64. In this case, if the stack resides above 4GB, the high bits of the
pointer will be truncated. This will cause a data abort immediately when
pushing to the exception stack.
This occurs specifically when using ClangPDB which uses LL64. This is not
observed in GCC because it uses LP64 where unsigned long is 64 bits.
This commit simply changes the mask to `0xFULL` to ensure that the full 64-bit
pointer is correctly masked for alignment in all configurations.
Signed-off-by: Chris Fernald <[email protected]>
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits