Skip to content

Commit

Permalink
Investigate some CR0 changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
HBelusca committed Oct 10, 2023
1 parent 62eeb15 commit 47647c4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion boot/bootdata/txtsetup.sif
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,8 @@ Cabinet=reactos.cab

[SetupData]
DefaultPath = \ReactOS
SetupDebugOptions = "/DEBUG /KDSERIAL /DEBUGPORT=COM1 /FIRSTCHANCE"
SetupDebugOptions = "/DEBUG /NOGUIBOOT /DEBUGPORT=VBOX /FIRSTCHANCE"
;SetupDebugOptions = "/DEBUG /KDSERIAL /DEBUGPORT=COM1 /FIRSTCHANCE"
;SetupDebugOptions = "/DEBUG /SOS /DEBUGPORT=SCREEN"
OsLoadOptions = "/NOGUIBOOT /NODEBUG"

Expand Down
9 changes: 9 additions & 0 deletions ntoskrnl/ke/i386/kiinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,10 @@ KiInitMachineDependent(VOID)
DPRINT1("ISR Time Limit not yet supported\n");
}

#if 0 // FIXME: See https://github.com/reactos/reactos/commit/90e0457d606c7088a3082397cf11c8c94aa1e862
/* Set CR0 features based on detected CPU */
KiSetCR0Bits();
#endif
}

CODE_SEG("INIT")
Expand Down Expand Up @@ -440,6 +442,13 @@ KiInitializeKernel(IN PKPROCESS InitProcess,
PVOID DpcStack;
KIRQL DummyIrql;

#if 1 // FIXME: See https://github.com/reactos/reactos/commit/90e0457d606c7088a3082397cf11c8c94aa1e862
/* Set CR0 features based on detected CPU */
KiSetCR0Bits();
#endif

__debugbreak();

/* Initialize the Power Management Support for this PRCB */
PoInitializePrcb(Prcb);

Expand Down

0 comments on commit 47647c4

Please sign in to comment.