[U-Boot] [PATCH 15/21] nios2: Generic system restart support

Scott McNutt smcnutt at psyent.com
Wed Mar 9 01:13:42 CET 2011


Hi Kyle,

Kyle Moffett wrote:
> The Nios-II port appears to use no generic hardware capability for
> performing a CPU reset.  Since all of the supported boards use the exact
> same code to perform a jump-to-flash it goes into __arch_restart().
> 
> This means that Nios-II has a no-op __arch_emergency_restart() function.
> If the CPU is in an invalid state then jump-to-FLASH probably won't
> work.

If the CPU state is stable enough to call __arch_emergency_restart(),
a jump to the reset address should be fine. In many implementations
the reset code is in on-chip ROM. If things get screwed up enough
to affect the code in on-chip ROM, it probably won't matter what
gets called. ;-)

Thomas, any thoughts?

Regards,
--Scott



More information about the U-Boot mailing list