From: regehr Date: Tue, 9 Dec 2008 03:55:12 +0000 (+0000) Subject: put the AVR break instruction back into the failure handler X-Git-Tag: rc_6_tinyos_2_1_1~547 X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=commitdiff_plain;h=f6780f680fc3306ef6074b7414b6705e4f5dd2d5;p=tinyos-2.x.git put the AVR break instruction back into the failure handler --- 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); }