public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Cristiano Ligieri Pereira <cpereira@ics.uci.edu>
To: Ben Elliston <bje@redhat.com>
Cc: sid@sources.redhat.com
Subject: Re: Running the hello.c example
Date: Sat, 10 Nov 2001 11:10:00 -0000	[thread overview]
Message-ID: <Pine.SOL.4.20.0111181535080.10238-100000@washoe.ics.uci.edu> (raw)
In-Reply-To: <15352.16731.174898.123650@scooby.brisbane.redhat.com>


Hi Ben,

That's the trace I got:

0xd2a8: BL
0x876c: MOV_REG_IMM_SHIFT
0x8770: STMDB_WB
0x8774: SUB_IMM
0x8778: MOV_REG_IMM_SHIFT
0x877c: BL
0x8758: MOV_REG_IMM_SHIFT
0x875c: STMDB_WB
0x8760: SUB_IMM
0x8764: SWI     Fault (software, 0x69) pc=0x8764

and this is the piece of the original code where the error is happening:

00008758 <_swiwrite>:
    8758:       e1a0c00d        mov     ip, sp
    875c:       e92dd800        stmdb   sp!, {fp, ip, lr, pc}
    8760:       e24cb004        sub     fp, ip, #4      ; 0x4
    8764:       ef000069        swi     0x00000069
    8768:       e91ba800        ldmdb   fp, {fp, sp, pc}

SWI is software interrupt, right? Looks like I'm trying to execution
function 0x69 that doesn't exist? is this right? 

Why would this happen? This is such a simple example. And one more
question..., which configuration is being used (besides ARM processor)
once I haven't specified any configuration file, let alone created some
configuration.

thanks,
Cristiano.

------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira

On Mon, 19 Nov 2001, Ben Elliston wrote:

> >>>>> "Cristiano" == Cristiano Ligieri Pereira <cpereira@ics.uci.edu> writes:
> 
>   Cristiano> When I start arm-elf-sid, though, I get the following error:
> 
>   Cristiano> % arm-elf-sid hello.x
>   Cristiano> Fault (software, 0x69) pc=0x8764
> 
> You might want to use arm-elf-sid --trace-semantics hello.x.  Armed
> (no pun intended) with a disassembly of your program, you should be
> able to see what's going on.
> 
> Ben
> 

  reply	other threads:[~2001-11-18 23:43 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 15:18 Cristiano Ligieri Pereira
2001-10-17 11:07 ` Cristiano Ligieri Pereira
2001-11-10  7:38   ` Ben Elliston
2001-11-10 11:10     ` Cristiano Ligieri Pereira [this message]
2001-11-10 16:07       ` Ben Elliston
2001-11-12 19:29         ` Cristiano Ligieri Pereira
2001-11-18 17:22           ` Cristiano Ligieri Pereira
2001-11-12 20:03         ` Cristiano Ligieri Pereira
2001-11-13 11:30           ` J. Johnston
2001-11-13 13:12             ` Cristiano Ligieri Pereira
2001-11-19 13:17               ` Cristiano Ligieri Pereira
2001-11-19 10:58             ` J. Johnston
2001-11-18 19:11           ` Cristiano Ligieri Pereira
2001-10-31 15:31 ` Ben Elliston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SOL.4.20.0111181535080.10238-100000@washoe.ics.uci.edu \
    --to=cpereira@ics.uci.edu \
    --cc=bje@redhat.com \
    --cc=sid@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).