sync the upstream

This commit is contained in:
Wang_Weigen
2022-05-07 10:47:23 +08:00
109 changed files with 5542 additions and 520 deletions
@@ -94,12 +94,10 @@ static int32 _SemaphoreObtain(struct Semaphore *sem, int32 msec)
struct TaskDescriptor *task = NONE;
NULL_PARAM_CHECK(sem);
if(WAITING_FOREVER == msec)
wait_time = WAITING_FOREVER;
else
wait_time = CalculteTickFromTimeMs(msec);
lock = CriticalAreaLock();
SYS_KDEBUG_LOG(KDBG_IPC, ("obtain semaphore: id %d, value %d, by task %s\n",