Searched refs:OsVoidFunc (Results 1 – 9 of 9) sorted by relevance
/kernel/uniproton/src/om/include/ |
D | prt_hook_external.h | 37 #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/ |
D | prt_hook_init.c | 59 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/ |
D | prt_cpup_thread_init.c | 53 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()
|
D | prt_cpup_warn.c | 122 return OsShookReg(OS_HOOK_CPUP_WARN, (OsVoidFunc)hook); in PRT_CpupRegWarnHook()
|
/kernel/uniproton/src/arch/cpu/armv7-m/common/hwi/ |
D | prt_hwi.c | 23 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/ |
D | prt_sys.c | 75 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/ |
D | prt_task.c | 98 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/ |
D | prt_err_init.c | 24 return OsShookReg(OS_HOOK_ERR_REG, (OsVoidFunc)hook); in PRT_ErrRegHook()
|
/kernel/uniproton/src/include/uapi/ |
D | prt_typedef.h | 49 typedef void (*OsVoidFunc)(void); typedef
|