mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
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:
parent
358d95b0c1
commit
f537761b8d
2 changed files with 5 additions and 4 deletions
|
@ -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)",
|
||||
|
|
|
@ -1033,7 +1033,7 @@ Module::GetDefaultModuleEntrypoint () const
|
|||
switch ( type )
|
||||
{
|
||||
case Kernel:
|
||||
return "NtProcessStartup";
|
||||
return "KiSystemStartup";
|
||||
case KernelModeDLL:
|
||||
case KernelModeDriver:
|
||||
return "DriverEntry@8";
|
||||
|
|
Loading…
Reference in a new issue