reset.c (83653121d7382fccfe329cb732f77f116341ef1d) | reset.c (54841ab50c20d6fa6c9cc3eb826989da3a22d934) |
---|---|
1/* 2 * (C) Copyright 2002 3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 4 * Marius Groeger <mgroeger@sysgo.de> 5 * 6 * (C) Copyright 2002 7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 8 * Alex Zuepke <azu@sysgo.de> --- 25 unchanged lines hidden (view full) --- 34 * You should have received a copy of the GNU General Public License 35 * along with this program; if not, write to the Free Software 36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 37 * MA 02111-1307 USA 38 */ 39 40#include <common.h> 41 | 1/* 2 * (C) Copyright 2002 3 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 4 * Marius Groeger <mgroeger@sysgo.de> 5 * 6 * (C) Copyright 2002 7 * Sysgo Real-Time Solutions, GmbH <www.elinos.com> 8 * Alex Zuepke <azu@sysgo.de> --- 25 unchanged lines hidden (view full) --- 34 * You should have received a copy of the GNU General Public License 35 * along with this program; if not, write to the Free Software 36 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 37 * MA 02111-1307 USA 38 */ 39 40#include <common.h> 41 |
42int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) | 42int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
43{ 44 puts ("resetting ...\n"); 45 46 udelay (50000); /* wait 50 ms */ 47 48 disable_interrupts(); 49 reset_cpu(0); 50 51 /*NOTREACHED*/ 52 return 0; 53} | 43{ 44 puts ("resetting ...\n"); 45 46 udelay (50000); /* wait 50 ms */ 47 48 disable_interrupts(); 49 reset_cpu(0); 50 51 /*NOTREACHED*/ 52 return 0; 53} |