• A
    crypto/modes/modes_lcl.h: let STRICT_ALIGNMENT be on ARMv7. · 3bdd8052
    Andy Polyakov 提交于
    While ARMv7 in general is capable of unaligned access, not all instructions
    actually are. And trouble is that compiler doesn't seem to differentiate
    those capable and incapable of unaligned access. Side effect is that kernel
    goes into endless loop retrying same instruction triggering unaligned trap.
    Problem was observed in xts128.c and ccm128.c modules. It's possible to
    resolve it by using (volatile u32*) casts, but letting STRICT_ALIGNMENT
    be feels more appropriate.
    3bdd8052
modes_lcl.h 3.5 KB