public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] hello_world crashes U-Boot
@ 2005-04-17 19:26 Andrew Wozniak
  2005-04-17 21:04 ` Andrew Wozniak
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Wozniak @ 2005-04-17 19:26 UTC (permalink / raw)
  To: u-boot

Hi,

I still need to investigate this further, but figured that a post might 
encourage some suggestions about this interesting issue.

hello_word was built with the default Makefile for the PPC440GX and it 
runs just fine. But when it is modified so that "no" stdio is used and a 
structure init is attempted, it crashed U-Boot (see attachment) when 
hello_world returns.

int hello_world (int argc, char *argv[])
{
         struct pci_controller thehose = {0};

	app_startup(argv);
	return (0);
}

The interesting part is that when one or more stdio functions is added, 
printf() for example, there is no crash.

I was hoping that someone else might be able to reproduce this crash.

My current U-Boot image has about 8 exported functions in addition to 
the default ones. hello_world was built against this image to insure ABI 
compatibility.

Thanks for any suggestions, Andrew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crash.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20050417/d734cf83/attachment.txt 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-04-17 21:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-17 19:26 [U-Boot-Users] hello_world crashes U-Boot Andrew Wozniak
2005-04-17 21:04 ` Andrew Wozniak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox