mirror of https://review.coreboot.org/STM.git
Simplify the relocation calculation.
Calculation assumes that the STM is under 1MB in size and the MSEG will always be on 1 MB boundries. Signed-off-by: Eugene D. Myers <edmyers@tycho.nsa.gov>
This commit is contained in:
parent
41ecbfda23
commit
2a3fd2f610
|
@ -28,7 +28,6 @@ extern UINT64 GetMsegInfoFromMsr (
|
|||
OUT UINT64 *MsegBase,
|
||||
OUT UINT64 *MsegLength
|
||||
);
|
||||
|
||||
/**
|
||||
|
||||
This function relocate image at ImageBase.
|
||||
|
@ -320,6 +319,7 @@ RelocateStmImage (
|
|||
//
|
||||
elf_process_reloc_table(StmImage, StmImage );
|
||||
AsmWbinvd ();
|
||||
|
||||
return ;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue