[U-Boot] [Patch] make reset_cpu nonreturn.

Pavel Machek pavel at denx.de
Wed Sep 12 11:16:44 CEST 2012


Hi!

> > > > From: Dinh Nguyen <dinguyen at altera.com>
> > > > 
> > > > Add minimal support for Altera's SOCFPGA Cyclone 5 hardware.
> > > > 
> > > > Applied on top of trini/WIP/spl-improvements v6
> > > 
> > > [...]
> > > 
> > > __noreturn attribute to reset_cpu() is still missing, but that's a minor
> > > thing.
> > 
> > Hmm, I thought about it, but I guess the right solution is below.
> 
> You sure it's propagated through to the function (aka. that it's not ignored) ? 
> If so, WFM.

I think so. It is actually when optimizing the caller when "nonreturn"
is important...
									Pavel
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


More information about the U-Boot mailing list