80bbea192a
MdePkg/BaseLib: add ASSERT in ARM* SetJump implementations
...
The SetJump comment header states that:
If JumpBuffer is NULL, then ASSERT().
However, this was not currently done.
Add a call to InternalAssertJumpBuffer.
Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com >
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Sami Mujawar <sami.mujawar@arm.com >
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com >
2023-10-02 15:48:02 +00:00
cbf0e4f5b3
MdePkg/BaseLib: fix comments in ARM* SetJump/LongJump implementations
...
Drop redundant comment about IPF (clearly copied across from now deleted
code).
Also change
"Instead is resumes execution" ->
"Instead it resumes execution"
Signed-off-by: Leif Lindholm <quic_llindhol@quicinc.com >
Cc: Ard Biesheuvel <ardb+tianocore@kernel.org >
Cc: Sami Mujawar <sami.mujawar@arm.com >
Reviewed-by: Sami Mujawar <sami.mujawar@arm.com >
2023-10-02 15:48:02 +00:00
9380177354
MdePkg/BaseLib: Fix invalid memory access in AArch64 SetJump/LongJump
...
Correct the memory offsets used in REG_ONE/REG_PAIR macros to
synchronize them with definition of the BASE_LIBRARY_JUMP_BUFFER
structure on AArch64.
The REG_ONE macro declares only a single 64-bit register be
read/written; however, the subsequent offset is 16 bytes larger,
creating an unused memory gap in the middle of the structure and
causing SetJump/LongJump functions to read/write 8 bytes of memory
past the end of the jump buffer struct.
Signed-off-by: Jan Bobek <jbobek@nvidia.com >
Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com >
Acked-by: Michael D Kinney <michael.d.kinney@intel.com >
Acked-by: Liming Gao <gaoliming@byosoft.com.cn >
2020-10-13 03:20:49 +00:00
9344f09215
MdePkg: Replace BSD License with BSD+Patent License
...
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
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2019-04-09 10:58:13 -07:00
da351bdbe2
MdePkg/Library/BaseLib: Enable VS2017/ARM64 builds
...
Required GCC assembly files are converted for the MSFT assembler
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Pete Batard <pete@akeo.ie >
Reviewed-by: Liming Gao <liming.gao@intel.com >
2018-03-19 17:05:38 +08:00