[U-Boot] [PATCH 11/21] i386: Generic system restart support

Kyle Moffett Kyle.D.Moffett at boeing.com
Mon Mar 7 18:37:32 CET 2011


The i386 port has its own reset_cpu() dispatch for its various supported
CPU families, so the existing do_reset() function is simply altered to
use the new prototype for __arch_restart().

In addition, the debug message and delay are duplicated from the generic
code, so they are removed.

This reset code will probably work even when the CPU is in a bad state,
so no separate __arch_emergency_restart() function is required.

Signed-off-by: Kyle Moffett <Kyle.D.Moffett at boeing.com>
Cc: Graeme Russ <graeme.russ at gmail.com>
---
 arch/i386/cpu/cpu.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/arch/i386/cpu/cpu.c b/arch/i386/cpu/cpu.c
index 2339cd4..b1454ba 100644
--- a/arch/i386/cpu/cpu.c
+++ b/arch/i386/cpu/cpu.c
@@ -122,10 +122,8 @@ int x86_cpu_init_r(void)
 }
 int cpu_init_r(void) __attribute__((weak, alias("x86_cpu_init_r")));
 
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
+int __arch_restart(void)
 {
-	printf ("resetting ...\n");
-	udelay(50000);				/* wait 50 ms */
 	disable_interrupts();
 	reset_cpu(0);
 
-- 
1.7.2.3



More information about the U-Boot mailing list