]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ArchInterruptDefs.h
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / Ia32 / ArchInterruptDefs.h
index a8d3556a805437fc4d0e7be65607f820fdd142d6..fc37fbe5823fb7c52659a26b31bd0e1cf5932303 100644 (file)
@@ -1,14 +1,8 @@
 /** @file\r
   Ia32 arch definition for CPU Exception Handler Library.\r
 \r
-  Copyright (c) 2013, Intel Corporation. All rights reserved.<BR>\r
-  This program and the accompanying materials\r
-  are licensed and made available under the terms and conditions of the BSD License\r
-  which accompanies this distribution.  The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php\r
-\r
-  THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
-  WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+  Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>\r
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -41,4 +35,12 @@ typedef struct {
   UINT8       HookAfterStubHeaderCode[HOOKAFTER_STUB_SIZE];\r
 } RESERVED_VECTORS_DATA;\r
 \r
+#define CPU_TSS_DESC_SIZE \\r
+  (sizeof (IA32_TSS_DESCRIPTOR) * \\r
+   (FixedPcdGetSize (PcdCpuStackSwitchExceptionList) + 1))\r
+\r
+#define CPU_TSS_SIZE \\r
+  (sizeof (IA32_TASK_STATE_SEGMENT) * \\r
+   (FixedPcdGetSize (PcdCpuStackSwitchExceptionList) + 1))\r
+\r
 #endif\r