1 ;------------------------------------------------------------------------------
3 ; Common macros used in the ResetVector VTF module.
5 ; Copyright (c) 2008, Intel Corporation. All rights reserved.<BR>
6 ; This program and the accompanying materials
7 ; are licensed and made available under the terms and conditions of the BSD License
8 ; which accompanies this distribution. The full text of the license may be found at
9 ; http://opensource.org/licenses/bsd-license.php
11 ; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 ; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 ;------------------------------------------------------------------------------
16 %define ADDR16_OF(x) (0x10000 - fourGigabytes + x)
17 %define ADDR_OF(x) (0x100000000 - fourGigabytes + x)
21 %1 %+ OneTimerCallReturn:
24 %macro OneTimeCallRet 1
25 jmp %1 %+ OneTimerCallReturn
28 StartOfResetVectorCode:
30 %define ADDR_OF_START_OF_RESET_CODE ADDR_OF(StartOfResetVectorCode)