]> git.dujemihanovic.xyz Git - u-boot.git/commit
x86: Set up the global data pointer in C instead of asm
authorSimon Glass <sjg@chromium.org>
Thu, 13 Dec 2012 20:48:42 +0000 (20:48 +0000)
committerTom Rini <trini@ti.com>
Fri, 1 Feb 2013 20:36:53 +0000 (15:36 -0500)
commit0cecc3b67938147bc9b9dfe55a8464b4dd4092de
tree5b112ad73ac1b4b8bd6def5ea7df1e28dfec1aec
parentdf4aa625a2a6dbc3151ca7aa5e0656f281416cfe
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>
arch/x86/cpu/cpu.c
arch/x86/cpu/start.S