diff options
author | Simon Glass <sjg@chromium.org> | 2015-08-10 20:44:32 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2015-08-14 09:50:10 -0600 |
commit | f0c7d9c74642ccd6c76993b721b0fb87aab685fa (patch) | |
tree | 316adff8dc055af779a2bd08d64688ae3b24c7d0 /arch/x86/cpu/cpu.c | |
parent | 2db937456114d964e814f8cc25131e3b2c641b49 (diff) | |
download | u-boot-imx-f0c7d9c74642ccd6c76993b721b0fb87aab685fa.zip u-boot-imx-f0c7d9c74642ccd6c76993b721b0fb87aab685fa.tar.gz u-boot-imx-f0c7d9c74642ccd6c76993b721b0fb87aab685fa.tar.bz2 |
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.c | 4 |
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 */ |