x86: Store the GDT pointer in global_data
authorSimon Glass <sjg@chromium.org>
Wed, 29 Apr 2015 02:25:15 +0000 (20:25 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 30 Apr 2015 03:02:34 +0000 (21:02 -0600)
commit52845296be8190c3f581090d6336fa033f2bd2d8
treefe344edf3466a1a6a2664d7ae99f968fa923c41d
parent837a136fc7cfb712858502a03c8d0ae91bea6e0d
x86: Store the GDT pointer in global_data

When we start up additional CPUs we want them to use the same Global
Descriptor Table. Store the address of this in global_data so we can
reference it later.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
arch/x86/cpu/cpu.c
arch/x86/include/asm/global_data.h