]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/DebugSupportDxe/X64/AsmFuncs.nasm
MdeModulePkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / MdeModulePkg / Universal / DebugSupportDxe / X64 / AsmFuncs.nasm
index 134842a68a2b73bb89408b2943d420ab81fa7b8f..9cc38a3128e35af83bc04a6ff5ad6ad2f8a0c22e 100644 (file)
@@ -1,14 +1,8 @@
 ;/** @file\r
 ;  Low level x64 routines used by the debug support driver.\r
 ;\r
-;  Copyright (c) 2007 - 2016, 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) 2007 - 2018, Intel Corporation. All rights reserved.<BR>\r
+;  SPDX-License-Identifier: BSD-2-Clause-Patent\r
 ;\r
 ;**/\r
 \r
@@ -226,7 +220,7 @@ ASM_PFX(CommonIdtEntry):
                 pop     rax\r
                 add     rsp, 8                           ; pop vector number\r
                 mov     [AppRsp], rsp                    ; save stack top\r
-                mov     rsp, DebugStackBegin             ; switch to debugger stack\r
+                lea     rsp, [DebugStackBegin]           ; switch to debugger stack\r
                 sub     rsp, 8                           ; leave space for vector number\r
 \r
 ;; UINT64  Rdi, Rsi, Rbp, Rsp, Rbx, Rdx, Rcx, Rax;\r
@@ -529,7 +523,7 @@ Chain:
                 push    rbx\r
                 mov     rax, cs\r
                 push    rax\r
-                mov     rax, PhonyIretq\r
+                lea     rax, [PhonyIretq]\r
                 push    rax\r
                 iretq\r
 PhonyIretq:\r