[PATCH] ARM: Allow kernel unaligned accesses on ARMv6+ processors
Catalin Marinas
catalin.marinas at arm.com
Mon Nov 7 12:07:23 EST 2011
On Mon, Nov 07, 2011 at 02:11:24AM +0000, John Linn wrote:
> > -----Original Message-----
> > From: Catalin Marinas [mailto:catalin.marinas at gmail.com] On Behalf Of
> > Catalin Marinas
> > Sent: Saturday, November 05, 2011 3:41 AM
> > To: linux-arm-kernel at lists.infradead.org
> > Cc: John Linn
> > Subject: [PATCH] ARM: Allow kernel unaligned accesses on ARMv6+
> > processors
> >
> > Recent gcc versions generate unaligned accesses by default on ARMv6
> and
> > later processors. This patch ensures that the SCTLR.A bit is always
> > cleared on such processors to avoid kernel traping before
> > alignment_init() is called.
> >
> > Signed-off-by: Catalin Marinas <catalin.marinas at arm.com>
> > Cc: John Linn <John.Linn at xilinx.com>
>
> It worked great, thanks Catalin. I'd love to see a solution merged in
> the mainline and this seems reasonable.
> I'm being pushed to newer tools which require a solution.
>
> Tested-by: John Linn <john.linn at xilinx.com>
Thanks. I pushed it to Russell's patch system as:
http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=7150/1
--
Catalin
More information about the linux-arm-kernel
mailing list