Commit fe0c33a5acc8cc5400747200802089177bd94b58

Authored by Bin Meng
Committed by Simon Glass
1 parent c7016234f7

x86: Clean up asm-offsets

Move GD_BIST from lib/asm-offsets.c to arch/x86/lib/asm-offsets.c
as it is x86 arch specific stuff. Also remove GENERATED_GD_RELOC_OFF
which is not referenced anymore.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Simon Glass <sjg@chromium.org>

Showing 3 changed files with 3 additions and 5 deletions Side-by-side Diff

arch/x86/cpu/start.S
1 1 /*
2   - * U-boot - x86 Startup Code
  2 + * U-Boot - x86 Startup Code
3 3 *
4 4 * (C) Copyright 2008-2011
5 5 * Graeme Russ, <graeme.russ@gmail.com>
... ... @@ -17,6 +17,7 @@
17 17 #include <asm/processor.h>
18 18 #include <asm/processor-flags.h>
19 19 #include <generated/generic-asm-offsets.h>
  20 +#include <generated/asm-offsets.h>
20 21  
21 22 .section .text
22 23 .code32
arch/x86/lib/asm-offsets.c
... ... @@ -17,7 +17,7 @@
17 17  
18 18 int main(void)
19 19 {
20   - DEFINE(GENERATED_GD_RELOC_OFF, offsetof(gd_t, reloc_off));
  20 + DEFINE(GD_BIST, offsetof(gd_t, arch.bist));
21 21 return 0;
22 22 }
... ... @@ -31,9 +31,6 @@
31 31 #ifdef CONFIG_SYS_MALLOC_F_LEN
32 32 DEFINE(GD_MALLOC_BASE, offsetof(struct global_data, malloc_base));
33 33 #endif
34   -#ifdef CONFIG_X86
35   - DEFINE(GD_BIST, offsetof(struct global_data, arch.bist));
36   -#endif
37 34  
38 35 #if defined(CONFIG_ARM)
39 36