]> git.proxmox.com Git - mirror_edk2.git/commit
StandaloneMmPkg: Zero data structure explicitly
authorAchin Gupta <achin.gupta@arm.com>
Mon, 3 Dec 2018 07:20:54 +0000 (12:50 +0530)
committerAchin Gupta <achin.gupta@arm.com>
Sun, 9 Dec 2018 16:01:27 +0000 (16:01 +0000)
commitd4951425063b06014e4125779ac91222b931478e
tree2841ba14c62b4dbd31de064e26121b29ec79b94a
parentf8943176f09518c86275e6228d7ebd0a7748d0dc
StandaloneMmPkg: Zero data structure explicitly

Introduction of the -mstrict-align flag results in GCC attempting
to use memset to zero out the InitMmFoundationSvcArgs structure.
In the absence of this C library function, this patch explicitly
zeroes this data structure prior to use.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Achin Gupta <achin.gupta@arm.com>
Signed-off-by: Sughosh Ganu <sughosh.ganu@arm.com>
Reviewed-by: Achin Gupta <achin.gupta@arm.com>
StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/StandaloneMmCoreEntryPoint.c