Replace CONFIG_SYS_GBL_DATA_SIZE by auto-generated value

CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not
being able to use "sizeof(struct global_data)" in assembler files.
Recent experience has shown that manual synchronization is not
reliable enough.  This patch renames CONFIG_SYS_GBL_DATA_SIZE into
GENERATED_GBL_DATA_SIZE which gets automatically generated by the
asm-offsets tool.  In the result, all definitions of this value can be
deleted from the board config files.  We have to make sure that all
files that reference such data include the new <asm-offsets.h> file.

No other changes have been done yet, but it is obvious that similar
changes / simplifications can be done for other, related macro
definitions as well.

Signed-off-by: Wolfgang Denk <wd@denx.de>
Acked-by: Kumar Gala <galak@kernel.crashing.org>
master
Wolfgang Denk 14 years ago
parent 16a354f920
commit 25ddd1fb0a
  1. 9
      arch/arm/cpu/arm1136/start.S
  2. 9
      arch/arm/cpu/arm1176/start.S
  3. 8
      arch/arm/cpu/arm720t/start.S
  4. 7
      arch/arm/cpu/arm920t/start.S
  5. 8
      arch/arm/cpu/arm925t/start.S
  6. 8
      arch/arm/cpu/arm926ejs/start.S
  7. 8
      arch/arm/cpu/arm946es/start.S
  8. 8
      arch/arm/cpu/arm_intcm/start.S
  9. 9
      arch/arm/cpu/armv7/start.S
  10. 7
      arch/arm/cpu/ixp/start.S
  11. 9
      arch/arm/cpu/lh7a40x/start.S
  12. 5
      arch/arm/cpu/pxa/start.S
  13. 5
      arch/arm/cpu/s3c44b0/start.S
  14. 9
      arch/arm/cpu/sa1100/start.S
  15. 2
      arch/arm/include/asm/global_data.h
  16. 2
      arch/arm/lib/interrupts.c
  17. 1
      arch/avr32/cpu/start.S
  18. 2
      arch/avr32/include/asm/global_data.h
  19. 5
      arch/blackfin/include/asm/config.h
  20. 2
      arch/blackfin/include/asm/global_data.h
  21. 4
      arch/blackfin/lib/board.c
  22. 2
      arch/i386/include/asm/global_data.h
  23. 1
      arch/m68k/cpu/mcf5227x/start.S
  24. 1
      arch/m68k/cpu/mcf523x/start.S
  25. 1
      arch/m68k/cpu/mcf52x2/start.S
  26. 1
      arch/m68k/cpu/mcf532x/start.S
  27. 1
      arch/m68k/cpu/mcf5445x/start.S
  28. 1
      arch/m68k/cpu/mcf547x_8x/start.S
  29. 2
      arch/m68k/include/asm/global_data.h
  30. 1
      arch/microblaze/cpu/start.S
  31. 2
      arch/microblaze/include/asm/global_data.h
  32. 2
      arch/microblaze/lib/board.c
  33. 1
      arch/mips/cpu/cache.S
  34. 1
      arch/mips/cpu/start.S
  35. 2
      arch/mips/include/asm/global_data.h
  36. 2
      arch/nios2/cpu/start.S
  37. 2
      arch/nios2/lib/board.c
  38. 1
      arch/powerpc/cpu/74xx_7xx/start.S
  39. 1
      arch/powerpc/cpu/mpc512x/start.S
  40. 1
      arch/powerpc/cpu/mpc5xx/start.S
  41. 1
      arch/powerpc/cpu/mpc5xxx/start.S
  42. 1
      arch/powerpc/cpu/mpc8220/start.S
  43. 1
      arch/powerpc/cpu/mpc824x/start.S
  44. 1
      arch/powerpc/cpu/mpc8260/start.S
  45. 1
      arch/powerpc/cpu/mpc83xx/start.S
  46. 1
      arch/powerpc/cpu/mpc85xx/release.S
  47. 1
      arch/powerpc/cpu/mpc85xx/start.S
  48. 1
      arch/powerpc/cpu/mpc86xx/start.S
  49. 1
      arch/powerpc/cpu/mpc8xx/start.S
  50. 3
      arch/powerpc/cpu/ppc4xx/start.S
  51. 2
      arch/powerpc/include/asm/global_data.h
  52. 5
      arch/sh/cpu/sh2/start.S
  53. 5
      arch/sh/cpu/sh3/start.S
  54. 5
      arch/sh/cpu/sh4/start.S
  55. 4
      arch/sh/lib/board.c
  56. 1
      arch/sparc/cpu/leon2/start.S
  57. 1
      arch/sparc/cpu/leon3/start.S
  58. 2
      arch/sparc/include/asm/global_data.h
  59. 2
      arch/sparc/lib/board.c
  60. 1
      board/amcc/bamboo/init.S
  61. 1
      board/amcc/bluestone/init.S
  62. 1
      board/amcc/canyonlands/init.S
  63. 1
      board/amcc/sequoia/init.S
  64. 1
      board/amcc/yosemite/init.S
  65. 1
      board/barco/early_init.S
  66. 1
      board/esd/du440/init.S
  67. 1
      board/esd/pmc440/init.S
  68. 3
      board/fads/fads.h
  69. 1
      board/gdsys/gdppc440etx/init.S
  70. 1
      board/gdsys/intip/init.S
  71. 1
      board/hidden_dragon/early_init.S
  72. 1
      board/korat/init.S
  73. 1
      board/lwmon5/init.S
  74. 1
      board/pcs440ep/init.S
  75. 1
      board/prodrive/alpr/init.S
  76. 1
      board/sandpoint/early_init.S
  77. 1
      board/t3corp/init.S
  78. 2
      common/cmd_bdinfo.c
  79. 4
      include/asm-offsets.h
  80. 1
      include/common.h
  81. 4
      include/configs/A3000.h
  82. 3
      include/configs/ADCIOP.h
  83. 3
      include/configs/AMX860.h
  84. 3
      include/configs/AP1000.h
  85. 3
      include/configs/APC405.h
  86. 3
      include/configs/AR405.h
  87. 3
      include/configs/ASH405.h
  88. 3
      include/configs/ATUM8548.h
  89. 3
      include/configs/Adder.h
  90. 3
      include/configs/Alaska8220.h
  91. 1
      include/configs/B2.h
  92. 3
      include/configs/BAB7xx.h
  93. 3
      include/configs/BC3450.h
  94. 3
      include/configs/BMW.h
  95. 3
      include/configs/CANBT.h
  96. 3
      include/configs/CATcenter.h
  97. 3
      include/configs/CMS700.h
  98. 3
      include/configs/CPC45.h
  99. 3
      include/configs/CPCI2DP.h
  100. 3
      include/configs/CPCI405.h
  101. Some files were not shown because too many files have changed in this diff Show More

@ -28,6 +28,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
.globl _start .globl _start
@ -380,7 +381,7 @@ stack_setup:
sub sp, r0, #128 /* leave 32 words for abort-stack */ sub sp, r0, #128 /* leave 32 words for abort-stack */
#else #else
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -510,7 +511,7 @@ cpu_init_crit:
#else #else
adr r2, _start adr r2, _start
sub r2, r2, #(CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#endif #endif
ldmia r2, {r2 - r3} @ get values for "aborted" pc and cpsr (into parm regs) ldmia r2, {r2 - r3} @ get values for "aborted" pc and cpsr (into parm regs)
add r0, sp, #S_FRAME_SIZE @ grab pointer to old stack add r0, sp, #S_FRAME_SIZE @ grab pointer to old stack
@ -547,7 +548,7 @@ cpu_init_crit:
#else #else
adr r13, _start @ setup our mode stack (enter in banked mode) adr r13, _start @ setup our mode stack (enter in banked mode)
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) @ move past malloc pool sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) @ move past malloc pool
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ move to reserved a couple spots for abort stack
#endif #endif
str lr, [r13] @ save caller lr in position 0 of saved stack str lr, [r13] @ save caller lr in position 0 of saved stack
@ -569,7 +570,7 @@ cpu_init_crit:
#else #else
ldr r0, _armboot_start @ get data regions start ldr r0, _armboot_start @ get data regions start
sub r0, r0, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool sub r0, r0, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool
sub r0, r0, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ move past gbl and a couple spots for abort stack sub r0, r0, #(GENERATED_GBL_DATA_SIZE+8) @ move past gbl and a couple spots for abort stack
#endif #endif
str lr, [r0] @ save caller lr in position 0 of saved stack str lr, [r0] @ save caller lr in position 0 of saved stack
mrs r0, spsr @ get the spsr mrs r0, spsr @ get the spsr

@ -30,6 +30,7 @@
* Base codes by scsuh (sc.suh) * Base codes by scsuh (sc.suh)
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
#ifdef CONFIG_ENABLE_MMU #ifdef CONFIG_ENABLE_MMU
@ -546,7 +547,7 @@ skip_hw_init:
stack_setup: stack_setup:
ldr r0, =CONFIG_SYS_UBOOT_BASE /* base of copy in DRAM */ ldr r0, =CONFIG_SYS_UBOOT_BASE /* base of copy in DRAM */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
sub sp, r0, #12 /* leave 3 words for abort-stack */ sub sp, r0, #12 /* leave 3 words for abort-stack */
bic sp, sp, #7 /* 8-byte alignment for ABI compliance */ bic sp, sp, #7 /* 8-byte alignment for ABI compliance */
@ -663,7 +664,7 @@ phy_last_jump:
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_SYS_MALLOC_LEN)
/* set base 2 words into abort stack */ /* set base 2 words into abort stack */
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8)
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -687,7 +688,7 @@ phy_last_jump:
/* move past malloc pool */ /* move past malloc pool */
sub r13, r13, #(CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_SYS_MALLOC_LEN)
/* move to reserved a couple spots for abort stack */ /* move to reserved a couple spots for abort stack */
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE + 8) sub r13, r13, #(GENERATED_GBL_DATA_SIZE + 8)
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif
@ -721,7 +722,7 @@ phy_last_jump:
/* move past malloc pool */ /* move past malloc pool */
sub r0, r0, #(CONFIG_SYS_MALLOC_LEN) sub r0, r0, #(CONFIG_SYS_MALLOC_LEN)
/* move past gbl and a couple spots for abort stack */ /* move past gbl and a couple spots for abort stack */
sub r0, r0, #(CONFIG_SYS_GBL_DATA_SIZE + 8) sub r0, r0, #(GENERATED_GBL_DATA_SIZE + 8)
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -23,7 +23,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
#include <asm/hardware.h> #include <asm/hardware.h>
@ -327,7 +327,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -609,7 +609,7 @@ lock_loop:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -646,7 +646,7 @@ lock_loop:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -24,6 +24,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <common.h> #include <common.h>
#include <config.h> #include <config.h>
@ -414,7 +415,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -529,7 +530,7 @@ cpu_init_crit:
sub r2, r2, #(CONFIG_STACKSIZE) sub r2, r2, #(CONFIG_STACKSIZE)
sub r2, r2, #(CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_SYS_MALLOC_LEN)
/* set base 2 words into abort stack */ /* set base 2 words into abort stack */
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8)
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -569,7 +570,7 @@ cpu_init_crit:
sub r13, r13, #(CONFIG_STACKSIZE) sub r13, r13, #(CONFIG_STACKSIZE)
sub r13, r13, #(CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_SYS_MALLOC_LEN)
/* reserve a couple spots in abort stack */ /* reserve a couple spots in abort stack */
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8)
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -30,7 +30,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -385,7 +385,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -492,7 +492,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -529,7 +529,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN ldr r13, IRQ_STACK_START_IN
#endif #endif

@ -31,7 +31,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <common.h> #include <common.h>
#include <version.h> #include <version.h>
@ -349,7 +349,7 @@ stack_setup:
sub sp, r0, #128 /* leave 32 words for abort-stack */ sub sp, r0, #128 /* leave 32 words for abort-stack */
#ifndef CONFIG_PRELOADER #ifndef CONFIG_PRELOADER
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -475,7 +475,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
adr r2, _start adr r2, _start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -513,7 +513,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
adr r13, _start @ setup our mode stack adr r13, _start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -30,7 +30,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -316,7 +316,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -427,7 +427,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -465,7 +465,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -30,7 +30,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -312,7 +312,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -403,7 +403,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -441,7 +441,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -29,6 +29,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -357,7 +358,7 @@ copy_loop: @ copy 32 bytes at a time
stack_setup: stack_setup:
ldr r0, _TEXT_BASE @ upper 128 KiB: relocated uboot ldr r0, _TEXT_BASE @ upper 128 KiB: relocated uboot
sub r0, r0, #CONFIG_SYS_MALLOC_LEN @ malloc area sub r0, r0, #CONFIG_SYS_MALLOC_LEN @ malloc area
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE @ bdinfo sub r0, r0, #GENERATED_GBL_DATA_SIZE @ bdinfo
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ + CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ + CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -464,7 +465,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE + 8) @ set base 2 words into abort sub r2, r2, #(GENERATED_GBL_DATA_SIZE + 8) @ set base 2 words into abort
#else #else
ldr r2, IRQ_STACK_START_IN @ set base 2 words into abort ldr r2, IRQ_STACK_START_IN @ set base 2 words into abort
@ stack @ stack
@ -507,7 +508,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack (enter ldr r13, _armboot_start @ setup our mode stack (enter
sub r13, r13, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool sub r13, r13, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE + 8) @ move to reserved a couple sub r13, r13, #(GENERATED_GBL_DATA_SIZE + 8) @ move to reserved a couple
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack (enter ldr r13, IRQ_STACK_START_IN @ setup our mode stack (enter
@ in banked mode) @ in banked mode)
@ -535,7 +536,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r0, _armboot_start @ get data regions start ldr r0, _armboot_start @ get data regions start
sub r0, r0, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool sub r0, r0, #(CONFIG_SYS_MALLOC_LEN) @ move past malloc pool
sub r0, r0, #(CONFIG_SYS_GBL_DATA_SIZE + 8) @ move past gbl and a couple sub r0, r0, #(GENERATED_GBL_DATA_SIZE + 8) @ move past gbl and a couple
#else #else
ldr r0, IRQ_STACK_START_IN @ get data regions start ldr r0, IRQ_STACK_START_IN @ get data regions start
@ spots for abort stack @ spots for abort stack

@ -27,6 +27,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
#include <asm/arch/ixp425.h> #include <asm/arch/ixp425.h>
@ -555,7 +556,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -620,7 +621,7 @@ _start_armboot: .word start_armboot
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -661,7 +662,7 @@ _start_armboot: .word start_armboot
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -24,11 +24,10 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
/* /*
************************************************************************* *************************************************************************
* *
@ -349,7 +348,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -464,7 +463,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -501,7 +500,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -29,6 +29,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
#include <asm/arch/pxa-regs.h> #include <asm/arch/pxa-regs.h>
@ -419,7 +420,7 @@ reset:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -460,7 +461,7 @@ reset:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -27,11 +27,10 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
/* /*
* Jump vector table * Jump vector table
*/ */
@ -331,7 +330,7 @@ vector_copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif

@ -25,11 +25,10 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
/* /*
************************************************************************* *************************************************************************
* *
@ -301,7 +300,7 @@ copy_loop:
stack_setup: stack_setup:
ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */ ldr r0, _TEXT_BASE /* upper 128 KiB: relocated uboot */
sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */ sub r0, r0, #CONFIG_SYS_MALLOC_LEN /* malloc area */
sub r0, r0, #CONFIG_SYS_GBL_DATA_SIZE /* bdinfo */ sub r0, r0, #GENERATED_GBL_DATA_SIZE /* bdinfo */
#ifdef CONFIG_USE_IRQ #ifdef CONFIG_USE_IRQ
sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ) sub r0, r0, #(CONFIG_STACKSIZE_IRQ+CONFIG_STACKSIZE_FIQ)
#endif #endif
@ -445,7 +444,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r2, _armboot_start ldr r2, _armboot_start
sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r2, r2, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r2, r2, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ set base 2 words into abort stack sub r2, r2, #(GENERATED_GBL_DATA_SIZE+8) @ set base 2 words into abort stack
#else #else
ldr r2, IRQ_STACK_START_IN ldr r2, IRQ_STACK_START_IN
#endif #endif
@ -482,7 +481,7 @@ cpu_init_crit:
#if defined(CONFIG_SYS_ARM_WITHOUT_RELOC) #if defined(CONFIG_SYS_ARM_WITHOUT_RELOC)
ldr r13, _armboot_start @ setup our mode stack ldr r13, _armboot_start @ setup our mode stack
sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN) sub r13, r13, #(CONFIG_STACKSIZE+CONFIG_SYS_MALLOC_LEN)
sub r13, r13, #(CONFIG_SYS_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack sub r13, r13, #(GENERATED_GBL_DATA_SIZE+8) @ reserved a couple spots in abort stack
#else #else
ldr r13, IRQ_STACK_START_IN @ setup our mode stack ldr r13, IRQ_STACK_START_IN @ setup our mode stack
#endif #endif

@ -30,7 +30,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -50,7 +50,7 @@ int interrupt_init (void)
IRQ_STACK_START = gd->irq_sp - 4; IRQ_STACK_START = gd->irq_sp - 4;
IRQ_STACK_START_IN = gd->irq_sp + 8; IRQ_STACK_START_IN = gd->irq_sp + 8;
#else #else
IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - CONFIG_SYS_GBL_DATA_SIZE - 4; IRQ_STACK_START = _armboot_start - CONFIG_SYS_MALLOC_LEN - GENERATED_GBL_DATA_SIZE - 4;
#endif #endif
FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ; FIQ_STACK_START = IRQ_STACK_START - CONFIG_STACKSIZE_IRQ;

@ -19,6 +19,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/ptrace.h> #include <asm/ptrace.h>
#include <asm/sysreg.h> #include <asm/sysreg.h>

@ -29,7 +29,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -101,11 +101,8 @@
#ifndef CONFIG_SYS_MALLOC_BASE #ifndef CONFIG_SYS_MALLOC_BASE
# define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN) # define CONFIG_SYS_MALLOC_BASE (CONFIG_SYS_MONITOR_BASE - CONFIG_SYS_MALLOC_LEN)
#endif #endif
#ifndef CONFIG_SYS_GBL_DATA_SIZE
# define CONFIG_SYS_GBL_DATA_SIZE (128)
#endif
#ifndef CONFIG_SYS_GBL_DATA_ADDR #ifndef CONFIG_SYS_GBL_DATA_ADDR
# define CONFIG_SYS_GBL_DATA_ADDR (CONFIG_SYS_MALLOC_BASE - CONFIG_SYS_GBL_DATA_SIZE) # define CONFIG_SYS_GBL_DATA_ADDR (CONFIG_SYS_MALLOC_BASE - GENERATED_GBL_DATA_SIZE)
#endif #endif
#ifndef CONFIG_STACKBASE #ifndef CONFIG_STACKBASE
# define CONFIG_STACKBASE (CONFIG_SYS_GBL_DATA_ADDR - 4) # define CONFIG_STACKBASE (CONFIG_SYS_GBL_DATA_ADDR - 4)

@ -37,7 +37,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {
bd_t *bd; bd_t *bd;

@ -237,12 +237,12 @@ void board_init_f(ulong bootflag)
#endif #endif
#ifdef DEBUG #ifdef DEBUG
if (CONFIG_SYS_GBL_DATA_SIZE < sizeof(*gd)) if (GENERATED_GBL_DATA_SIZE < sizeof(*gd))
hang(); hang();
#endif #endif
serial_early_puts("Init global data\n"); serial_early_puts("Init global data\n");
gd = (gd_t *) (CONFIG_SYS_GBL_DATA_ADDR); gd = (gd_t *) (CONFIG_SYS_GBL_DATA_ADDR);
memset((void *)gd, 0, CONFIG_SYS_GBL_DATA_SIZE); memset((void *)gd, 0, GENERATED_GBL_DATA_SIZE);
/* Board data initialization */ /* Board data initialization */
addr = (CONFIG_SYS_GBL_DATA_ADDR + sizeof(gd_t)); addr = (CONFIG_SYS_GBL_DATA_ADDR + sizeof(gd_t));

@ -30,7 +30,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -24,6 +24,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include "version.h" #include "version.h"

@ -30,7 +30,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -24,6 +24,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
.text .text

@ -31,7 +31,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -96,7 +96,7 @@ void board_init (void)
ulong flash_size = 0; ulong flash_size = 0;
#endif #endif
asm ("nop"); /* FIXME gd is not initialize - wait */ asm ("nop"); /* FIXME gd is not initialize - wait */
memset ((void *)gd, 0, CONFIG_SYS_GBL_DATA_SIZE); memset ((void *)gd, 0, GENERATED_GBL_DATA_SIZE);
gd->bd = (bd_t *) (gd + 1); /* At end of global data */ gd->bd = (bd_t *) (gd + 1); /* At end of global data */
gd->baudrate = CONFIG_BAUDRATE; gd->baudrate = CONFIG_BAUDRATE;
bd = gd->bd; bd = gd->bd;

@ -22,6 +22,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/asm.h> #include <asm/asm.h>
#include <asm/regdef.h> #include <asm/regdef.h>

@ -22,6 +22,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/regdef.h> #include <asm/regdef.h>
#include <asm/mipsregs.h> #include <asm/mipsregs.h>

@ -33,7 +33,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -21,7 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include <version.h> #include <version.h>

@ -95,7 +95,7 @@ void board_init (void)
/* compiler optimization barrier needed for GCC >= 3.4 */ /* compiler optimization barrier needed for GCC >= 3.4 */
__asm__ __volatile__("": : :"memory"); __asm__ __volatile__("": : :"memory");
memset( gd, 0, CONFIG_SYS_GBL_DATA_SIZE ); memset( gd, 0, GENERATED_GBL_DATA_SIZE );
gd->bd = (bd_t *)(gd+1); /* At end of global data */ gd->bd = (bd_t *)(gd+1); /* At end of global data */
gd->baudrate = CONFIG_BAUDRATE; gd->baudrate = CONFIG_BAUDRATE;

@ -32,6 +32,7 @@
* board_init lies at a quite high address and when the cpu has * board_init lies at a quite high address and when the cpu has
* jumped there, everything is ok. * jumped there, everything is ok.
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <74xx_7xx.h> #include <74xx_7xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -29,6 +29,7 @@
* U-Boot - Startup Code for MPC512x based Embedded Boards * U-Boot - Startup Code for MPC512x based Embedded Boards
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <timestamp.h> #include <timestamp.h>
#include <version.h> #include <version.h>

@ -30,6 +30,7 @@
* *
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc5xx.h> #include <mpc5xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -25,6 +25,7 @@
/* /*
* U-Boot - Startup Code for MPC5xxx CPUs * U-Boot - Startup Code for MPC5xxx CPUs
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc5xxx.h> #include <mpc5xxx.h>
#include <timestamp.h> #include <timestamp.h>

@ -25,6 +25,7 @@
/* /*
* U-Boot - Startup Code for MPC8220 CPUs * U-Boot - Startup Code for MPC8220 CPUs
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc8220.h> #include <mpc8220.h>
#include <timestamp.h> #include <timestamp.h>

@ -37,6 +37,7 @@
* board_init will change CS0 to be positioned at the correct * board_init will change CS0 to be positioned at the correct
* address and (s)dram will be positioned at address 0 * address and (s)dram will be positioned at address 0
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc824x.h> #include <mpc824x.h>
#include <timestamp.h> #include <timestamp.h>

@ -25,6 +25,7 @@
/* /*
* U-Boot - Startup Code for MPC8260 PowerPC based Embedded Boards * U-Boot - Startup Code for MPC8260 PowerPC based Embedded Boards
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc8260.h> #include <mpc8260.h>
#include <timestamp.h> #include <timestamp.h>

@ -27,6 +27,7 @@
* U-Boot - Startup Code for MPC83xx PowerPC based Embedded Boards * U-Boot - Startup Code for MPC83xx PowerPC based Embedded Boards
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc83xx.h> #include <mpc83xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc85xx.h> #include <mpc85xx.h>
#include <version.h> #include <version.h>

@ -28,6 +28,7 @@
* *
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc85xx.h> #include <mpc85xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -30,6 +30,7 @@
* board_init lies at a quite high address and when the cpu has * board_init lies at a quite high address and when the cpu has
* jumped there, everything is ok. * jumped there, everything is ok.
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc86xx.h> #include <mpc86xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -37,6 +37,7 @@
* board_init will change CS0 to be positioned at the correct * board_init will change CS0 to be positioned at the correct
* address and (s)dram will be positioned at address 0 * address and (s)dram will be positioned at address 0
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <mpc8xx.h> #include <mpc8xx.h>
#include <timestamp.h> #include <timestamp.h>

@ -63,6 +63,7 @@
* board_init will change CS0 to be positioned at the correct * board_init will change CS0 to be positioned at the correct
* address and (s)dram will be positioned at address 0 * address and (s)dram will be positioned at address 0
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/ppc4xx.h> #include <asm/ppc4xx.h>
#include <timestamp.h> #include <timestamp.h>
@ -1399,7 +1400,7 @@ relocate_code:
/* Flush initial global data range */ /* Flush initial global data range */
mr r3, r4 mr r3, r4
addi r4, r4, CONFIG_SYS_GBL_DATA_SIZE@l addi r4, r4, GENERATED_GBL_DATA_SIZE@l
bl flush_dcache_range bl flush_dcache_range
#if defined(CONFIG_SYS_INIT_DCACHE_CS) #if defined(CONFIG_SYS_INIT_DCACHE_CS)

@ -34,7 +34,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -18,6 +18,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -73,6 +74,6 @@ loop:
._reloc_dst_end: .long reloc_dst_end ._reloc_dst_end: .long reloc_dst_end
._bss_start: .long bss_start ._bss_start: .long bss_start
._bss_end: .long bss_end ._bss_end: .long bss_end
._gd_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE) ._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE)
._stack_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) ._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
._sh_generic_init: .long sh_generic_init ._sh_generic_init: .long sh_generic_init

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -72,6 +73,6 @@ loop:
._reloc_dst_end: .long reloc_dst_end ._reloc_dst_end: .long reloc_dst_end
._bss_start: .long bss_start ._bss_start: .long bss_start
._bss_end: .long bss_end ._bss_end: .long bss_end
._gd_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE) ._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE)
._stack_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) ._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
._sh_generic_init: .long sh_generic_init ._sh_generic_init: .long sh_generic_init

@ -18,6 +18,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <version.h> #include <version.h>
@ -69,6 +70,6 @@ loop:
._reloc_dst_end: .long reloc_dst_end ._reloc_dst_end: .long reloc_dst_end
._bss_start: .long bss_start ._bss_start: .long bss_start
._bss_end: .long bss_end ._bss_end: .long bss_end
._gd_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE) ._gd_init: .long (_start - GENERATED_GBL_DATA_SIZE)
._stack_init: .long (_start - CONFIG_SYS_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16) ._stack_init: .long (_start - GENERATED_GBL_DATA_SIZE - CONFIG_SYS_MALLOC_LEN - 16)
._sh_generic_init: .long sh_generic_init ._sh_generic_init: .long sh_generic_init

@ -89,7 +89,7 @@ static int sh_pci_init(void)
static int sh_mem_env_init(void) static int sh_mem_env_init(void)
{ {
mem_malloc_init(CONFIG_SYS_TEXT_BASE - CONFIG_SYS_GBL_DATA_SIZE - mem_malloc_init(CONFIG_SYS_TEXT_BASE - GENERATED_GBL_DATA_SIZE -
CONFIG_SYS_MALLOC_LEN, CONFIG_SYS_MALLOC_LEN - 16); CONFIG_SYS_MALLOC_LEN, CONFIG_SYS_MALLOC_LEN - 16);
env_relocate(); env_relocate();
jumptable_init(); jumptable_init();
@ -144,7 +144,7 @@ void sh_generic_init(void)
bd_t *bd; bd_t *bd;
init_fnc_t **init_fnc_ptr; init_fnc_t **init_fnc_ptr;
memset(gd, 0, CONFIG_SYS_GBL_DATA_SIZE); memset(gd, 0, GENERATED_GBL_DATA_SIZE);
gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */ gd->flags |= GD_FLG_RELOC; /* tell others: relocation done */

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/asmmacro.h> #include <asm/asmmacro.h>
#include <asm/winmacro.h> #include <asm/winmacro.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/asmmacro.h> #include <asm/asmmacro.h>
#include <asm/winmacro.h> #include <asm/winmacro.h>

@ -36,7 +36,7 @@
* global variables during system initialization (until we have set * global variables during system initialization (until we have set
* up the memory controller so that we can use RAM). * up the memory controller so that we can use RAM).
* *
* Keep it *SMALL* and remember to set CONFIG_SYS_GBL_DATA_SIZE > sizeof(gd_t) * Keep it *SMALL* and remember to set GENERATED_GBL_DATA_SIZE > sizeof(gd_t)
*/ */
typedef struct global_data { typedef struct global_data {

@ -244,7 +244,7 @@ void board_init_f(ulong bootflag)
printf("CONFIG_SYS_PROM_OFFSET: 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET, printf("CONFIG_SYS_PROM_OFFSET: 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET,
CONFIG_SYS_PROM_SIZE); CONFIG_SYS_PROM_SIZE);
printf("CONFIG_SYS_GBL_DATA_OFFSET: 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET, printf("CONFIG_SYS_GBL_DATA_OFFSET: 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET,
CONFIG_SYS_GBL_DATA_SIZE); GENERATED_GBL_DATA_SIZE);
#endif #endif
#ifdef CONFIG_POST #ifdef CONFIG_POST

@ -23,6 +23,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -19,6 +19,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -25,6 +25,7 @@
#define __ASSEMBLY__ 1 #define __ASSEMBLY__ 1
#endif #endif
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <mpc824x.h> #include <mpc824x.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -19,6 +19,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -165,8 +165,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
#define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -24,6 +24,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>

@ -25,6 +25,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -25,6 +25,7 @@
#define __ASSEMBLY__ 1 #define __ASSEMBLY__ 1
#endif #endif
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <mpc824x.h> #include <mpc824x.h>

@ -19,6 +19,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -23,6 +23,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <asm/mmu.h> #include <asm/mmu.h>
#include <config.h> #include <config.h>

@ -25,6 +25,7 @@
#define __ASSEMBLY__ 1 #define __ASSEMBLY__ 1
#endif #endif
#include <asm-offsets.h>
#include <config.h> #include <config.h>
#include <asm/processor.h> #include <asm/processor.h>
#include <mpc824x.h> #include <mpc824x.h>

@ -21,6 +21,7 @@
* MA 02111-1307 USA * MA 02111-1307 USA
*/ */
#include <asm-offsets.h>
#include <ppc_asm.tmpl> #include <ppc_asm.tmpl>
#include <config.h> #include <config.h>
#include <asm/mmu.h> #include <asm/mmu.h>

@ -192,7 +192,7 @@ int do_bdinfo(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
printf("CONFIG_SYS_PROM_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET, printf("CONFIG_SYS_PROM_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_PROM_OFFSET,
CONFIG_SYS_PROM_SIZE); CONFIG_SYS_PROM_SIZE);
printf("CONFIG_SYS_GBL_DATA_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET, printf("CONFIG_SYS_GBL_DATA_OFFSET = 0x%lx (%d)\n", CONFIG_SYS_GBL_DATA_OFFSET,
CONFIG_SYS_GBL_DATA_SIZE); GENERATED_GBL_DATA_SIZE);
#if defined(CONFIG_CMD_NET) #if defined(CONFIG_CMD_NET)
print_eth(0); print_eth(0);

@ -1,2 +1,6 @@
#ifndef DO_DEPS_ONLY
#include <generated/generic-asm-offsets.h> #include <generated/generic-asm-offsets.h>
/* #include <generated/asm-offsets.h> */ /* #include <generated/asm-offsets.h> */
#endif

@ -35,6 +35,7 @@ typedef volatile unsigned short vu_short;
typedef volatile unsigned char vu_char; typedef volatile unsigned char vu_char;
#include <config.h> #include <config.h>
#include <asm-offsets.h>
#include <linux/bitops.h> #include <linux/bitops.h>
#include <linux/types.h> #include <linux/types.h>
#include <linux/string.h> #include <linux/string.h>

@ -172,11 +172,9 @@
*/ */
/* #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE */ /* #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE */
/*#define CONFIG_SYS_GBL_DATA_SIZE 256*/
#define CONFIG_SYS_GBL_DATA_SIZE 128
#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 #define CONFIG_SYS_INIT_RAM_SIZE 0x1000
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE) #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
/* /*

@ -115,8 +115,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR 0x00df0000 /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR 0x00df0000 /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE 0x0f00 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x0f00 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -139,8 +139,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
#define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -210,8 +210,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR 0x400000 /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR 0x400000 /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -421,8 +421,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* reserved bytes for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
/* reserve some memory for BOOT limit info */ /* reserve some memory for BOOT limit info */
#define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 16) #define CONFIG_SYS_INIT_SP_OFFSET (CONFIG_SYS_GBL_DATA_OFFSET - 16)

@ -267,8 +267,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 /* use data cache */ #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 /* use data cache */
#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */

@ -326,8 +326,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -195,8 +195,7 @@
#define CONFIG_SYS_INIT_L2_ADDR 0xf8f80000 /* relocate boot L2SRAM */ #define CONFIG_SYS_INIT_L2_ADDR 0xf8f80000 /* relocate boot L2SRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* num bytes initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Mon */

@ -171,8 +171,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_IMMR
#define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* Size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -248,8 +248,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR (CONFIG_SYS_MBAR + 0x20000) #define CONFIG_SYS_INIT_RAM_ADDR (CONFIG_SYS_MBAR + 0x20000)
#define CONFIG_SYS_INIT_RAM_SIZE 0x8000 /* Size of used area in DPRAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x8000 /* Size of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE

@ -53,7 +53,6 @@
#define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Monitor */ #define CONFIG_SYS_MONITOR_LEN (256 * 1024) /* Reserve 256 kB for Monitor */
#define CONFIG_ENV_SIZE 1024 /* 1024 bytes may be used for env vars*/ #define CONFIG_ENV_SIZE 1024 /* 1024 bytes may be used for env vars*/
#define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024 ) #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + 128*1024 )
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */
/* /*
* Hardware drivers * Hardware drivers

@ -200,8 +200,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR 0x00fd0000 /* above the memtest region */ #define CONFIG_SYS_INIT_RAM_ADDR 0x00fd0000 /* above the memtest region */
#define CONFIG_SYS_INIT_RAM_SIZE 0x4000 #define CONFIG_SYS_INIT_RAM_SIZE 0x4000
#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for init data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/* /*

@ -389,8 +389,7 @@
# define CONFIG_SYS_INIT_RAM_SIZE MPC5XXX_SRAM_SIZE # define CONFIG_SYS_INIT_RAM_SIZE MPC5XXX_SRAM_SIZE
#endif /*CONFIG_POST*/ #endif /*CONFIG_POST*/
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* Bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE #define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_TEXT_BASE

@ -151,8 +151,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MONITOR_LEN #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_SDRAM_BASE + CONFIG_SYS_MONITOR_LEN
#define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2F00 /* Size of used area in DPRAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/* /*

@ -224,8 +224,7 @@
*/ */
#define CONFIG_SYS_INIT_RAM_ADDR 0x00ef0000 /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR 0x00ef0000 /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE 0x0f00 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x0f00 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 64 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */

@ -516,8 +516,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -288,8 +288,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR CONFIG_SYS_OCM_DATA_ADDR /* inside of SDRAM */
#define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE CONFIG_SYS_OCM_DATA_SIZE /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -153,11 +153,10 @@
/* Size in bytes reserved for initial data /* Size in bytes reserved for initial data
*/ */
#define CONFIG_SYS_GBL_DATA_SIZE 128
#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000
#define CONFIG_SYS_INIT_RAM_SIZE 0x1000 #define CONFIG_SYS_INIT_RAM_SIZE 0x1000
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE) #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
/* /*
* NS16550 Configuration * NS16550 Configuration

@ -260,8 +260,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 /* use data cache */ #define CONFIG_SYS_INIT_RAM_ADDR 0x40000000 /* use data cache */
#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
/*----------------------------------------------------------------------- /*-----------------------------------------------------------------------

@ -336,8 +336,7 @@
#define CONFIG_SYS_INIT_RAM_ADDR 0x00df0000 /* inside of SDRAM */ #define CONFIG_SYS_INIT_RAM_ADDR 0x00df0000 /* inside of SDRAM */
#endif #endif
#define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */ #define CONFIG_SYS_INIT_RAM_SIZE 0x2000 /* Size of used area in RAM */
#define CONFIG_SYS_GBL_DATA_SIZE 128 /* size in bytes reserved for initial data */ #define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)
#define CONFIG_SYS_GBL_DATA_OFFSET (CONFIG_SYS_INIT_RAM_SIZE - CONFIG_SYS_GBL_DATA_SIZE)
#define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET #define CONFIG_SYS_INIT_SP_OFFSET CONFIG_SYS_GBL_DATA_OFFSET
#endif /* __CONFIG_H */ #endif /* __CONFIG_H */

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save