diff options
author | Juergen Beisert <jbe@pengutronix.de> | 2010-01-12 11:15:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2010-01-14 10:06:15 +0100 |
commit | c7f2adaf7dfd9b752972a5ebf48baf30684106cc (patch) | |
tree | dd48c2316bba9803e67e26104798ecce71b1b0f6 /arch/x86/mach-i386/reset.c | |
parent | acd2bf6bc0ee81a6a890fe7d07c6db54daacd515 (diff) | |
download | barebox-c7f2adaf7dfd9b752972a5ebf48baf30684106cc.tar.gz barebox-c7f2adaf7dfd9b752972a5ebf48baf30684106cc.tar.xz |
Bring in the first x86 specific code
Add some generic required code to make barebox work on x86.
Note: Resetting the CPU is unfinished yet. I need some ideas how to reset
this kind of architecture gracefully.
Signed-off-by: Juergen Beisert <jbe@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/x86/mach-i386/reset.c')
-rw-r--r-- | arch/x86/mach-i386/reset.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/arch/x86/mach-i386/reset.c b/arch/x86/mach-i386/reset.c new file mode 100644 index 0000000000..a4eb364870 --- /dev/null +++ b/arch/x86/mach-i386/reset.c @@ -0,0 +1,34 @@ +/* + * Copyright (C) 2009 Juergen Beisert, Pengutronix + * + * 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 + * + */ + +/** + * @file + * @brief Resetting an x86 CPU + */ + +#include <common.h> + +void reset_cpu(ulong addr) +{ + /** How to reset the machine? */ + while(1) + ; +} +EXPORT_SYMBOL(reset_cpu); |