9
0
Fork 0

introduce a arch_shutdown call and call it from shutdown_barebox

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2010-03-30 10:31:15 +02:00
parent e723f79cb7
commit edf4e51a82
2 changed files with 4 additions and 0 deletions

View File

@ -174,5 +174,8 @@ void __noreturn hang (void)
void shutdown_barebox(void)
{
devices_shutdown();
#ifdef ARCH_SHUTDOWN
arch_shutdown();
#endif
}

View File

@ -135,6 +135,7 @@ void start_barebox(void);
void shutdown_barebox(void);
int arch_execute(void *, int argc, char *argv[]);
void arch_shutdown(void);
int run_shell(void);