• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;------------------------------------------------------------------------------
2; @file
3; Common macros used in the ResetVector VTF module.
4;
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
10;
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.
13;
14;------------------------------------------------------------------------------
15
16%define ADDR16_OF(x) (0x10000 - fourGigabytes + x)
17%define ADDR_OF(x) (0x100000000 - fourGigabytes + x)
18
19%macro  OneTimeCall 1
20    jmp     %1
21%1 %+ OneTimerCallReturn:
22%endmacro
23
24%macro  OneTimeCallRet 1
25    jmp     %1 %+ OneTimerCallReturn
26%endmacro
27
28StartOfResetVectorCode:
29
30%define ADDR_OF_START_OF_RESET_CODE ADDR_OF(StartOfResetVectorCode)
31
32