mirror of https://github.com/ARMmbed/mbed-os.git
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
parent
18f341cdc3
commit
eab7196f0f
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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 ===
|
||||
|
|
|
|||
Loading…
Reference in New Issue