drivers/intel/fsp1_1/fsp_util.c: Use ALIGN_UP_macro
Change-Id: Iac4f275c14646b40ffe04fc5a6f6e1402cebfddf Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/11464 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
27fea06754
commit
3f2a945fb8
src/drivers/intel/fsp1_1
|
@ -51,7 +51,7 @@ FSP_INFO_HEADER *find_fsp(void)
|
|||
/* Locate the file header which follows the FV header. */
|
||||
fsp_ptr.u8 += fsp_ptr.fvh->ExtHeaderOffset;
|
||||
fsp_ptr.u8 += fsp_ptr.fveh->ExtHeaderSize;
|
||||
fsp_ptr.u8 = (u8 *)((fsp_ptr.u32 + 7) & 0xFFFFFFF8);
|
||||
fsp_ptr.u8 = (u8 *)ALIGN_UP(fsp_ptr.u32, 8);
|
||||
|
||||
/* Check the FFS GUID */
|
||||
if ((((u32 *)&fsp_ptr.ffh->Name)[0] != 0x912740BE)
|
||||
|
|
Loading…
Reference in New Issue