u-boot-brain/arch
Simon Glass 4213fc2913 sandbox: Add un/map_sysmen() to deal with sandbox's ram_buf
Sandbox doesn't actually provide U-Boot access to the machine's physical
memory. Instead it provides a RAM buffer of configurable size, and all
memory accesses are within that buffer. Sandbox memory starts at 0 and
is CONFIG_DRAM_SIZE bytes in size. Allowing access outside this buffer
might produce unpredictable results in the event of an error, and would
expose the host machine's memory architecture to the sandbox U-Boot.

Most U-Boot functions assume that they can just access memory at given
address. For sandbox this is not true.

Add a map_sysmem() call which converts a U-Boot address to a system
address. In most cases this is a NOP, but for sandbox it returns a
pointer to that memory inside the RAM buffer.

To get a U-Boot feature to work correctly within sandbox, you should call
map_sysmem() to get a pointer to the address, and then use that address for
any U-Boot memory accesses.

Signed-off-by: Simon Glass <sjg@chromium.org>
2013-02-28 19:09:22 -08:00
..
arm mac: Fix the condition check for setting the MAC from the EEPROM 2013-02-20 08:52:41 -05:00
avr32 malloc: make malloc_bin_reloc static 2013-02-19 17:01:26 -05:00
blackfin blackfin: Use generic global_data 2013-02-04 09:05:45 -05:00
m68k malloc: make malloc_bin_reloc static 2013-02-19 17:01:26 -05:00
microblaze Merge branch 'master' of git://www.denx.de/git/u-boot-microblaze 2013-02-04 09:14:22 -05:00
mips MIPS: board.c: remove manual relocation of env_name_spec 2013-02-15 18:00:04 +01:00
nds32 malloc: make malloc_bin_reloc static 2013-02-19 17:01:26 -05:00
nios2 Clean up libfdt.h includes 2013-02-08 22:32:38 -05:00
openrisc openrisc: Use generic global_data 2013-02-04 09:05:46 -05:00
powerpc Clean up libfdt.h includes 2013-02-08 22:32:38 -05:00
sandbox sandbox: Add un/map_sysmen() to deal with sandbox's ram_buf 2013-02-28 19:09:22 -08:00
sh sh: Use generic global_data 2013-02-04 09:05:46 -05:00
sparc malloc: make malloc_bin_reloc static 2013-02-19 17:01:26 -05:00
x86 x86: Remove unused real mode code 2013-02-14 20:19:03 -08:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00