add noreturn attribute for LOS_Panic LOS_Reboot and HalSysExit

Change-Id: I65bbdd3d60aa754a389f9371649a96483d2a6f8a
This commit is contained in:
Caoruihong
2021-04-16 19:24:24 +08:00
parent 530b738dec
commit 6bf6efdc7e
3 changed files with 15 additions and 3 deletions

View File

@@ -82,7 +82,7 @@ extern VOID *HalTskStackInit(UINT32 taskID, UINT32 stackSize, VOID *topStack);
* <ul><li>los_hw.h: the header file that contains the API declaration.</li></ul>
* @see None.
*/
LITE_OS_SEC_TEXT_MINOR VOID HalSysExit(VOID);
LITE_OS_SEC_TEXT_MINOR VOID HalSysExit(VOID) NORETURN;
/* *
* @ingroup los_context

View File

@@ -501,8 +501,8 @@ extern VOID LOS_Msleep(UINT32 mSecs);
* @see
*/
extern UINT32 LOS_Start(VOID);
extern VOID LOS_Reboot(VOID);
extern VOID LOS_Panic(const CHAR *fmt, ...);
extern VOID LOS_Reboot(VOID) NORETURN;
extern VOID LOS_Panic(const CHAR *fmt, ...) NORETURN;
/**