This is the mail archive of the
sid@sources.redhat.com
mailing list for the SID project.
Re: Running the hello.c example
- From: Cristiano Ligieri Pereira <cpereira at ics dot uci dot edu>
- To: "J. Johnston" <jjohnstn at cygnus dot com>
- Cc: Ben Elliston <bje at redhat dot com>, sid at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 13:17:14 -0800 (PST)
- Subject: Re: Running the hello.c example
Hi folks,
I hadn't modified the file but I was using newlib-1.8.0, which not even
has the options you were talking about. I recompiled newlib, but now with
version 1.9.0 and it worked pretty well.
Now I can go forward and try out more complex stuff.
Thanks for you help,
Cristiano.
------------------------------------------------------------
Cristiano Ligieri Pereira - http://www.ics.uci.edu/~cpereira
> Christiano,
>
> You likely have built newlib incorrectly. See newlib/configure.host. The
> default
> is to define ARM_RDI_MONITOR which activates the Angel code.
>
> # newlib_cflags="${newlib_cflags} -DARM_RDP_MONITOR"
> newlib_cflags="${newlib_cflags} -DARM_RDI_MONITOR"
> ;;
>
> This means that instead of the SWI codes you are quoting above, you will get the
> AngelSWI_Reason_xxx codes which follow. The value for write is 0x5 which
> matches
> what sid is expecting.
>
> You should verify that you have not changed these lines and if so, you should
> clean your newlib build and reconfigure/build again.
>
> -- Jeff J.