;/** @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
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
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