Reflect the change size of the structure of the Mutex to ethernet module.

We reflected the change size of the structure of the Mutex associated with NEON of CMSIS-RTOS RTX for Cortex-A9support to ethernet module.
pull/1375/head
tomoyuki yamanaka 2015-10-06 21:10:53 +09:00
parent 18f341cdc3
commit eab7196f0f
2 changed files with 8 additions and 0 deletions

View File

@ -285,7 +285,11 @@ void sys_sem_free(sys_sem_t *sem) {}
* @return a new mutex */
err_t sys_mutex_new(sys_mutex_t *mutex) {
#ifdef CMSIS_OS_RTX
#ifdef __MBED_CMSIS_RTOS_CA9
memset(mutex->data, 0, sizeof(int32_t)*4);
#else
memset(mutex->data, 0, sizeof(int32_t)*3);
#endif
mutex->def.mutex = mutex->data;
#endif
mutex->id = osMutexCreate(&mutex->def);

View File

@ -40,8 +40,12 @@ typedef struct {
osMutexId id;
osMutexDef_t def;
#ifdef CMSIS_OS_RTX
#ifdef __MBED_CMSIS_RTOS_CA9
int32_t data[4];
#else
int32_t data[3];
#endif
#endif
} sys_mutex_t;
// === MAIL BOX ===