diff options
author | Ahmad Fatoum <ahmad@a3f.at> | 2021-04-10 13:03:55 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-04-13 09:30:45 +0200 |
commit | 5b537db03b3e73a8c1b465168d85b9cc3e045498 (patch) | |
tree | e218488d7506a7eb9905914b8d2d2f4e91451ff5 /common/memory.c | |
parent | f630fef413ae1a941a672e6fb1890585d8270bf1 (diff) | |
download | barebox-5b537db03b3e73a8c1b465168d85b9cc3e045498.tar.gz |
resource: enable use of iomem command on EFI systems
iomem was so far unimplemented for EFI, because barebox didn't know what
to put there as the UEFI implementation does the heavy lifting.
Add an initcall that uses the EFI get_memory_map entry point to
remedy this.
Signed-off-by: Ahmad Fatoum <ahmad@a3f.at>
Link: https://lore.pengutronix.de/20210410110355.2105448-1-ahmad@a3f.at
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/memory.c')
-rw-r--r-- | common/memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/memory.c b/common/memory.c index a56eaf9494..392522bfc3 100644 --- a/common/memory.c +++ b/common/memory.c @@ -53,7 +53,7 @@ void mem_malloc_init(void *start, void *end) mem_malloc_initialized = 1; } -#if !defined __SANDBOX__ && !defined CONFIG_EFI_BOOTUP +#if !defined __SANDBOX__ static int mem_malloc_resource(void) { /* |