diff options
author | Rob Barnes <robbarnes@google.com> | 2022-09-14 20:47:00 +0000 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-11-17 00:47:31 +0000 |
commit | afdd762d014f295e19b71d789890e565d5b9286d (patch) | |
tree | dc4986e66945c4d246a056852f039fc2c5dce26f /include/system.h | |
parent | ec31407993ec9b5ae14fed72d728a4061d656d65 (diff) | |
download | chrome-ec-afdd762d014f295e19b71d789890e565d5b9286d.tar.gz |
system: Ensure space for panic and jump data
Ensure space is available for end of ram data. End of ram data must be
located at the very end of noinit ram. This currently includes
panic_data followed by jump_data.
This is being enforced with linker asserts and build asserts rather
than allocating the space directly so RAM utiliztion reports are still
relevant.
Introduce PLATFORM_EC_PRESERVED_END_OF_RAM_SIZE config option and
default it to 1KB. This can be adjusted on boards that are
constrained.
BUG=b:246778588,b:246798928
BRANCH=None
TEST=./twister -c -s zephyr/test/jump_tags/jump_tags.default
&& make run-kb_8042
Change-Id: I444bbe3a583396b4f9b104bb6999e78ae3ff6f2f
Signed-off-by: Rob Barnes <robbarnes@google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3896272
Reviewed-by: Aaron Massey <aaronmassey@google.com>
Reviewed-by: Daisuke Nojiri <dnojiri@chromium.org>
Reviewed-by: Fabio Baltieri <fabiobaltieri@google.com>
Code-Coverage: Zoss <zoss-cl-coverage@prod.google.com>
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/system.h b/include/system.h index ed811e9626..4d98136da5 100644 --- a/include/system.h +++ b/include/system.h @@ -214,7 +214,7 @@ int system_jumped_late(void); * This may ONLY be called from within a HOOK_SYSJUMP handler. * * @param tag Data type - * @param size Size of data; must be less than 255 bytes. + * @param size Size of data; must be less than JUMP_TAG_MAX_SIZE bytes. * @param version Data version, so that tag data can evolve as firmware * is updated. * @param data Pointer to data to save |