Home
last modified time | relevance | path

Searched refs:OsVoidFunc (Results 1 – 9 of 9) sorted by relevance

/kernel/uniproton/src/om/include/
Dprt_hook_external.h37 #define OS_MHOOK_NODE_DEAD ((OsVoidFunc)2)
44 OS_SEC_ALW_INLINE INLINE bool OsMhookBoundaryCheck(OsVoidFunc hook) in OsMhookBoundaryCheck()
49 OS_SEC_ALW_INLINE INLINE bool OsMhookValidCheck(OsVoidFunc hook) in OsMhookValidCheck()
56 OsVoidFunc *tmp_ = hook; \
57 while (!OsMhookBoundaryCheck((OsVoidFunc)((pfn) = (funcType)(*tmp_)))) { \
58 if (OsMhookValidCheck((OsVoidFunc)(pfn))) { \
67 OsVoidFunc *hook = g_hookCb[(hookType)].mulHook; \
143 OsVoidFunc sigHook;
144 OsVoidFunc *mulHook;
157 extern U32 OsMhookAdd(U32 hookType, OsVoidFunc hook);
[all …]
/kernel/uniproton/src/om/hook/
Dprt_hook_init.c59 OsVoidFunc *hooks = NULL; in OsHookConfigInit()
73 size = (U32)(size * sizeof(OsVoidFunc)); in OsHookConfigInit()
94 *(hooks + hookCnt) = (OsVoidFunc)OS_MHOOK_BOUNDARY; in OsHookConfigInit()
106 OS_SEC_L4_TEXT U32 OsMhookAdd(U32 hookType, OsVoidFunc hook) in OsMhookAdd()
109 OsVoidFunc *mHook = NULL; in OsMhookAdd()
112 OsVoidFunc *add = NULL; in OsMhookAdd()
169 OS_SEC_L4_TEXT U32 OsMhookDel(U32 hookType, OsVoidFunc hook) in OsMhookDel()
172 OsVoidFunc *mHook = NULL; in OsMhookDel()
175 OsVoidFunc *del = NULL; in OsMhookDel()
229 OS_SEC_L4_TEXT U32 OsHookAdd(enum HookType hookType, OsVoidFunc hook) in OsHookAdd()
[all …]
/kernel/uniproton/src/om/cpup/
Dprt_cpup_thread_init.c53 ret = OsMhookAdd((U32)OS_HOOK_FIRST_TIME_SWH, (OsVoidFunc)OsCpupFirstSwitch); in OsCpupThreadHookAdd()
59 ret = OsMhookAdd((U32)OS_HOOK_TSK_SWITCH, (OsVoidFunc)OsCpupTskSwitch); in OsCpupThreadHookAdd()
65 ret = OsMhookAdd((U32)OS_HOOK_HWI_ENTRY, (OsVoidFunc)OsNowTskCycleEnd); in OsCpupThreadHookAdd()
71 ret = OsMhookAdd((U32)OS_HOOK_HWI_EXIT, (OsVoidFunc)OsNowTskCycleStart); in OsCpupThreadHookAdd()
77 ret = OsMhookAdd((U32)OS_HOOK_TICK_ENTRY, (OsVoidFunc)OsNowTskCycleEnd); in OsCpupThreadHookAdd()
83 ret = OsMhookAdd((U32)OS_HOOK_TICK_EXIT, (OsVoidFunc)OsNowTskCycleStart); in OsCpupThreadHookAdd()
Dprt_cpup_warn.c122 return OsShookReg(OS_HOOK_CPUP_WARN, (OsVoidFunc)hook); in PRT_CpupRegWarnHook()
/kernel/uniproton/src/arch/cpu/armv7-m/common/hwi/
Dprt_hwi.c23 OS_SEC_BSS OsVoidFunc g_excTrap;
56 g_excTrap = (OsVoidFunc)OsExcSvcCall; in OsHwiGICInit()
231 return OsHookDel(OS_HOOK_HWI_EXIT, (OsVoidFunc)hook); in PRT_HwiDelExitHook()
235 return OsHookAdd(OS_HOOK_HWI_EXIT, (OsVoidFunc)hook); in PRT_HwiAddExitHook()
239 return OsHookDel(OS_HOOK_HWI_ENTRY, (OsVoidFunc)hook); in PRT_HwiDelEntryHook()
243 return OsHookAdd(OS_HOOK_HWI_ENTRY, (OsVoidFunc)hook); in PRT_HwiAddEntryHook()
/kernel/uniproton/src/core/kernel/sys/
Dprt_sys.c75 return OsHookAdd(OS_HOOK_IDLE_PERIOD, (OsVoidFunc)hook); in PRT_IdleAddHook()
79 return OsHookDel(OS_HOOK_IDLE_PERIOD, (OsVoidFunc)hook); in PRT_IdleDelHook()
/kernel/uniproton/src/core/kernel/task/
Dprt_task.c98 return OsHookDel(OS_HOOK_TSK_SWITCH, (OsVoidFunc)(uintptr_t)hook); in PRT_TaskDelSwitchHook()
102 return OsHookAdd(OS_HOOK_TSK_SWITCH, (OsVoidFunc)(uintptr_t)hook); in PRT_TaskAddSwitchHook()
/kernel/uniproton/src/om/err/
Dprt_err_init.c24 return OsShookReg(OS_HOOK_ERR_REG, (OsVoidFunc)hook); in PRT_ErrRegHook()
/kernel/uniproton/src/include/uapi/
Dprt_typedef.h49 typedef void (*OsVoidFunc)(void); typedef