summaryrefslogtreecommitdiffstats
path: root/arch/x86/cpu/start.S
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2012-12-13 20:48:42 +0000
committerTom Rini <trini@ti.com>2013-02-01 15:36:53 -0500
commit0cecc3b67938147bc9b9dfe55a8464b4dd4092de (patch)
tree5b112ad73ac1b4b8bd6def5ea7df1e28dfec1aec /arch/x86/cpu/start.S
parentdf4aa625a2a6dbc3151ca7aa5e0656f281416cfe (diff)
downloadtalos-obmc-uboot-0cecc3b67938147bc9b9dfe55a8464b4dd4092de.tar.gz
talos-obmc-uboot-0cecc3b67938147bc9b9dfe55a8464b4dd4092de.zip
x86: Set up the global data pointer in C instead of asm
We currently assume that the global data pointer is at the start of struct global_data. We want to remove this restriction, and it is easiest to do this in C. Remove the asm code and add equivalent code in C. This idea was proposed by Graeme Russ here: http://patchwork.ozlabs.org/patch/199741/ Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Apply Graeme Russ' comments http://patchwork.ozlabs.org/patch/206305/ here, re-order] Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/x86/cpu/start.S')
-rw-r--r--arch/x86/cpu/start.S6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/x86/cpu/start.S b/arch/x86/cpu/start.S
index e960e21f6e..f389584567 100644
--- a/arch/x86/cpu/start.S
+++ b/arch/x86/cpu/start.S
@@ -113,9 +113,6 @@ car_init_ret:
/* Set second parameter to setup_gdt */
movl %esp, %edx
- /* gd->gd_addr = gd (Required to allow gd->xyz to work) */
- movl %eax, (%eax)
-
/* Setup global descriptor table so gd->xyz works */
call setup_gdt
@@ -171,9 +168,6 @@ board_init_f_r_trampoline:
/* Set second parameter to setup_gdt */
movl %esp, %edx
- /* gd->gd_addr = gd (Required to allow gd->xyz to work) */
- movl %eax, (%eax)
-
/* Setup global descriptor table so gd->xyz works */
call setup_gdt
OpenPOWER on IntegriCloud