diff options
Diffstat (limited to 'include/system.h')
-rw-r--r-- | include/system.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/system.h b/include/system.h index 03a2c15238..360b850470 100644 --- a/include/system.h +++ b/include/system.h @@ -120,10 +120,22 @@ uintptr_t get_program_memory_addr(enum ec_image copy); /** * Return non-zero if the system has switched between image copies at least * once since the last real boot. + * + * You probably need to call system_jumped_late instead if you're trying to + * avoid initializing something again in RW. */ int system_jumped_to_this_image(void); /** + * Return non-zero if late (legacy) sysjump occurred. + * + * This happens when EFS failed but RO still jumped to RW late on AP's request. + * This is typically called to avoid running some code twice (once in RO and + * again in RW). + */ +int system_jumped_late(void); + +/** * Preserve data across a jump between images. * * This may ONLY be called from within a HOOK_SYSJUMP handler. |