kernel测试套适配xtensa及csky架构

Signed-off-by: gsshch <17326005269@163.com>
This commit is contained in:
LiteOS2021
2022-01-11 14:54:32 +08:00
committed by gsshch
parent 47c6ef37d7
commit dcda9dcfa3
42 changed files with 125 additions and 69 deletions

View File

@@ -245,7 +245,7 @@ UINT32 los_TestInit(VOID)
return ret;
}
UINT32 LosAppInit()
UINT32 LosAppInit(VOID)
{
UINT32 ret;
@@ -299,7 +299,11 @@ UINT64 LosCpuCycleGet(VOID)
#define HWI_BIT 2
VOID TestHwiTrigger(UINT32 hwiNum)
{
#if defined(__CSKY_V2__) || defined(__XTENSA_LX6__)
HalIrqPending(hwiNum);
#else
*(volatile UINT32 *)(OS_NVIC_SETPEND + ((hwiNum >> HWI_SHIFT_NUM) << HWI_BIT)) = 1 << (hwiNum & 0x1F);
#endif
}
VOID TestHwiUnTrigger(UINT32 hwiNum)