Xiang Wang has uploaded this change for review.

View Change

lb_tables: make lb_record_version_timestamp record sizes 64-bit aligned

They were sized to 32-bit algnment, this grows them to 64 bit-aligned

Change-Id: Id401ed7ac24d781329686cf0a339cf9e1ea15130
Signed-off-by: Xiang Wang <wxjstz@126.com>
---
M src/lib/coreboot_table.c
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/83/31383/1
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index c2ae094..25d0afa 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -422,7 +422,7 @@
struct lb_timestamp *rec;
rec = (struct lb_timestamp *)lb_new_record(header);
rec->tag = LB_TAG_VERSION_TIMESTAMP;
- rec->size = sizeof(*rec);
+ rec->size = ALIGN_UP(sizeof(*rec), 8);
rec->timestamp = coreboot_version_timestamp;
}


To view, visit change 31383. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id401ed7ac24d781329686cf0a339cf9e1ea15130
Gerrit-Change-Number: 31383
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Wang <wxjstz@126.com>
Gerrit-MessageType: newchange