Maintain legacy RTOS behavior before mbed-5

Fork of mbed-rtos by mbed official

Revision:
70:3295e347fd88
Parent:
68:d3d0e710b443
Child:
72:83895f30f8f2
diff -r 94c39314568d -r 3295e347fd88 rtx/TARGET_CORTEX_A/rt_CMSIS.c
--- a/rtx/TARGET_CORTEX_A/rt_CMSIS.c	Tue Mar 31 16:15:17 2015 +0100
+++ b/rtx/TARGET_CORTEX_A/rt_CMSIS.c	Wed Apr 08 07:30:42 2015 +0100
@@ -2066,6 +2066,10 @@
   return osMessagePut(*((void **)queue_id), (uint32_t)mail, 0);
 }
 
+#ifdef __arm__
+#pragma push
+#pragma Ospace
+#endif // __arm__
 /// Get a mail from a queue
 os_InRegs osEvent osMailGet (osMailQId queue_id, uint32_t millisec) {
   osEvent ret;
@@ -2080,3 +2084,6 @@
 
   return ret;
 }
+#ifdef __arm__
+#pragma pop
+#endif // __arm__