summaryrefslogtreecommitdiff
path: root/cpu/i386/cpu.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2009-11-24 20:04:21 +1100
committerWolfgang Denk <wd@denx.de>2009-12-05 01:05:39 +0100
commit1c409bc7101a24ecd47a13a4e851845d66dc23ce (patch)
tree0ecc055ef81130abc919cc2123974304dfa75b9e /cpu/i386/cpu.c
parentcabe5794803fbe18bedac2d9c7f2417a0fa95ec1 (diff)
downloadu-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.zip
u-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.tar.gz
u-boot-imx-1c409bc7101a24ecd47a13a4e851845d66dc23ce.tar.bz2
i386: Final Relocation
Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
Diffstat (limited to 'cpu/i386/cpu.c')
-rw-r--r--cpu/i386/cpu.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/cpu/i386/cpu.c b/cpu/i386/cpu.c
index 4b68105..3010519 100644
--- a/cpu/i386/cpu.c
+++ b/cpu/i386/cpu.c
@@ -37,7 +37,7 @@
#include <command.h>
#include <asm/interrupt.h>
-int cpu_init(void)
+int cpu_init_f(void)
{
/* initialize FPU, reset EM, set MP and NE */
asm ("fninit\n" \
@@ -46,9 +46,13 @@ int cpu_init(void)
"orl $0x22, %eax\n" \
"movl %eax, %cr0\n" );
+ return 0;
+}
+
+int cpu_init_r(void)
+{
/* Initialize core interrupt and exception functionality of CPU */
cpu_init_interrupts ();
-
return 0;
}