提交 96bf209a 编写于 作者: W weifulun

Adapting "-Oz" optimizing level to enable debug version

Signed-off-by: 蜗牛aonk's avatarweifulun <weifulun@huawei.com>

Change-Id: I6bf43b73d47edbeee0ee0ea616efb127264de810
上级 4507570f
......@@ -43,32 +43,32 @@ enum INIT_BOOTSTAGE {
HOOK_MGR *GetBootStageHookMgr();
inline int InitAddGlobalInitHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddGlobalInitHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_GLOBAL_INIT, prio, hook);
}
inline int InitAddPreParamServiceHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddPreParamServiceHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_SERVICE, prio, hook);
}
inline int InitAddPreParamLoadHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddPreParamLoadHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_PARAM_LOAD, prio, hook);
}
inline int InitAddPreCfgLoadHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddPreCfgLoadHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_PRE_CFG_LOAD, prio, hook);
}
inline int InitAddPostCfgLoadHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddPostCfgLoadHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_POST_CFG_LOAD, prio, hook);
}
inline int InitAddPostPersistParamLoadHook(int prio, OhosHook hook)
__attribute__((always_inline)) inline int InitAddPostPersistParamLoadHook(int prio, OhosHook hook)
{
return HookMgrAdd(GetBootStageHookMgr(), INIT_POST_PERSIST_PARAM_LOAD, prio, hook);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册