The kernel entrypoint is called KiSystemStartup, not NtProcessStartup.

On ARM, don't prepend underscore to the kernel entrypoint.
We now correctly jump into the kernel entrypoint, instead of random code!

svn path=/trunk/; revision=32314
This commit is contained in:
ReactOS Portable Systems Group 2008-02-12 06:15:35 +00:00
parent 358d95b0c1
commit f537761b8d
2 changed files with 5 additions and 4 deletions

View file

@ -2623,9 +2623,10 @@ MingwKernelModuleHandler::GenerateKernelModuleTarget ()
string dependencies = linkDepsMacro + " " + objectsMacro;
string linkerParameters = ssprintf ( "-Wl,--subsystem,native -Wl,--entry,%s -Wl,--image-base,%s",
module.GetEntryPoint(true).c_str (),
module.baseaddress.c_str () );
string linkerParameters = ssprintf ( "-Wl,--subsystem,native -Wl,--entry,%s -Wl,--image-base,%s",
module.GetEntryPoint(!(Environment::GetArch() == "arm")).c_str (),
module.baseaddress.c_str () );
GenerateLinkerCommand ( dependencies,
"${gcc}",
linkerParameters + " $(NTOSKRNL_SHARED)",

View file

@ -1033,7 +1033,7 @@ Module::GetDefaultModuleEntrypoint () const
switch ( type )
{
case Kernel:
return "NtProcessStartup";
return "KiSystemStartup";
case KernelModeDLL:
case KernelModeDriver:
return "DriverEntry@8";