u-boot-brain/arch/sandbox/cpu
Simon Glass 428aa0ca56 sandbox: Enhance map_to_sysmem() to handle foreign pointers
At present map_sysmem() maps an address into the sandbox RAM buffer,
return a pointer, while map_to_sysmem() goes the other way.

The mapping is currently just 1:1 since a case was not found where a more
flexible mapping was needed. PCI does have a separate and more complex
mapping, but uses its own mechanism.

However this arrange cannot handle one important case, which is where a
test declares a stack variable and passes a pointer to it into a U-Boot
function which uses map_to_sysmem() to turn it into a address. Since the
pointer is not inside emulated DRAM, this will fail.

Add a mapping feature which can handle any such pointer, mapping it to a
simple tag value which can be passed around in U-Boot as an address.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
2018-09-23 21:55:30 +02:00
..
cpu.c sandbox: Enhance map_to_sysmem() to handle foreign pointers 2018-09-23 21:55:30 +02:00
eth-raw-os.c sandbox: eth-raw: Add a SIMPLE_BUS to enumerate host interfaces 2018-07-26 14:08:19 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
os.c sandbox: Add support for calling abort() 2018-09-23 21:55:30 +02:00
sdl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
spl.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
state.c sandbox: Enhance map_to_sysmem() to handle foreign pointers 2018-09-23 21:55:30 +02:00
u-boot-spl.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot.lds Partially revert "efi_loader: Rename sections to allow for implicit data" 2018-08-23 16:17:41 -04:00