* [ECOS] Entry point
@ 2007-06-25 15:40 Michele Portolan
2007-06-26 1:56 ` Gary Thomas
0 siblings, 1 reply; 4+ messages in thread
From: Michele Portolan @ 2007-06-25 15:40 UTC (permalink / raw)
To: ecos-discuss
Hello everyone,
which is the entry point for eCos, compiled with a basic kernel+scheduler? From my ananlysis it would seem to be "reset_vector", but is it true?
I use it on Leon2 rpocessor, and on my experimental setup I need to manually make the jump to the entry point for having it running.
Thanks anyone,
Michele
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Entry point
2007-06-25 15:40 [ECOS] Entry point Michele Portolan
@ 2007-06-26 1:56 ` Gary Thomas
0 siblings, 0 replies; 4+ messages in thread
From: Gary Thomas @ 2007-06-26 1:56 UTC (permalink / raw)
To: Michele Portolan; +Cc: ecos-discuss
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Michele Portolan wrote:
> Hello everyone,
> which is the entry point for eCos, compiled with a basic
> kernel+scheduler? From my ananlysis it would seem to be "reset_vector",
> but is it true?
> I use it on Leon2 rpocessor, and on my experimental setup I need to
> manually make the jump to the entry point for having it running.
Look at your linker file (.../hal/sparc/arch/current/src/sparc.ld)
It specifies the entry point as 'reset_vector'
- --
- ------------------------------------------------------------
Gary Thomas | Consulting for the
MLB Associates | Embedded world
- ------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFGf8vJmaKbSsQGV8ARAhRFAJ95Dh1zwO6Bm66kqVZpLmP3rb6F2gCeMfXV
joAudLKOY9USFPsqOyrbeXM=
=honF
-----END PGP SIGNATURE-----
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ECOS] Entry point
2007-04-25 13:21 LONY David
@ 2007-04-25 14:18 ` Andrew Lunn
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Lunn @ 2007-04-25 14:18 UTC (permalink / raw)
To: LONY David; +Cc: ecos-discuss
On Wed, Apr 25, 2007 at 03:22:50PM +0200, LONY David wrote:
> Hi all,
>
> I'm new to eCos and I wanted to know if it possible to define an entry
> point when eCos start?
> For instance, I have this kind of code :
>
> #include <stdio.h>
>
> main()
> {
>
> printf("Hello\n");
> return;
> }
>
> In Linux Synthetic Target template it would work great... but if I
> change my code to this :
>
> #include <stdio.h>
>
> void test()
> {
> printf("Hello\n");
> return;
> }
>
> How I can specified to eCos kernel to execute this function? I see in
> gdb (when I debug eCos) that the function cyg_user_start is called so I
> change my code to this:
>
> #include <stdio.h>
>
> void cyg_user_start(void)
> {
> printf("Hello\n");
> }
>
> And It work too... But I don't know if it's the good method to do this...
> Could someone help me please?
http://ecos.sourceware.org/docs-latest/ref/kernel-overview.html
Section Calling Contexts
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
* [ECOS] Entry point
@ 2007-04-25 13:21 LONY David
2007-04-25 14:18 ` Andrew Lunn
0 siblings, 1 reply; 4+ messages in thread
From: LONY David @ 2007-04-25 13:21 UTC (permalink / raw)
To: ecos-discuss
Hi all,
I'm new to eCos and I wanted to know if it possible to define an entry
point when eCos start?
For instance, I have this kind of code :
#include <stdio.h>
main()
{
printf("Hello\n");
return;
}
In Linux Synthetic Target template it would work great... but if I
change my code to this :
#include <stdio.h>
void test()
{
printf("Hello\n");
return;
}
How I can specified to eCos kernel to execute this function? I see in
gdb (when I debug eCos) that the function cyg_user_start is called so I
change my code to this:
#include <stdio.h>
void cyg_user_start(void)
{
printf("Hello\n");
}
And It work too... But I don't know if it's the good method to do this...
Could someone help me please?
PS : I'm using the uitron profile... (sorry for my english, I'm French
and I know that my english it's bad...)
Thanks
Best regards
David LONY
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-06-25 14:06 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-25 15:40 [ECOS] Entry point Michele Portolan
2007-06-26 1:56 ` Gary Thomas
-- strict thread matches above, loose matches on Subject: below --
2007-04-25 13:21 LONY David
2007-04-25 14:18 ` Andrew Lunn
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).