diff options
Diffstat (limited to 'include/hooks.h')
-rw-r--r-- | include/hooks.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/hooks.h b/include/hooks.h index 889cf553bc..a0e12e708b 100644 --- a/include/hooks.h +++ b/include/hooks.h @@ -18,8 +18,14 @@ enum hook_priority { enum hook_type { - HOOK_INIT, /* System init */ + HOOK_INIT = 0, /* System init */ HOOK_FREQ_CHANGE, /* System clock changed frequency */ + HOOK_SYSJUMP, /* About to jump to another image. Modules which + * need to preserve data across such a jump should + * save it here and restore it in HOOK_INIT. + * + * NOTE: This hook is called with interrupts + * disabled! */ }; |