diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-14 09:40:19 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2011-08-14 09:40:19 +0000 |
commit | c4f7ff481d48de87320c9d20dfa6f2a22da79587 (patch) | |
tree | fc3e28c71307afa1c674373736d0374fe5b2a1e9 /os/ports/cosmic/STM8 | |
parent | 930cd17e552e19a20bdb1c356aedc184b6f059f7 (diff) | |
download | ChibiOS-c4f7ff481d48de87320c9d20dfa6f2a22da79587.tar.gz ChibiOS-c4f7ff481d48de87320c9d20dfa6f2a22da79587.tar.bz2 ChibiOS-c4f7ff481d48de87320c9d20dfa6f2a22da79587.zip |
STM8, MSP430 and AVR ports adjusted for state checker option.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3229 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports/cosmic/STM8')
-rw-r--r-- | os/ports/cosmic/STM8/chcore.c | 4 | ||||
-rw-r--r-- | os/ports/cosmic/STM8/chcore.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/os/ports/cosmic/STM8/chcore.c b/os/ports/cosmic/STM8/chcore.c index c5f1de2d6..3c1807330 100644 --- a/os/ports/cosmic/STM8/chcore.c +++ b/os/ports/cosmic/STM8/chcore.c @@ -50,8 +50,8 @@ void _port_switch(Thread *otp) { */
void _port_thread_start(void) {
- _asm(" rim \n"
- " popw x \n");
+ chSysUnlock();
+ _asm(" popw x \n");
}
/**
diff --git a/os/ports/cosmic/STM8/chcore.h b/os/ports/cosmic/STM8/chcore.h index 75bed68cc..9073592aa 100644 --- a/os/ports/cosmic/STM8/chcore.h +++ b/os/ports/cosmic/STM8/chcore.h @@ -203,8 +203,10 @@ struct stm8_startctx { * enabled to invoke system APIs.
*/
#define PORT_IRQ_EPILOGUE() { \
+ dbg_check_lock(); \
if (chSchIsPreemptionRequired()) \
chSchDoReschedule(); \
+ dbg_check_unlock(); \
}
/**
|