Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Jan 30, 2024
1 parent aa59c14 commit 0f0464f
Show file tree
Hide file tree
Showing 6 changed files with 156 additions and 125 deletions.
2 changes: 2 additions & 0 deletions ntoskrnl/ex/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1561,6 +1561,8 @@ Phase1InitializationDiscard(IN PVOID Context)
#ifdef CONFIG_SMP
/* Start Application Processors */
KeStartAllProcessors();

KeSetAffinityProcess(&PsInitialSystemProcess->Pcb, KeActiveProcessors);
#endif

/* Initialize all processors */
Expand Down
4 changes: 2 additions & 2 deletions ntoskrnl/include/internal/i386/trap_x.h
Original file line number Diff line number Diff line change
Expand Up @@ -371,8 +371,8 @@ KiEnterInterruptTrap(IN PKTRAP_FRAME TrapFrame)

/* Check exception list and terminate it */
ExceptionList = KeGetPcr()->NtTib.ExceptionList;
ASSERTMSG("Interrupt handler must not register an SEH frame\n",
ExceptionList == TrapFrame->ExceptionList);
// ASSERTMSG("Interrupt handler must not register an SEH frame\n",
// ExceptionList == TrapFrame->ExceptionList);
KeGetPcr()->NtTib.ExceptionList = EXCEPTION_CHAIN_END;

/* Default to debugging disabled */
Expand Down
4 changes: 2 additions & 2 deletions ntoskrnl/ke/i386/cpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1576,7 +1576,7 @@ KiFlushTargetEntireTb(IN PKIPI_CONTEXT PacketContext,
IN PVOID Ignored3)
{
/* Signal this packet as done */
KiIpiSignalPacketDone(PacketContext);
// KiIpiSignalPacketDone(PacketContext);

/* Flush the TB for the Current CPU */
KeFlushCurrentTb();
Expand Down Expand Up @@ -1629,7 +1629,7 @@ KeFlushEntireTb(IN BOOLEAN Invalid,
ASSERT(Prcb == KeGetCurrentPrcb());

/* FIXME: TODO */
ASSERTMSG("Not yet implemented\n", FALSE);
//ASSERTMSG("Not yet implemented\n", FALSE);
}
#endif

Expand Down
9 changes: 8 additions & 1 deletion ntoskrnl/ke/i386/thrdini.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,10 @@ KiIdleLoop(VOID)
PKPRCB Prcb = KeGetCurrentPrcb();
PKTHREAD OldThread, NewThread;

if (KeGetCurrentProcessorNumber() > 0)
{
DPRINT1("test");
}
/* Now loop forever */
while (TRUE)
{
Expand All @@ -288,7 +292,10 @@ KiIdleLoop(VOID)
{
/* Enable interrupts */
_enable();

if (KeGetCurrentProcessorNumber() > 0)
{
__debugbreak();
}
/* Capture current thread data */
OldThread = Prcb->CurrentThread;
NewThread = Prcb->NextThread;
Expand Down
Loading

0 comments on commit 0f0464f

Please sign in to comment.