* loaded from the task control block. Next the value for usCriticalNesting\r
* used by the task is retrieved from the stack - followed by the value of all\r
* the general purpose msp430 registers.\r
+ *\r
+ * The bic instruction ensures there are no low power bits set in the status\r
+ * register that is about to be popped from the stack.\r
*/\r
#define portRESTORE_CONTEXT() \\r
asm volatile ( "mov.w pxCurrentTCB, r12 \n\t" \\r
"pop r6 \n\t" \\r
"pop r5 \n\t" \\r
"pop r4 \n\t" \\r
+ "bic #(0xf0),0(r1) \n\t" \\r
"reti \n\t" \\r
);\r
/*-----------------------------------------------------------*/\r