OVMF ResetVector: Modify interface with SEC module
Previously it was: ESI/RSI - SEC Core entry point EDI/RDI - PEI Core entry point EBP/RBP - Start of BFV Now it is: RAX/EAX Initial value of the EAX register (BIST: Built-in Self Test) DI 'BP': boot-strap processor, or 'AP': application processor RBP/EBP Address of Boot Firmware Volume (BFV) git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9571 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
;------------------------------------------------------------------------------
|
||||
; @file
|
||||
; Common macros used in the ResetVector VTF module.
|
||||
;
|
||||
; Copyright (c) 2008, Intel Corporation
|
||||
; All rights reserved. This program and the accompanying materials
|
||||
@@ -9,25 +11,11 @@
|
||||
; THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
; WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
;
|
||||
; Module Name:
|
||||
;
|
||||
; CommonMacros.inc
|
||||
;
|
||||
; Abstract:
|
||||
;
|
||||
; Common macros used in the ResetVector VTF module.
|
||||
;
|
||||
;------------------------------------------------------------------------------
|
||||
|
||||
%define ADDR16_OF(x) (0x10000 - fourGigabytes + x)
|
||||
%define ADDR_OF(x) (0x100000000 - fourGigabytes + x)
|
||||
|
||||
%macro callEdx 1
|
||||
mov edx, ADDR_OF(%%returnLabel)
|
||||
jmp %1
|
||||
%%returnLabel:
|
||||
%endmacro
|
||||
|
||||
%macro OneTimeCall 1
|
||||
jmp %1
|
||||
%1 %+ OneTimerCallReturn:
|
||||
|
Reference in New Issue
Block a user