diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-05 10:25:17 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-01-05 10:25:17 +0100 |
commit | 0d22025084222720b85c6019e8eb728e71dc8986 (patch) | |
tree | 1938fa6daa3598aed5c48293f684fba389fa8016 /arch/openrisc/cpu/cpu.c | |
parent | ea2211218c291d08b22fef201ccf23dbeb073eb3 (diff) | |
parent | 8eae82e3ae44e74fcbb2a619037db3e0f10c4f58 (diff) | |
download | barebox-0d22025084222720b85c6019e8eb728e71dc8986.tar.gz barebox-0d22025084222720b85c6019e8eb728e71dc8986.tar.xz |
Merge branch 'next'
Diffstat (limited to 'arch/openrisc/cpu/cpu.c')
-rw-r--r-- | arch/openrisc/cpu/cpu.c | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/arch/openrisc/cpu/cpu.c b/arch/openrisc/cpu/cpu.c new file mode 100644 index 0000000000..48f5d032a5 --- /dev/null +++ b/arch/openrisc/cpu/cpu.c @@ -0,0 +1,43 @@ +/* + * (C) Copyright 2011, Stefan Kristiansson <stefan.kristiansson@saunalahti.fi> + * (C) Copyright 2011, Julius Baxter <julius@opencores.org> + * + * See file CREDITS for list of people who contributed to this + * project. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of + * the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, + * MA 02111-1307 USA + */ + +#include <common.h> +#include <init.h> +#include <asm/system.h> +#include <asm/openrisc_exc.h> + +int cleanup_before_linux(void) +{ + return 0; +} + +extern void __reset(void); + +void __noreturn reset_cpu(ulong ignored) +{ + __reset(); + /* not reached, __reset does not return */ + + /* Not reached */ + while (1); +} |