]> git.proxmox.com Git - mirror_edk2.git/blobdiff - UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / Library / CpuExceptionHandlerLib / DxeException.c
index 6d1b54d31d3dc5b38dbc38a4570f364c12f0f115..fd59f09ecd082e21bd563b59cc9aee8bfe39fcc9 100644 (file)
@@ -2,13 +2,7 @@
   CPU exception handler library implemenation for DXE modules.\r
 \r
   Copyright (c) 2013 - 2017, 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
+  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
 **/\r
 \r
@@ -270,7 +264,7 @@ InitializeCpuExceptionHandlersEx (
         AsmReadGdtr (&Gdtr);\r
 \r
         EssData.X64.Revision = CPU_EXCEPTION_INIT_DATA_REV;\r
-        EssData.X64.KnownGoodStackTop = (UINTN)mNewStack;\r
+        EssData.X64.KnownGoodStackTop = (UINTN)mNewStack + sizeof (mNewStack);\r
         EssData.X64.KnownGoodStackSize = CPU_KNOWN_GOOD_STACK_SIZE;\r
         EssData.X64.StackSwitchExceptions = CPU_STACK_SWITCH_EXCEPTION_LIST;\r
         EssData.X64.StackSwitchExceptionNumber = CPU_STACK_SWITCH_EXCEPTION_NUMBER;\r
@@ -285,7 +279,7 @@ InitializeCpuExceptionHandlersEx (
 \r
         InitData = &EssData;\r
       }\r
-      Status = ArchSetupExcpetionStack (InitData);\r
+      Status = ArchSetupExceptionStack (InitData);\r
     }\r
   }\r
 \r