From f6780f680fc3306ef6074b7414b6705e4f5dd2d5 Mon Sep 17 00:00:00 2001 From: regehr Date: Tue, 9 Dec 2008 03:55:12 +0000 Subject: [PATCH] put the AVR break instruction back into the failure handler --- tos/lib/safe/SafeFailureHandlerP.nc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tos/lib/safe/SafeFailureHandlerP.nc b/tos/lib/safe/SafeFailureHandlerP.nc index 74d6892e..c8fb772e 100644 --- a/tos/lib/safe/SafeFailureHandlerP.nc +++ b/tos/lib/safe/SafeFailureHandlerP.nc @@ -120,6 +120,9 @@ implementation { void deputy_fail_noreturn_fast (int flid) @C() @spontaneous() { atomic { +#if defined(__AVR_ARCH__) + asm volatile ("break"); +#endif while(1) { display_int_flid(flid); } -- 2.39.2