diff options
author | Marvin H?user <Marvin.Haeuser@outlook.com> | 2016-06-19 09:31:58 +0800 |
---|---|---|
committer | Liming Gao <liming.gao@intel.com> | 2016-06-22 09:37:22 +0800 |
commit | 61257251b2f48ceac54fea42665e1f2e63dbb46e (patch) | |
tree | 2b903b260ac22545bff4a5e463e89046688dc63e /UefiCpuPkg/SecCore | |
parent | 3a7daf9eb028bdbfc16db12c4625cca10a083ba1 (diff) | |
download | edk2-61257251b2f48ceac54fea42665e1f2e63dbb46e.tar.gz edk2-61257251b2f48ceac54fea42665e1f2e63dbb46e.tar.bz2 edk2-61257251b2f48ceac54fea42665e1f2e63dbb46e.zip |
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>
Diffstat (limited to 'UefiCpuPkg/SecCore')
-rw-r--r-- | UefiCpuPkg/SecCore/SecMain.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/UefiCpuPkg/SecCore/SecMain.c b/UefiCpuPkg/SecCore/SecMain.c index ec252cf719..5e5d543e19 100644 --- a/UefiCpuPkg/SecCore/SecMain.c +++ b/UefiCpuPkg/SecCore/SecMain.c @@ -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 ();
}
/**
|