summaryrefslogtreecommitdiffstats
path: root/kernel/arch/xtensa/platforms/iss/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/arch/xtensa/platforms/iss/setup.c')
-rw-r--r--kernel/arch/xtensa/platforms/iss/setup.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/arch/xtensa/platforms/iss/setup.c b/kernel/arch/xtensa/platforms/iss/setup.c
index da7d18240..391820539 100644
--- a/kernel/arch/xtensa/platforms/iss/setup.c
+++ b/kernel/arch/xtensa/platforms/iss/setup.c
@@ -61,7 +61,9 @@ void platform_restart(void)
#if XCHAL_NUM_IBREAK > 0
"wsr a2, ibreakenable\n\t"
#endif
+#if XCHAL_HAVE_LOOPS
"wsr a2, lcount\n\t"
+#endif
"movi a2, 0x1f\n\t"
"wsr a2, ps\n\t"
"isync\n\t"