This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Redboot and tumb instructions


Hi People,

I'm porting redboot to my board (based on ARM AT91FR40162 like EB40A). I have
succeed in installing a feature cut down version onto the board.

The full version gives me:

Error: bad instruction `mrc p15,0,r3,c0,c0,0'

when compiling hal/arm/arch/current/src/arm_stub.c

The section in arm_stub.c at issue is:

// return non-zero for v5 and later
static int
v5T_semantics(void)
{
unsigned id;

asm volatile ("mrc p15,0,%0,c0,c0,0\n"
: "=r" (id) : /* no inputs */);

return ((id >> 16) & 0xff) >= 5;
}

A work-around is to not use ARM thumb interworking. This is ok but are we able to
use thumb (which should result in smaller code) with redboot?


Regards,
Keith




--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]