This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Help!
- To: windy <windy_yuan at 263 dot net>
- Subject: Re: [ECOS] Help!
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 06 Apr 2001 16:13:40 +0100
- Cc: "ecos-discuss at sources dot redhat dot com" <ecos-discuss at sources dot redhat dot com>
- Organization: Red Hat UK Ltd.
- References: <200104060641.XAA13189@cygnus.com>
windy wrote:
>
> 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?
> the function _simple_mkdate in wallclock.inl maybe miss a parentheses,doesn't it?
Good catch.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine