Description: Sync liteos_m to OpenHarmony.

Reviewed-by: likailong
This commit is contained in:
huangjieliang
2021-01-29 11:02:40 +08:00
parent b030e0e8e2
commit 25b432927c
66 changed files with 7645 additions and 959 deletions

11
kernel/src/los_queue.c Normal file → Executable file
View File

@@ -34,12 +34,9 @@
#include "los_membox.h"
#include "los_task.h"
#include "los_memory.h"
#if (LOSCFG_PLATFORM_EXC == 1)
#include "los_interrupt.h"
#endif
#include "los_debug.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
@@ -50,9 +47,6 @@ extern "C" {
LITE_OS_SEC_BSS LosQueueCB *g_allQueue = NULL ;
LITE_OS_SEC_BSS LOS_DL_LIST g_freeQueueList;
#if (LOSCFG_PLATFORM_EXC == 1)
LITE_OS_SEC_BSS UINT32 g_excQueueMaxNum;
#endif
/**************************************************************************
Function : OsQueueInit
@@ -85,11 +79,6 @@ LITE_OS_SEC_TEXT_INIT UINT32 OsQueueInit(VOID)
LOS_ListTailInsert(&g_freeQueueList, &queueNode->readWriteList[OS_QUEUE_WRITE]);
}
#if (LOSCFG_PLATFORM_EXC == 1)
g_excQueueMaxNum = LOSCFG_BASE_IPC_QUEUE_LIMIT;
HalExcRegister(OS_EXC_TYPE_QUE, (EXC_INFO_SAVE_CALLBACK)LOS_QueueInfoGet, &g_excQueueMaxNum);
#endif
return LOS_OK;
}