This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Difference between "go" on Script and manual enter?


On Mon, Jul 23, 2007 at 01:25:10PM +0900, ariga masahiro wrote:
> Hi everyone,
> 
> Since I posted first question about Script "go" not going well
> (I re_post it below),
> I am still in a terrible predicament.
> So,I beseech you again to help me.
> 
> I post since-then-found information.
> I examined "go 0x8c010000" manually and on Script.
> I traced do_go(int argc, char *argv[]) function in main.c in both cases.
> I checked that arguments are the same in both cases.
> 
> Both traces same-routed until these critical points,
> ---
>    // set up a temporary context that will take us to the trampoline
>    HAL_THREAD_INIT_CONTEXT((CYG_ADDRESS)workspace_end, entry, 
> go_trampoline, 0);
>    // switch context to trampoline
>    HAL_THREAD_SWITCH_CONTEXT(&go_saved_context, &workspace_end);
> ---
> and I found that all arguments are same in both cases,
> that in case of manual execution,when execute HAL_THREAD_SWITCH_CONTEXT, 
> apllication run like
> previously posted output,whereas on Script execution,it hangs and nothing 
> appeares.
> 
> My questions are, are there any factors to not run properly 
> HAL_THREAD_SWITCH_CONTEXT
> in case of Script- "go"- execution.
> 
> I appreciate any help.

Hello

...Let's pass RedBoot. Does the minimal eCos test (it calls itself
`context') built for ROM startup work or it hangs too? The test is built
for ROM startup will starts at once, so that is the same condition like
you run application using RedBoot's script

SOURCE

	hal/common/current/tests/context.c

BUILD

	ecosconfig new <your_target> <minimal|default|net>
	cat <<__eof >ROMSTARTUP.ecm
	cdl_component CYG_HAL_STARTUP {user_value ROM};
	__eof
	ecosconfig import ROMSTARTUP.ecm
	ecosconfig resolve
	ecosconfig tree
	make -s
	make -C hal/common/current TESTS=tests/context tests

TEST

	install/tests/
	`-- hal
	    `-- common
		`-- current
			`-- context


Try to run the `context' test is built using the _different_ eCos
templates (minimal/default/net). Will you get the equal results?

Sergei

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]