]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/UefiCpuPkg.dec
UefiCpuPkg/UefiCpuPkg.dec: Add two new PCDs for stack switch
[mirror_edk2.git] / UefiCpuPkg / UefiCpuPkg.dec
index 6bac23ff52bcc89324fe22a7a8e48b46d3fc6405..f0f786495e82b25c754d04a0b198af3b3f3b85eb 100644 (file)
   # @Prompt Lock SMM Feature Control MSR.\r
   gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmFeatureControlMsrLock|TRUE|BOOLEAN|0x3213210B\r
 \r
+[PcdsFixedAtBuild]\r
+  ## List of exception vectors which need switching stack.\r
+  #  This PCD will only take into effect if PcdCpuStackGuard is enabled.\r
+  #  By default exception #DD(8), #PF(14) are supported.\r
+  # @Prompt Specify exception vectors which need switching stack.\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuStackSwitchExceptionList|{0x08, 0x0E}|VOID*|0x30002000\r
+\r
+  ## Size of good stack for an exception.\r
+  #  This PCD will only take into effect if PcdCpuStackGuard is enabled.\r
+  # @Prompt Specify size of good stack of exception which need switching stack.\r
+  gUefiCpuPkgTokenSpaceGuid.PcdCpuKnownGoodStackSize|2048|UINT32|0x30002001\r
+\r
 [PcdsFixedAtBuild, PcdsPatchableInModule]\r
   ## This value is the CPU Local APIC base address, which aligns the address on a 4-KByte boundary.\r
   # @Prompt Configure base address of CPU Local APIC\r