summaryrefslogtreecommitdiff
path: root/chip/lm4/system.c
diff options
context:
space:
mode:
Diffstat (limited to 'chip/lm4/system.c')
-rw-r--r--chip/lm4/system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/chip/lm4/system.c b/chip/lm4/system.c
index 6a55b2941e..78db1b38a3 100644
--- a/chip/lm4/system.c
+++ b/chip/lm4/system.c
@@ -176,7 +176,8 @@ static void check_reset_cause(void)
* functions, and can't be declared static (or else the compiler optimizes it
* into the main hibernate function.
*/
-void __attribute__((section(".iram.text"))) __enter_hibernate(int hibctl)
+void __attribute__((noinline)) __attribute__((section(".iram.text")))
+__enter_hibernate(int hibctl)
{
LM4_HIBERNATE_HIBCTL = hibctl;
while (1)