u-boot-brain/arch
Graeme Russ 077e1958ca x86: Add RAM bootstrap functionality
Add a parameter to the 32-bit entry to indicate if entry is from Real
Mode or not. If entry is from Real Mode, execute the destructive 'sizer'
routine to determine memory size as we are booting cold and running in
Flash. If not entering from Real Mode, we are executing a U-Boot image
from RAM and therefore the memory size is already known (and running
'sizer' will destroy the running image)

There are now two 32-bit entry points. The first is the 'in RAM' entry
point which exists at the start of the U-Boot binary image. As such,
you can load u-boot.bin in RAM and jump directly to the load address
without needing to calculate any offsets. The second entry point is
used by the real-to-protected mode switch

This patch also changes TEXT_BASE to 0x6000000 (in RAM). You can load
the resulting image at 0x6000000 and simple go 0x6000000 from the u-boot
prompt

Hopefully a later patch will completely elliminate any dependency on
TEXT_BASE like a relocatable linux kernel (perfect world)

Signed-off-by: Graeme Russ <graeme.russ@gmail.com>
2010-05-06 00:15:31 +02:00
..
arm at91: define matrix registers bit fields 2010-04-30 05:23:26 -05:00
avr32 avr32: Move cpu/at32ap/* to arch/avr32/cpu/* 2010-04-13 09:13:25 +02:00
blackfin blackfin: Move cpu/blackfin/* to arch/blackfin/cpu/* 2010-04-13 09:13:25 +02:00
i386 x86: Add RAM bootstrap functionality 2010-05-06 00:15:31 +02:00
m68k m68k: Move cpu/$CPU to arch/m68k/cpu/$CPU 2010-04-13 09:13:24 +02:00
microblaze microblaze: Consolidate cache code 2010-04-16 12:56:33 +02:00
mips mips: Move cpu/mips/* to arch/mips/cpu/* 2010-04-13 09:13:25 +02:00
nios nios: Move cpu/nios/* to arch/nios/cpu/* 2010-04-13 09:13:27 +02:00
nios2 nios2: fix no flash, add nand and mmc init in board.c 2010-04-24 18:21:23 -04:00
powerpc ppc: unused memory region too close to current stack pointer 2010-05-05 23:55:02 +02:00
sh sh: Move cpu/$CPU to arch/sh/cpu/$CPU 2010-04-13 09:13:17 +02:00
sparc sparc: Move cpu/leon[23] to arch/sparc/cpu/leon[23] 2010-04-13 09:13:26 +02:00