Rename KIRQL to KRUNLEVEL type
All checks were successful
Builds / ExectOS (amd64) (push) Successful in 27s
Builds / ExectOS (i686) (push) Successful in 27s

This commit is contained in:
Rafal Kupiec 2023-11-25 00:32:55 +01:00
parent 236927fba0
commit 55cc62f5a0
Signed by: belliash
GPG Key ID: 4E829243E0CFE6B4
8 changed files with 13 additions and 13 deletions

View File

@ -361,7 +361,7 @@ typedef struct _KSWITCH_FRAME
ULONG64 P4Home;
ULONG64 P5Home;
ULONG MxCsr;
KIRQL ApcBypass;
KRUNLEVEL ApcBypass;
UCHAR Reserved[3];
ULONG64 Rbp;
ULONG64 Return;
@ -376,7 +376,7 @@ typedef struct _KTRAP_FRAME
ULONG64 P4Home;
ULONG64 P5;
KPROCESSOR_MODE PreviousMode;
KIRQL PreviousIrql;
KRUNLEVEL PreviousRunLevel;
UCHAR FaultIndicator;
UCHAR ExceptionActive;
ULONG MxCsr;
@ -539,7 +539,7 @@ typedef struct _KPROCESSOR_BLOCK
};
};
PKIDTENTRY IdtBase;
KIRQL Irql;
KRUNLEVEL RunLevel;
KPROCESSOR_CONTROL_BLOCK Prcb;
ULONG ContextSwitches;
} KPROCESSOR_BLOCK, *PKPROCESSOR_BLOCK;

View File

@ -470,7 +470,7 @@ typedef struct _KPROCESSOR_BLOCK
THREAD_INFORMATION_BLOCK ThreadInformationBlock;
PKPROCESSOR_BLOCK Self;
PKPROCESSOR_CONTROL_BLOCK CurrentPrcb;
KIRQL Irql;
KRUNLEVEL RunLevel;
PKIDTENTRY IdtBase;
PKGDTENTRY GdtBase;
PKTSS TssBase;

View File

@ -280,7 +280,7 @@ typedef struct _KSPIN_LOCK_QUEUE
typedef struct _KLOCK_QUEUE_HANDLE
{
KSPIN_LOCK_QUEUE LockQueue;
KIRQL OldIrql;
KRUNLEVEL OldRunLevel;
} KLOCK_QUEUE_HANDLE, *PKLOCK_QUEUE_HANDLE;
/* Queue object structure definition */
@ -431,7 +431,7 @@ typedef struct _KTHREAD
};
KWAIT_BLOCK WaitBlock[KTHREAD_WAIT_BLOCK + 1];
UCHAR NpxState;
KIRQL WaitIrql;
KRUNLEVEL WaitRunLevel;
LIST_ENTRY QueueListEntry;
PKTRAP_FRAME TrapFrame;
PVOID CallbackStack;

View File

@ -17,15 +17,15 @@
/* Kernel affinity */
typedef ULONG_PTR KAFFINITY, *PKAFFINITY;
/* Interrupt Request Level (IRQL) */
typedef UCHAR KIRQL, *PKIRQL;
/* Kernel priority */
typedef LONG KPRIORITY, *PKPRIORITY;
/* Processor modes */
typedef CHAR KPROCESSOR_MODE, *PKPROCESSOR_MODE;
/* Interrupt Request Run Level (IRQL) */
typedef UCHAR KRUNLEVEL, *PKRUNLEVEL;
/* Spin locks synchronization mechanism */
typedef ULONG_PTR KSPIN_LOCK, *PKSPIN_LOCK;

View File

@ -56,7 +56,7 @@ ArInitializeProcessor(VOID)
ArLoadTaskRegister((UINT)KGDT_SYS_TSS);
/* Enter passive IRQ level */
ProcessorBlock->Irql = PASSIVE_LEVEL;
ProcessorBlock->RunLevel = PASSIVE_LEVEL;
ArWriteControlRegister(8, PASSIVE_LEVEL);
/* Initialize segment registers */

View File

@ -56,7 +56,7 @@ ArInitializeProcessor(VOID)
ArLoadTaskRegister((UINT)KGDT_SYS_TSS);
/* Enter passive IRQ level */
ProcessorBlock->Irql = PASSIVE_LEVEL;
ProcessorBlock->RunLevel = PASSIVE_LEVEL;
/* Initialize segment registers */
ArpInitializeSegments();

View File

@ -51,7 +51,7 @@ KepInitializeKernel(VOID)
CurrentThread->Priority = THREAD_HIGH_PRIORITY;
CurrentThread->State = Running;
CurrentThread->Affinity = (ULONG_PTR)1 << Prcb->Number;
CurrentThread->WaitIrql = DISPATCH_LEVEL;
CurrentThread->WaitRunLevel = DISPATCH_LEVEL;
CurrentProcess->ActiveProcessors |= (ULONG_PTR)1 << Prcb->Number;
}

View File

@ -51,7 +51,7 @@ KepInitializeKernel(VOID)
CurrentThread->Priority = THREAD_HIGH_PRIORITY;
CurrentThread->State = Running;
CurrentThread->Affinity = (ULONG_PTR)1 << Prcb->Number;
CurrentThread->WaitIrql = DISPATCH_LEVEL;
CurrentThread->WaitRunLevel = DISPATCH_LEVEL;
CurrentProcess->ActiveProcessors |= (ULONG_PTR)1 << Prcb->Number;
}