[PATCH] Fix bootstrap on ARM v3

Richard Earnshaw rearnsha@arm.com
Mon May 21 08:31:00 GMT 2007


On Sun, 2007-05-20 at 12:16 +0100, Paul Brook wrote:
> We don't support ARMv1, so that's not a concern. I've a feeling ARMv2 may be 
> effectively unsupported now we've removed support for 26-bit mode, but that's 
> a separate issue.

It's possible to run apcs-32 code on ARMv2 chips, provided you avoid the
missing instructions (substantially, that means no MSR/MRS instructions)
and watch out for the odd case where the PSR bits leak into the PC
value.  The only case where the compiler really cares is handled in the
return_addr_mask pattern.

R.

There's a port of NetBSD (to acorn-26) that relies on this support.



More information about the Gcc-patches mailing list