summaryrefslogtreecommitdiff
path: root/arch/x86/cpu/cpu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2015-08-11 02:44:32 (GMT)
committerSimon Glass <sjg@chromium.org>2015-08-14 15:50:10 (GMT)
commitf0c7d9c74642ccd6c76993b721b0fb87aab685fa (patch)
tree316adff8dc055af779a2bd08d64688ae3b24c7d0 /arch/x86/cpu/cpu.c
parent2db937456114d964e814f8cc25131e3b2c641b49 (diff)
downloadu-boot-fsl-qoriq-f0c7d9c74642ccd6c76993b721b0fb87aab685fa.tar.xz
x86: Switch to using generic global_data setup
There is quite a bit of assembler code that can be removed if we use the generic global_data setup. Less arch-specific code makes it easier to add new features and maintain the start-up code. Drop the unneeded code and adjust the hooks in board_f.c to cope. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'arch/x86/cpu/cpu.c')
-rw-r--r--arch/x86/cpu/cpu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/cpu/cpu.c b/arch/x86/cpu/cpu.c
index 4f57145..1b76ca1 100644
--- a/arch/x86/cpu/cpu.c
+++ b/arch/x86/cpu/cpu.c
@@ -136,8 +136,10 @@ static void load_gdt(const u64 *boot_gdt, u16 num_entries)
asm volatile("lgdtl %0\n" : : "m" (gdt));
}
-void setup_gdt(gd_t *new_gd, u64 *gdt_addr)
+void arch_setup_gd(gd_t *new_gd)
{
+ u64 *gdt_addr;
+
gdt_addr = new_gd->arch.gdt;
/* CS: code, read/execute, 4 GB, base 0 */