arm start.c: Make runtime function address calculation tolerant for more compilers
[barebox-mini2440.git] / commands / reset.c
blob46ab90153f495b35c3251ce41870913f0ab31068
1 /*
2 * reset.c - reset the cpu
4 * Copyright (c) 2007 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
6 * See file CREDITS for list of people who contributed to this
7 * project.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2
11 * as published by the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23 #include <common.h>
24 #include <command.h>
26 static int cmd_reset(struct command *cmdtp, int argc, char *argv[])
28 reset_cpu(0);
30 /* Not reached */
31 return 1;
34 BAREBOX_CMD_START(reset)
35 .cmd = cmd_reset,
36 .usage = "Perform RESET of the CPU",
37 BAREBOX_CMD_END