Skip to content
Snippets Groups Projects
Commit 0cecc3b6 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
[trini: Apply Graeme Russ' comments
http://patchwork.ozlabs.org/patch/206305/

 here, re-order]
Signed-off-by: default avatarTom Rini <trini@ti.com>
parent df4aa625
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment