summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/PiDxeS3BootScriptLib
diff options
context:
space:
mode:
authorKun Qin <kuqin@microsoft.com>2026-05-11 23:06:37 +0300
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2026-07-31 18:16:47 +0300
commitd47954ceb47592b8f6dc24d21c4e422e1df3485b (patch)
tree51f6a70fc3ef909c4fb261d7681721c1ed77a926 /MdeModulePkg/Library/PiDxeS3BootScriptLib
parent1fa1a89382cc6978a22d1aed0420ae12bd4f60c3 (diff)
downloadedk2-d47954ceb47592b8f6dc24d21c4e422e1df3485b.tar.xz
UnitTestFrameworkPkg: SampleGoogleTestGenerateException: Support AArch64
The SampleGoogleTestGenerateException GoogleTest sample previously generated a CPU exception by performing an integer divide by zero. That mechanism is X86-specific: the AArch64 architecture defines SDIV/UDIV by zero to return zero rather than raising a synchronous abort, so the sample produced no exception when built and run on AArch64 hosts and the test failed due to the test assert instead of triggering an exception through the framework. This change replaces the divide-by-zero with a NULL pointer write performed through a small volatile helper, which is expected to work on all host systems. The MSVC '/wd4723' build option is no longer needed because it was added to silence the divide-by-zero compile-time warning. Signed-off-by: Kun Qin <kun.qin@microsoft.com>
Diffstat (limited to 'MdeModulePkg/Library/PiDxeS3BootScriptLib')
0 files changed, 0 insertions, 0 deletions