[coreboot] cbfs alignment
ron minnich
rminnich at gmail.com
Fri Jul 17 21:45:37 CEST 2015
riscv is taking alignment traps reading cbfs.
The issue is that 64-bit fields are 32-bit aligned, which fails many places.
Thaminda found this comment:
* Since coreboot is usually compiled 32bit, gcc will align 64bit
* types to 32bit boundaries. If the coreboot table is dumped on a
* 64bit system, a uint64_t would be aligned to 64bit boundaries,
* breaking the table format.
this is a real problem. Would have broken badly on Alpha, and breaks badly
on RISCV.
We can fix it, with an ugly macro, but ... what's the right move here?
ron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20150717/30f47cba/attachment.html>
More information about the coreboot
mailing list