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