diff options
author | Oliver Smith-Denny <osde@microsoft.com> | 2024-06-14 13:20:29 -0700 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-13 03:58:46 +0000 |
commit | 3a9da5f329ab9683bffc451502a2f0680568a71f (patch) | |
tree | f21481b2a221160197b3aa48cf3a66bfe288c1e0 /MdePkg | |
parent | 26c381801126527943b08ee1cff4133dfcfd3d77 (diff) | |
download | edk2-3a9da5f329ab9683bffc451502a2f0680568a71f.tar.gz edk2-3a9da5f329ab9683bffc451502a2f0680568a71f.tar.bz2 edk2-3a9da5f329ab9683bffc451502a2f0680568a71f.zip |
MdePkg: Add Stack Cookie Interrupt Vector PCD
This patch adds a PCD allowing a platform to specify
the interrupt vector to trigger on a stack check
failure. On x86, this is an offset into the IDT.
On ARM/AARCH64, this triggers a software interrupt
that can be decoded to indicate this was a stack
check failure.
Signed-off-by: Oliver Smith-Denny <osde@linux.microsoft.com>
Diffstat (limited to 'MdePkg')
-rw-r--r-- | MdePkg/MdePkg.dec | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec index d36bd2eda3..8d5947fc9e 100644 --- a/MdePkg/MdePkg.dec +++ b/MdePkg/MdePkg.dec @@ -2259,6 +2259,9 @@ # @Prompt Speculation Barrier Type.
gEfiMdePkgTokenSpaceGuid.PcdSpeculationBarrierType|0x01|UINT8|0x30001018
+ ## This PCD specifies the interrupt vector for stack cookie check failures
+ gEfiMdePkgTokenSpaceGuid.PcdStackCookieExceptionVector|0x42|UINT8|0x30001019
+
[PcdsFixedAtBuild,PcdsPatchableInModule]
## Indicates the maximum length of unicode string used in the following
# BaseLib functions: StrLen(), StrSize(), StrCmp(), StrnCmp(), StrCpy(), StrnCpy()<BR><BR>
|