https://git.reactos.org/?p=reactos.git;a=commitdiff;h=96040ecff93aa533a64e73ac9aeb568196082959

commit 96040ecff93aa533a64e73ac9aeb568196082959
Author:     Dmitry Borisov <[email protected]>
AuthorDate: Wed Nov 13 22:03:19 2019 +0600
Commit:     Hermès BÉLUSCA - MAÏTO <[email protected]>
CommitDate: Wed Nov 13 22:52:20 2019 +0100

    [FREELDR] Fix triple fault with debug on screen
    
    Move the trace call after the MachInit()
    CORE-16507
---
 boot/freeldr/freeldr/freeldr.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/boot/freeldr/freeldr/freeldr.c b/boot/freeldr/freeldr/freeldr.c
index 11c0d462687..c31f5eab3a2 100644
--- a/boot/freeldr/freeldr/freeldr.c
+++ b/boot/freeldr/freeldr/freeldr.c
@@ -47,10 +47,10 @@ VOID __cdecl BootMain(IN PCCH CmdLine)
     /* Debugger pre-initialization */
     DebugInit(0);
 
-    TRACE("BootMain() called.\n");
-
     MachInit(CmdLine);
 
+    TRACE("BootMain() called.\n");
+
     /* Check if the CPU is new enough */
     FrLdrCheckCpuCompatibility(); // FIXME: Should be done inside MachInit!
 

Reply via email to