diff options
author | Patrick Georgi <pgeorgi@chromium.org> | 2015-07-14 22:29:04 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2015-07-15 16:34:50 +0200 |
commit | 2272b80a1dafdee57d8ca89860e9e988f1dceafc (patch) | |
tree | fbcd2207d107712d497c2f5bb0c2f881cdc6ce44 /payloads/libpayload/include | |
parent | 4d3e4c421e94814884d1ff035a4c4ec80d4b33b2 (diff) | |
download | coreboot-2272b80a1dafdee57d8ca89860e9e988f1dceafc.tar.xz |
libpayload: assume cbfs file alignment is 64 byte
Change-Id: I8dfd8fbd452ce92fbca2cf095bc5e43e4a26969d
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: http://review.coreboot.org/10920
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'payloads/libpayload/include')
-rw-r--r-- | payloads/libpayload/include/cbfs_core.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/payloads/libpayload/include/cbfs_core.h b/payloads/libpayload/include/cbfs_core.h index 1f8b7eec7e..a95cef7a3d 100644 --- a/payloads/libpayload/include/cbfs_core.h +++ b/payloads/libpayload/include/cbfs_core.h @@ -94,12 +94,15 @@ struct cbfs_header { uint32_t version; uint32_t romsize; uint32_t bootblocksize; - uint32_t align; + uint32_t align; /* fixed to 64 bytes */ uint32_t offset; uint32_t architecture; uint32_t pad[1]; } __attribute__((packed)); +/* this used to be flexible, but wasn't ever set to something different. */ +#define CBFS_ALIGNMENT 64 + /* "Unknown" refers to CBFS headers version 1, * before the architecture was defined (i.e., x86 only). */ |