public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "windy" <windy_yuan@263.net>
To: "Jonathan Larmour" <jlarmour@redhat.com>
Cc: <ecos-discuss@sources.redhat.com>
Subject: Re: [ECOS] Help!
Date: Sat, 07 Apr 2001 04:46:00 -0000	[thread overview]
Message-ID: <006a01c0bf58$63d90c50$cd4e66ca@wdy> (raw)
In-Reply-To: <3ACDDD24.AEC8EB55@redhat.com>

> > We have ported ecos to our arm7 system.It seems work well,But division fail always confuses us.
> > 
> > the function which list below is my thread entry,I will create and execute it in cyg_user_start
> > 
> > void our_app1(int argc,char* argv[])
> > {
> >         float numerator,denominator;
> >         numerator = 4000;
> >         denominator = 100;
> >         numerator /= denominator;   ==>every time step over here,gdb will report "bus error",Why?
> > }
> > Who can tell me why the gdb alway report bus error,and what should I do?
> 
> Where exactly does it fail? If you are using an arm7di (i.e. with no fast
> multiplier) are you compiling with -mcpu=arm7di?
>  
> Jifl
> -- 
Today I have traced into __divsf3 . The bus error is reported when executing the instruction like "LDR R2, [R1,#2]".
When 'LDR' is used to load data which is not word align ,it will always cause bus error.
It seems arm7 on Samsung S3C44 box couldn't execute this type instruction correctly, although the manual book says
support. So strange!

Windy

  reply	other threads:[~2001-04-07  4:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200104060641.XAA13189@cygnus.com>
2001-04-06  8:13 ` Jonathan Larmour
2001-04-07  4:46   ` windy [this message]
2001-04-10 13:19     ` Jonathan Larmour
2005-06-16  8:49 [ECOS] Help !! Annamalai Prakash  K. (Tata Elxsi )
2005-06-16 20:17 ` John Carter
  -- strict thread matches above, loose matches on Subject: below --
2001-04-06  4:09 [ECOS] Help! Nielsen Linus
2001-04-05 23:41 windy

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='006a01c0bf58$63d90c50$cd4e66ca@wdy' \
    --to=windy_yuan@263.net \
    --cc=ecos-discuss@sources.redhat.com \
    --cc=jlarmour@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).