diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-04 15:13:53 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-12-29 22:16:43 +0000 |
commit | 0be966a98cd999239152881295acb24e9f4581e3 (patch) | |
tree | 5e2d9a0f28cc05cf728ac90efc63602bae7ac260 /include/link_defs.h | |
parent | 43196a9a0d47b7c44b726da92093c3674f4a6828 (diff) | |
download | chrome-ec-0be966a98cd999239152881295acb24e9f4581e3.tar.gz |
zephyr: Add basic support for shared memory
On the EC, shared memory is at the top of RAM, above all linker symbols
that are located in RAM.
Add a simple shim for this. At present it does enough to compile, but
does not actually work. Yuval probably knows what should be done here.
Add a Kconfig for the 'shmem' command.
BUG=b:174873770
BRANCH=none
TEST=build and boot on volteer (nothing useful happens)
20-12-04 15:22:49.267 shmem
20-12-04 15:22:50.011 Size:-537684993
20-12-04 15:22:50.011 Used: 0
20-12-04 15:22:50.011 Max: 0
Signed-off-by: Simon Glass <sjg@chromium.org>
Change-Id: I465c8519476e7c4a4cafba2f06630675f396c252
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2575207
Reviewed-by: Yuval Peress <peress@chromium.org>
Diffstat (limited to 'include/link_defs.h')
-rw-r--r-- | include/link_defs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/link_defs.h b/include/link_defs.h index 5b04b857bb..4dc71d5f4f 100644 --- a/include/link_defs.h +++ b/include/link_defs.h @@ -15,6 +15,10 @@ #include "task.h" #include "test_util.h" +#ifdef CONFIG_ZEPHYR +#include <linker.h> +#endif + /* Console commands */ extern const struct console_command __cmds[]; extern const struct console_command __cmds_end[]; |