mirror of https://github.com/acidanthera/audk.git
UefiCpuPkg/SecMain: Decorate phase-transition function with NORETURN.
This patch adds the NORETURN attribute to the function that transfers to the PEI phase, along with an UNREACHABLE() call at the end to avoid false warnings. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Marvin Haeuser <Marvin.Haeuser@outlook.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
This commit is contained in:
parent
3a7daf9eb0
commit
61257251b2
|
@ -49,6 +49,7 @@ UINT64 mIdtEntryTemplate = 0xffff8e000010ffe4ULL;
|
|||
|
||||
**/
|
||||
VOID
|
||||
NORETURN
|
||||
EFIAPI
|
||||
SecStartupPhase2(
|
||||
IN VOID *Context
|
||||
|
@ -167,6 +168,7 @@ SecStartup (
|
|||
|
||||
**/
|
||||
VOID
|
||||
NORETURN
|
||||
EFIAPI
|
||||
SecStartupPhase2(
|
||||
IN VOID *Context
|
||||
|
@ -252,7 +254,7 @@ SecStartupPhase2(
|
|||
//
|
||||
// Should not come here.
|
||||
//
|
||||
return;
|
||||
UNREACHABLE ();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue