tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Unaligned access in kernel on ARMv6+ (Re: CVS commit: src/sys/dev/usb)




> On Jan 6, 2019, at 2:26 PM, Christos Zoulas <christos%zoulas.com@localhost> wrote:
> 
> Shouldn't the compiler know how to do this right by padding around the
> structure that needs alignment and assuming the default alignment for
> the enclosing structure?

No, because the compiler can't be assured of what alignment the allocator will return.

-- thorpej



Home | Main Index | Thread Index | Old Index