aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/ARM/compilers
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-06-04 09:40:31 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2014-06-04 09:40:31 +0000
commit1859a4ba0957bb9aabf1a07feb96a52c9f95ecf7 (patch)
tree77dc730d9250b906926a2275cc9409e0a83b1cfe /os/rt/ports/ARM/compilers
parent31774bb3d79d528926bf2c0dffa951bda0ba56f1 (diff)
downloadChibiOS-1859a4ba0957bb9aabf1a07feb96a52c9f95ecf7.tar.gz
ChibiOS-1859a4ba0957bb9aabf1a07feb96a52c9f95ecf7.tar.bz2
ChibiOS-1859a4ba0957bb9aabf1a07feb96a52c9f95ecf7.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6981 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/rt/ports/ARM/compilers')
-rw-r--r--os/rt/ports/ARM/compilers/GCC/chcoreasm.s15
1 files changed, 13 insertions, 2 deletions
diff --git a/os/rt/ports/ARM/compilers/GCC/chcoreasm.s b/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
index c97a7cb0c..4e615a8ce 100644
--- a/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
+++ b/os/rt/ports/ARM/compilers/GCC/chcoreasm.s
@@ -47,13 +47,24 @@
.text
/*
- * Interrupt enable/disable functions, only present if there is THUMB code in
- * the system because those are inlined in ARM code.
+ * The following functions are only present if there is THUMB code in
+ * the system.
*/
#if defined(THUMB_PRESENT)
.balign 16
.code 16
.thumb_func
+ .global _port_get_cpsr
+_port_get_cpsr:
+ mov r0, pc
+ bx r0
+.code 32
+ mrs r0, CPSR
+ bx lr
+
+ .balign 16
+ .code 16
+ .thumb_func
.global _port_disable_thumb
_port_disable_thumb:
mov r3, pc