Port-arm 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)

thorpej%me.com@localhost (Jason Thorpe) writes:

>There is a performance penalty for unaligned accesses, and not even all ARM versions can do it in a way that produces the expected results.  The device in question here is a USB device, and we support pre-ARMv6 systems that have USB capability.

The unaligned access is a performance benefit compared to assembling a
result manually byte by byte. This is not the choice between using
aligned vs. unaligned data, the data already comes unaligned as input
and we are talking about the code that reads it.

                                Michael van Elst
Internet: mlelstv%serpens.de@localhost
                                "A potential Snark may lurk in every tree."

Home | Main Index | Thread Index | Old Index