public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH v3 0/2] ArmPkg: Add SMC helper functions
@ 2021-12-13 18:30 Rebecca Cran
  2021-12-13 18:30 ` [PATCH v3 1/2] " Rebecca Cran
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rebecca Cran @ 2021-12-13 18:30 UTC (permalink / raw)
  To: devel, Ard Biesheuvel, Gerd Hoffmann, Samer El-Haj-Mahmoud,
	Leif Lindholm, nd, Sami Mujawar
  Cc: Rebecca Cran

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-12-14 11:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-13 18:30 [PATCH v3 0/2] ArmPkg: Add SMC helper functions Rebecca Cran
2021-12-13 18:30 ` [PATCH v3 1/2] " Rebecca Cran
2021-12-13 18:30 ` [PATCH v3 2/2] ArmPkg: Update SMC calls to use the new ArmCallSmc0/1/2/3 functions Rebecca Cran
2021-12-14 11:31 ` [PATCH v3 0/2] ArmPkg: Add SMC helper functions Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox