u-boot-brain/arch
Simon Glass 781adb5710 sandbox: Provide a way to map from host RAM to U-Boot RAM
In many cases, pointers to memory are passed around, and these pointers
refer to U-Boot memory, not host memory. This in itself is not a
problem.

However, in a few places, we cast that pointer back to a ulong (being
a U-Boot memory address). It is possible to convert many of these cases
to avoid this. However there are data structures (e.g. struct
bootm_headers) which use pointers. We could with a lot of effort adjust
the structs and all code that uses them to use ulong instead of pointers.

This seems like an unacceptable cost, since our objective with sandbox
is to minimise the impact on U-Boot code while maximising the features
available to sandbox.

Therefore, create a map_to_sysmem() function which converts from a
pointer to a U-Boot address. This can be used sparingly when needed.

Signed-off-by: Simon Glass <sjg@chromium.org>
2013-05-01 11:17:21 -04:00
..
arm exynos: Correct use of 64-bit division 2013-04-17 10:00:40 +09:00
avr32 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
blackfin Consolidate bool type 2013-04-01 16:33:52 -04:00
m68k Consolidate bool type 2013-04-01 16:33:52 -04:00
microblaze watchdog: Add support for Xilinx Microblaze watchdog 2013-04-30 11:22:43 +02:00
mips Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
nds32 Consolidate bool type 2013-04-01 16:33:52 -04:00
nios2 Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
openrisc Introduce generic link section.h symbol files 2013-03-15 16:13:58 -04:00
powerpc ppc4xx: Add SPL support 2013-04-22 09:53:53 +02:00
sandbox sandbox: Provide a way to map from host RAM to U-Boot RAM 2013-05-01 11:17:21 -04:00
sh Merge branch 'master' of git://git.denx.de/u-boot-arm 2013-03-18 14:37:18 -04:00
sparc sparc: Fix build warnings in serial.c 2013-03-15 16:14:02 -04:00
x86 x86: Fix DRAM bank size init with generic board 2013-04-15 16:26:09 -07:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00