提交 e12055cf 编写于 作者: 星e雨's avatar 星e雨 提交者: Gitee

修复CPUP编译失败问题

上级 5ee18038
......@@ -32,7 +32,9 @@
#include "los_cpup.h"
#include "securec.h"
#include "los_memory.h"
#include "los_timer.h"
#include "los_debug.h"
#ifdef __cplusplus
#if __cplusplus
extern "C" {
......@@ -60,13 +62,11 @@ LITE_OS_SEC_BSS OsCpupCB *g_cpup = NULL;
LITE_OS_SEC_BSS UINT64 g_lastRecordTime;
LITE_OS_SEC_BSS UINT16 g_hisPos; /* <current Sampling point of historyTime */
extern VOID LOS_GetCpuCycle(UINT32 *cntHi, UINT32 *cntLo);
LITE_OS_SEC_TEXT_MINOR STATIC INLINE UINT64 OsGetCurrentCyclesCount(VOID)
{
UINT32 high = 0;
UINT32 low = 0;
LOS_GetCpuCycle(&high, &low);
HalGetCpuCycle(&high, &low);
return (((UINT64)high << 32) + low); // 32 means bits of word
}
......
......@@ -50,6 +50,9 @@
#include "los_swtmr.h"
#endif
#if (LOSCFG_BASE_CORE_CPUP == 1)
#include "los_cpup.h"
#endif
#ifdef __cplusplus
#if __cplusplus
......@@ -132,7 +135,7 @@ LITE_OS_SEC_TEXT_INIT UINT32 LOS_KernelInit(VOID)
}
#if (LOSCFG_BASE_CORE_TSK_MONITOR == 1)
OsTaskMonInit();
OsTaskMonInit();
#endif
#if (LOSCFG_BASE_CORE_CPUP == 1)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册