Skip to content

Commit

Permalink
ahhsdhasd
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkFire01 committed Jan 30, 2024
1 parent 0f0464f commit 7e3697b
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 14 deletions.
2 changes: 1 addition & 1 deletion drivers/storage/ide/uniata/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ endif()
add_pch(uniata stdafx.h SOURCE)
set_module_type(uniata kernelmodedriver)
add_importlibs(uniata scsiport ntoskrnl hal)
add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
#add_cd_file(TARGET uniata DESTINATION reactos/system32/drivers NO_CAB FOR all)
add_registry_inf(uniata_reg.inf)
add_driver_inf(uniata uniata_comm.inf)
2 changes: 1 addition & 1 deletion ntoskrnl/config/i386/cmhardwr.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ CmpInitializeMachineDependentConfiguration(IN PLOADER_PARAMETER_BLOCK LoaderBloc
if (!Prcb->CpuID)
{
/* Uh oh, no CPUID! Should not happen as we don't support 80386 and older 80486 */
ASSERT(FALSE);
// ASSERT(FALSE);
}
else
{
Expand Down
4 changes: 3 additions & 1 deletion ntoskrnl/ex/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -1562,7 +1562,9 @@ Phase1InitializationDiscard(IN PVOID Context)
/* Start Application Processors */
KeStartAllProcessors();

KeSetAffinityProcess(&PsInitialSystemProcess->Pcb, KeActiveProcessors);
// KeSetAffinityProcess(&PsInitialSystemProcess->Pcb, 2);

// __debugbreak();
#endif

/* Initialize all processors */
Expand Down
2 changes: 1 addition & 1 deletion ntoskrnl/include/internal/spinlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ KxAcquireSpinLock(
if (((KSPIN_LOCK)KeGetCurrentThread() | 1) == *SpinLock)
{
/* We do, bugcheck! */
KeBugCheckEx(SPIN_LOCK_ALREADY_OWNED, (ULONG_PTR)SpinLock, 0, 0, 0);
// KeBugCheckEx(SPIN_LOCK_ALREADY_OWNED, (ULONG_PTR)SpinLock, 0, 0, 0);
}
#endif

Expand Down
2 changes: 1 addition & 1 deletion ntoskrnl/ke/i386/kiinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ KiInitMachineDependent(VOID)
KiRestoreFastSyscallReturnState();

/* Loop every CPU */
i = KeActiveProcessors;
i = 1;
for (Affinity = 1; i; Affinity <<= 1)
{
/* Check if this is part of the set */
Expand Down
9 changes: 1 addition & 8 deletions ntoskrnl/ke/i386/thrdini.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,10 +262,6 @@ KiIdleLoop(VOID)
PKPRCB Prcb = KeGetCurrentPrcb();
PKTHREAD OldThread, NewThread;

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

/* Capture current thread data */
OldThread = Prcb->CurrentThread;
NewThread = Prcb->NextThread;
Expand Down
2 changes: 1 addition & 1 deletion ntoskrnl/ke/ipi.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ KiIpiServiceRoutine(IN PKTRAP_FRAME TrapFrame, IN PKEXCEPTION_FRAME ExceptionFra
/* Freeze level! Trigger a FREEZE interrupt */
if (InterlockedBitTestAndReset((PLONG)&Prcb->RequestSummary, IPI_FREEZE))
{
// KiFreezeTargetExecution(TrapFrame, ExceptionFrame);
KiFreezeTargetExecution(TrapFrame, ExceptionFrame);
}


Expand Down

0 comments on commit 7e3697b

Please sign in to comment.