diff options
author | isiora <none@example.com> | 2018-01-24 19:47:54 +0000 |
---|---|---|
committer | isiora <none@example.com> | 2018-01-24 19:47:54 +0000 |
commit | 9e79944c8a1f79f66ea3a9f77a06074a4d6a5e36 (patch) | |
tree | da8166c3396ec766d016ddcd95c4fe1d4b9ebc77 /os/common/ports/ARMCAx-TZ/chcore.h | |
parent | 425c60e8e62c9580366020a0774bcb26cbbb4e98 (diff) | |
download | ChibiOS-9e79944c8a1f79f66ea3a9f77a06074a4d6a5e36.tar.gz ChibiOS-9e79944c8a1f79f66ea3a9f77a06074a4d6a5e36.tar.bz2 ChibiOS-9e79944c8a1f79f66ea3a9f77a06074a4d6a5e36.zip |
Added saving of banked register.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11402 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/common/ports/ARMCAx-TZ/chcore.h')
-rw-r--r-- | os/common/ports/ARMCAx-TZ/chcore.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/os/common/ports/ARMCAx-TZ/chcore.h b/os/common/ports/ARMCAx-TZ/chcore.h index ba49735a2..d31f0f736 100644 --- a/os/common/ports/ARMCAx-TZ/chcore.h +++ b/os/common/ports/ARMCAx-TZ/chcore.h @@ -433,7 +433,7 @@ static inline bool port_is_isr_context(void) { /**
* @brief Kernel-lock action.
- * @details In this port it disables the FIQ and IRQ sources.
+ * @details In this port it disables the FIQ and keep IRQ state.
*/
static inline void port_lock(void) {
@@ -445,11 +445,7 @@ static inline void port_lock(void) { * @details In this port it enables the FIQ and IRQ sources.
*/
static inline void port_unlock(void) {
-extern thread_reference_t _ns_thread;
- if (_ns_thread)
- __asm volatile ("cpsie if" : : : "memory");
- else
- __asm volatile ("cpsie f" : : : "memory");
+ __asm volatile ("cpsie if" : : : "memory");
}
/**
|