]> git.proxmox.com Git - mirror_edk2.git/blame - UefiCpuPkg/ResetVector/Vtf0/CommonMacros.inc
UefiCpuPkg: Replace BSD License with BSD+Patent License
[mirror_edk2.git] / UefiCpuPkg / ResetVector / Vtf0 / CommonMacros.inc
CommitLineData
bc252e8e
EB
1;------------------------------------------------------------------------------\r
2; @file\r
3; Common macros used in the ResetVector VTF module.\r
4;\r
01a1c0fc 5; Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>\r
0acd8697 6; SPDX-License-Identifier: BSD-2-Clause-Patent\r
bc252e8e
EB
7;\r
8;------------------------------------------------------------------------------\r
9\r
10%define ADDR16_OF(x) (0x10000 - fourGigabytes + x)\r
11%define ADDR_OF(x) (0x100000000 - fourGigabytes + x)\r
12\r
13%macro OneTimeCall 1\r
14 jmp %1\r
15%1 %+ OneTimerCallReturn:\r
16%endmacro\r
17\r
18%macro OneTimeCallRet 1\r
19 jmp %1 %+ OneTimerCallReturn\r
20%endmacro\r
21\r
22StartOfResetVectorCode:\r
23\r
24%define ADDR_OF_START_OF_RESET_CODE ADDR_OF(StartOfResetVectorCode)\r
25\r