To reduce the amount of template code, introduce SMC helper functions. Update ArmSmcPsciResetSystemLib and Universal/Smbios to use them.
Changes from v2 to v3: o Fixed code style issues with Uncrustify. o Fixed patch 2/2 subject. o Added OPTIONAL tag to functions. o Added ZeroMem call to initialize Args. GitHub Test PR: https://github.com/tianocore/edk2/pull/2300 Rebecca Cran (2): ArmPkg: Add SMC helper functions ArmPkg: Update SMC calls to use the new ArmCallSmc0/1/2/3 functions ArmPkg/Include/Library/ArmSmcLib.h | 73 +++++++++++ ArmPkg/Library/ArmSmcLib/ArmSmc.c | 129 ++++++++++++++++++++ ArmPkg/Library/ArmSmcLib/ArmSmcLib.inf | 3 + ArmPkg/Library/ArmSmcLibNull/ArmSmcLibNull.c | 85 +++++++++++++ ArmPkg/Library/ArmSmcPsciResetSystemLib/ArmSmcPsciResetSystemLib.c | 10 +- ArmPkg/Universal/Smbios/ProcessorSubClassDxe/SmbiosProcessorArmCommon.c | 40 +++--- 6 files changed, 308 insertions(+), 32 deletions(-) create mode 100644 ArmPkg/Library/ArmSmcLib/ArmSmc.c -- 2.31.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#84751): https://edk2.groups.io/g/devel/message/84751 Mute This Topic: https://groups.io/mt/87704308/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-