summaryrefslogtreecommitdiff
path: root/Platform/ARM/Library/ArmShellCmdRunAxf
AgeCommit message (Collapse)AuthorFilesLines
2025-09-13Global: Remove ARM32 SupportOliver Smith-Denny2-44/+0
edk2 is removing support for ARM32, so drop all ARM32 code from edk2-platforms. This does not change code copied from edk2 as-is. Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
2024-10-24Platform/ARM/ArmShellCmdRunAxf: Fix build with clangSudeep Holla1-0/+1
Clang build fails with the below warning: | Platform/ARM/Library/ArmShellCmdRunAxf/RunAxf.c:216:11: error: variable | 'FileSize' is used uninitialized whenever 'if' condition is false | [-Werror,-Wsometimes-uninitialized]. | if (FileHandle != NULL) { | ^~~~~~~~~~~~~~~~~~ | Platform/ARM/Library/ArmShellCmdRunAxf/RunAxf.c:281:38: note: | uninitialized use occurs here. | WriteBackDataCacheRange (FileData, FileSize); | ^~~~~~~~ | Platform/ARM/Library/ArmShellCmdRunAxf/RunAxf.c:136:39: note: initialize | the variable 'FileSize' to silence this warning | UINTN FileSize; | ^ | = 0 | 4 errors generated. Fix it by initializing the variable. Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
2024-09-16Replace deprecated EFI_D_* with DEBUG_*Rebecca Cran2-15/+15
Replaced the deprecated EFI_D_{INFO,WARN,ERROR,VERBOSE} usage with DEBUG_{INFO,WARN,ERROR,VERBOSE}. Signed-off-by: Rebecca Cran <rebecca@bsdio.com>
2024-09-16Arm/AARCH64 Platforms: Update AsmMacroLib.h IncludesOliver Smith-Denny2-2/+2
edk2 PR https://github.com/tianocore/edk2/pull/6048 moves AsmMacroIoLib.h and AsmMacroIoLibV8.h to MdePkg and renames them to Arm/AsmMacroLib.h and AArch64/AsmMacroLib.h, respectively. This updates all edk2-platforms in one go, as this is a breaking change and no functional change. Cc: Ard Biesheuvel <ardb+tianocore@kernel.org> Cc: Leif Lindholm <quic_llindhol@quicinc.com> Cc: Michael D Kinney <michael.d.kinney@intel.com> Continuous-integration-options: PatchCheck.ignore-multi-package Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
2020-04-06Platform/ARM: Fix uninitialized variable in RunAxfSami Mujawar1-1/+2
RunAxf is a shell command used for running an Axf file. The ShellDynCmdRunAxfHandler() loads an ELF file or one processed by the Flashloader. It calls the appropriate loaders to load the file in memory and to obtain the entry point address. The first argument to RunAxfPivot() is the entry point address for the image to execute. The patch https://github.com/tianocore/edk2-platforms/commit/996047695a06167a918b07b22fcd0fbd0def5da6 changes set/way cache maintenance operations to by-VA operation. This patch however introduced an error: 'variable StartElf is not initialized'. Since, StartElf is the first argument to RunAxfPivot(), which is expected to be the entry point address; RunAxfPivot() would end up branching to an invalid address resulting in a crash. Therefore, initialize StartElf to the entry point address before calling RunAxfPivot(). Signed-off-by: Sami Mujawar <sami.mujawar@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
2020-03-06Platform/ARM/ArmShellCmdRunAxf: switch to by-VA cache maintenanceArd Biesheuvel4-47/+130
Currently, the 'runaxf' shell command that exists only on ARM's own development platforms deals with the caches in an unsafe manner, as it relies on set/way maintenance to ensure that the ELF image it has put into memory, as well as the running image itself is visible in memory after the MMU and caches are disabled. So let's switch to by-VA maintenance for the currently running image, as well as the ELF image, and use a helper in assembly to ensure that we are not relying on the stack between the disabling of the MMU and the invocation of the ELF image. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif@nuviainc.com>
2019-05-18Platform/ARM: Replace BSD License with BSD+Patent LicenseMichael D Kinney12-84/+12
https://bugzilla.tianocore.org/show_bug.cgi?id=1373 Replace BSD 2-Clause License with BSD+Patent License. This change is based on the following emails: https://lists.01.org/pipermail/edk2-devel/2019-February/036260.html https://lists.01.org/pipermail/edk2-devel/2018-October/030385.html RFCs with detailed process for the license change: V3: https://lists.01.org/pipermail/edk2-devel/2019-March/038116.html V2: https://lists.01.org/pipermail/edk2-devel/2019-March/037669.html V1: https://lists.01.org/pipermail/edk2-devel/2019-March/037500.html NOTE: Files with a BSD 3-Clause license are not modified by this patch series. Cc: Leif Lindholm <leif.lindholm@linaro.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>
2017-12-08Platform/ARM: import BootMonFs and ArmShellCmdRunAxf from EDK2Ard Biesheuvel12-0/+2896
BootMonFs and ArmShellCmdRunAxf are only used on development boards manufactured by ARM itself, so let's keep it under Platform/ARM where it belongs. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Reviewed-by: Leif Lindholm <leif.lindholm@linaro.org>