[coreboot] cbfs alignment

Julius Werner jwerner at chromium.org
Sat Jul 18 00:05:17 CEST 2015


Is there no way to make RISCV support unaligned accesses? There's a
bunch of things in coreboot (and especially libpayload) that depend on
it. I think that it generally makes code look much simpler (and run
faster) if you can assume that it's supported across the board.

If we do need to make CBFS unaligned access aware, we should do it
with some inline functions that fold into a simple read on the
platforms that support them in hardware.

(Depending on how many such accesses you have and what your context
switch costs are, it might also be feasible to emulate it in an
exception handler... that way you wouldn't need to hunt down every
single occurrence we've accumulated over the years.)



More information about the coreboot mailing list