This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


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

RE: gcc compile


> Even at the beginning of "start" the cpsr is equal to 0x10;
> 
> I have added a mode switch to user mode to crt0.S
> and will install the proposed swi handler.


Aha, good one, I didn't think about that. An ARM core starts
up in SVC (otherwise you can't setup anything). So you need
to switch to usermode indeed.

Probably your hardware initialisation was setting user
mode without your knowing, whereas the simulator only does
what you tell it to do.

Cheers,
Y.


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


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