Alexandru Gagniuc (mr.nuke.me@gmail.com) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/11464
-gerrit
commit 20939ac3cb9d6559a9ba47bebdc022335fbc1cf4 Author: Alexandru Gagniuc mr.nuke.me@gmail.com Date: Sat Aug 29 18:25:10 2015 -0700
drivers/intel/fsp1_1/fsp_util.c: Use ALIGN_UP_macro
Change-Id: Iac4f275c14646b40ffe04fc5a6f6e1402cebfddf Signed-off-by: Alexandru Gagniuc mr.nuke.me@gmail.com --- src/drivers/intel/fsp1_1/fsp_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drivers/intel/fsp1_1/fsp_util.c b/src/drivers/intel/fsp1_1/fsp_util.c index e5624b3..18e8648 100644 --- a/src/drivers/intel/fsp1_1/fsp_util.c +++ b/src/drivers/intel/fsp1_1/fsp_util.c @@ -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)