[edk2-devel] [PATCH v3 0/2] ArmPkg: Add SMC helper functions

Rebecca Cran posted 2 patches 2 years, 4 months ago
Failed in applying to current master (apply log)
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
[edk2-devel] [PATCH v3 0/2] ArmPkg: Add SMC helper functions
Posted by Rebecca Cran 2 years, 4 months ago
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/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH v3 0/2] ArmPkg: Add SMC helper functions
Posted by Ard Biesheuvel 2 years, 4 months ago
On Mon, 13 Dec 2021 at 19:31, Rebecca Cran <rebecca@nuviainc.com> wrote:
>
> 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
>

Merged as #2303

Thanks,

>  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 (#84799): https://edk2.groups.io/g/devel/message/84799
Mute This Topic: https://groups.io/mt/87704308/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-