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:
Marvin H?user 2016-06-19 09:31:58 +08:00 committed by Liming Gao
parent 3a7daf9eb0
commit 61257251b2
1 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,7 @@ UINT64 mIdtEntryTemplate = 0xffff8e000010ffe4ULL;
**/ **/
VOID VOID
NORETURN
EFIAPI EFIAPI
SecStartupPhase2( SecStartupPhase2(
IN VOID *Context IN VOID *Context
@ -167,6 +168,7 @@ SecStartup (
**/ **/
VOID VOID
NORETURN
EFIAPI EFIAPI
SecStartupPhase2( SecStartupPhase2(
IN VOID *Context IN VOID *Context
@ -252,7 +254,7 @@ SecStartupPhase2(
// //
// Should not come here. // Should not come here.
// //
return; UNREACHABLE ();
} }
/** /**