mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 17:24:01 +00:00
- Kernel's entry point is called KiSystemStartup, not NtProcessStartup (now it's done correctly).
svn path=/trunk/; revision=32450
This commit is contained in:
parent
5b1c7de117
commit
0c8475d7ca
7 changed files with 9 additions and 10 deletions
|
@ -697,7 +697,7 @@ KiInitializeBugCheck(VOID);
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KiSystemStartup(
|
||||
KiSystemStartupReal(
|
||||
IN PLOADER_PARAMETER_BLOCK LoaderBlock
|
||||
);
|
||||
|
||||
|
|
|
@ -1330,7 +1330,7 @@ KiRosPrepareForSystemStartup(IN ULONG Dummy,
|
|||
#endif
|
||||
|
||||
/* Do general System Startup */
|
||||
KiSystemStartup(NtLoaderBlock);
|
||||
KiSystemStartupReal(NtLoaderBlock);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -29,12 +29,12 @@ _KiDoubleFaultStack:
|
|||
/* FUNCTIONS *****************************************************************/
|
||||
|
||||
.text
|
||||
.func NtProcessStartup
|
||||
_NtProcessStartup:
|
||||
.func KiSystemStartup
|
||||
_KiSystemStartup:
|
||||
|
||||
/* NTLDR Boot: Call the main kernel initialization */
|
||||
test dword ptr [esp+4], 0x80000000
|
||||
jnz _KiSystemStartup@4
|
||||
jnz _KiSystemStartupReal@4
|
||||
|
||||
/* FREELDR Boot: Cal the FreeLDR wrapper */
|
||||
jmp @KiRosPrepareForSystemStartup@8
|
||||
|
|
|
@ -646,7 +646,7 @@ KiGetMachineBootPointers(IN PKGDTENTRY *Gdt,
|
|||
|
||||
VOID
|
||||
NTAPI
|
||||
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
KiSystemStartupReal(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
{
|
||||
ULONG Cpu;
|
||||
PKTHREAD InitialThread;
|
||||
|
|
|
@ -252,7 +252,7 @@ KTRAP_FRAME KiInitialTrapFrame;
|
|||
/* Use this for early boot additions to the page table */
|
||||
VOID
|
||||
NTAPI
|
||||
KiSystemStartup(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
KiSystemStartupReal(IN PLOADER_PARAMETER_BLOCK LoaderBlock)
|
||||
{
|
||||
ULONG Cpu;
|
||||
ppc_map_info_t info[4];
|
||||
|
|
|
@ -33,12 +33,11 @@ _kernel_trap_stack_top:
|
|||
KiDoubleFaultStack:
|
||||
|
||||
.text
|
||||
.globl NtProcessStartup
|
||||
.globl KiSystemStartup
|
||||
.globl KiRosPrepareForSystemStartup
|
||||
.globl DrawNumber
|
||||
|
||||
NtProcessStartup:
|
||||
KiSystemStartup:
|
||||
/*
|
||||
* Set a normal MSR value
|
||||
*/
|
||||
|
|
|
@ -1033,7 +1033,7 @@ Module::GetDefaultModuleEntrypoint () const
|
|||
switch ( type )
|
||||
{
|
||||
case Kernel:
|
||||
return "NtProcessStartup";
|
||||
return "KiSystemStartup";
|
||||
case KernelModeDLL:
|
||||
case KernelModeDriver:
|
||||
return "DriverEntry@8";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue