diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-03 15:46:41 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-04-03 15:46:41 +0000 |
commit | 000181feeac6baaef0c1e2c505365489b260aad9 (patch) | |
tree | fc515cbb734c7cf226260624d6a77175e8bfd552 /os/ports | |
parent | 8f0fb6e02eb6d94587232e2e9ed06bb1580c0f23 (diff) | |
download | ChibiOS-000181feeac6baaef0c1e2c505365489b260aad9.tar.gz ChibiOS-000181feeac6baaef0c1e2c505365489b260aad9.tar.bz2 ChibiOS-000181feeac6baaef0c1e2c505365489b260aad9.zip |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1844 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/ports')
-rw-r--r-- | os/ports/GCC/ARMCMx/chcore_v7m.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/os/ports/GCC/ARMCMx/chcore_v7m.c b/os/ports/GCC/ARMCMx/chcore_v7m.c index e5df0d296..d199afdad 100644 --- a/os/ports/GCC/ARMCMx/chcore_v7m.c +++ b/os/ports/GCC/ARMCMx/chcore_v7m.c @@ -29,12 +29,12 @@ #if !CH_OPTIMIZE_SPEED
void _port_lock(void) {
- register uint32_t tmp asm ("r3") = BASEPRI_KERNEL;
+ register uint32_t tmp asm ("r3") = CORTEX_BASEPRI_KERNEL;
asm volatile ("msr BASEPRI, %0" : : "r" (tmp));
}
void _port_unlock(void) {
- register uint32_t tmp asm ("r3") = BASEPRI_USER;
+ register uint32_t tmp asm ("r3") = CORTEX_BASEPRI_DISABLED;
asm volatile ("msr BASEPRI, %0" : : "r" (tmp));
}
#endif
|