This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: Running the hello.c example
Hi.
>>>>> "Cristiano" == Cristiano Ligieri Pereira <cpereira@ics.uci.edu> writes:
Cristiano> 0x8764: SWI Fault (software, 0x69) pc=0x8764
Cristiano> and this is the piece of the original code where the error is happening:
Cristiano> 00008758 <_swiwrite>:
Cristiano> 8758: e1a0c00d mov ip, sp
Cristiano> 875c: e92dd800 stmdb sp!, {fp, ip, lr, pc}
Cristiano> 8760: e24cb004 sub fp, ip, #4 ; 0x4
Cristiano> 8764: ef000069 swi 0x00000069
Cristiano> 8768: e91ba800 ldmdb fp, {fp, sp, pc}
Cristiano> SWI is software interrupt, right? Looks like I'm trying to execution
Cristiano> function 0x69 that doesn't exist? is this right?
I think you're on the right track.
Cristiano> Why would this happen? This is such a simple example. And one more
Cristiano> question..., which configuration is being used (besides ARM processor)
Cristiano> once I haven't specified any configuration file, let alone created some
Cristiano> configuration.
The default ARM system configuration in sid uses the ARM Angel monitor
and its associated syscall conventions. My guess is that your build
of newlib is targetting some other ARM target where swi 69 is the
means by which characters are written.
Ben