[NTOS:KE] KiIdleLoop(): Propagate DECLSPEC_NORETURN to callers

This commit is contained in:
Serge Gautherie 2020-09-09 03:46:56 +02:00 committed by Victor Perevertkin
parent 5f1d79f0c5
commit e0400e7810
7 changed files with 11 additions and 2 deletions

View file

@ -310,7 +310,7 @@ struct _KPCR;
//VOID KiInitializeTss(IN PKTSS Tss, IN UINT64 Stack);
VOID KiSwitchToBootStack(IN ULONG_PTR InitialStack);
DECLSPEC_NORETURN VOID KiSwitchToBootStack(IN ULONG_PTR InitialStack);
VOID KiDivideErrorFault(VOID);
VOID KiDebugTrapOrFault(VOID);
VOID KiNmiInterrupt(VOID);

View file

@ -792,10 +792,11 @@ KiCheckForApcDelivery(IN PKTRAP_FRAME TrapFrame)
// Switches from boot loader to initial kernel stack
//
FORCEINLINE
DECLSPEC_NORETURN
VOID
KiSwitchToBootStack(IN ULONG_PTR InitialStack)
{
VOID NTAPI KiSystemStartupBootStack(VOID);
DECLSPEC_NORETURN VOID NTAPI KiSystemStartupBootStack(VOID);
/* We have to switch to a new stack before continuing kernel initialization */
#ifdef __GNUC__
@ -823,6 +824,8 @@ KiSwitchToBootStack(IN ULONG_PTR InitialStack)
#else
#error Unknown Compiler
#endif
UNREACHABLE;
}
//

View file

@ -740,6 +740,7 @@ VOID
NTAPI
KiInitializeBugCheck(VOID);
DECLSPEC_NORETURN
VOID
NTAPI
KiSystemStartup(

View file

@ -367,6 +367,7 @@ KiInitModuleList(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
}
CODE_SEG("INIT")
DECLSPEC_NORETURN
VOID
NTAPI
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)

View file

@ -52,6 +52,7 @@ KiInitializeHandBuiltThread(
}
CODE_SEG("INIT")
DECLSPEC_NORETURN
VOID
NTAPI
KiSystemStartupBootStack(VOID)

View file

@ -327,6 +327,7 @@ KiInitializeMachineType(VOID)
}
}
DECLSPEC_NORETURN
VOID
KiInitializeSystem(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
{

View file

@ -657,6 +657,7 @@ KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
}
CODE_SEG("INIT")
DECLSPEC_NORETURN
VOID
NTAPI
KiSystemStartupBootStack(VOID)
@ -709,6 +710,7 @@ KiMarkPageAsReadOnly(
}
CODE_SEG("INIT")
DECLSPEC_NORETURN
VOID
NTAPI
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)