fix: L0 GN compilation problem

Close: #I3ORHS
Change-Id: Ia105084336f2ba66f91546226a9383646a0148ce
This commit is contained in:
zhushengle
2021-04-29 10:38:54 +08:00
parent 1f725147f3
commit 2f9bfcc6ee
5 changed files with 19 additions and 3 deletions

View File

@@ -490,6 +490,16 @@ LITE_OS_SEC_TEXT_INIT VOID HalExcHandleEntry(UINT32 excType, UINT32 faultAddr, U
HalSysExit();
}
/* stack protector */
WEAK UINT32 __stack_chk_guard = 0xd00a0dff;
WEAK VOID __stack_chk_fail(VOID)
{
/* __builtin_return_address is a builtin function, building in gcc */
LOS_Panic("stack-protector: Kernel stack is corrupted in: %p\n",
__builtin_return_address(0));
}
/* ****************************************************************************
Function : HalHwiInit
Description : initialization of the hardware interrupt