diff options
author | Simon Glass | 2022-07-13 06:06:58 -0600 |
---|---|---|
committer | Simon Glass | 2022-07-26 02:30:56 -0600 |
commit | 281996110c1f42b5476e43040798cb38169b6119 (patch) | |
tree | 01b20167e46f50bead23e6d34bc5335ff58356bc /include/addr_map.h | |
parent | 109dbdf042e2a034edd8ed7b711143c522cb1465 (diff) |
addrmap: Support on sandbox
Update this feature so that it works on sandbox, using a basic identity
mapping. This allows us to run the 'ut addrmap' test.
Also fix up the test to use the correct macros to access the linker
list, so that the 'ut addrmap' command actually works.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/addr_map.h')
-rw-r--r-- | include/addr_map.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/addr_map.h b/include/addr_map.h index 55d3a6a165a..db3712b5d30 100644 --- a/include/addr_map.h +++ b/include/addr_map.h @@ -14,7 +14,9 @@ struct addrmap { unsigned long vaddr; }; +#ifdef CONFIG_ADDR_MAP extern struct addrmap address_map[CONFIG_SYS_NUM_ADDR_MAP]; +#endif phys_addr_t addrmap_virt_to_phys(void *vaddr); void *addrmap_phys_to_virt(phys_addr_t paddr); |