mirror of
https://github.com/reactos/reactos.git
synced 2024-11-11 01:04:11 +00:00
c424146e2c
svn path=/branches/cmake-bringup/; revision=48236
66 lines
1.2 KiB
C
66 lines
1.2 KiB
C
$if (_WDMDDK_)
|
|
#error MIPS Headers are totally incorrect
|
|
|
|
//
|
|
// Used to contain PFNs and PFN counts
|
|
//
|
|
typedef ULONG PFN_COUNT;
|
|
typedef ULONG PFN_NUMBER, *PPFN_NUMBER;
|
|
typedef LONG SPFN_NUMBER, *PSPFN_NUMBER;
|
|
|
|
#define PASSIVE_LEVEL 0
|
|
#define APC_LEVEL 1
|
|
#define DISPATCH_LEVEL 2
|
|
#define PROFILE_LEVEL 27
|
|
#define IPI_LEVEL 29
|
|
#define HIGH_LEVEL 31
|
|
|
|
typedef struct _KPCR {
|
|
struct _KPRCB *Prcb; /* 20 */
|
|
KIRQL Irql; /* 24 */
|
|
ULONG IRR; /* 28 */
|
|
ULONG IDR; /* 30 */
|
|
} KPCR, *PKPCR;
|
|
|
|
#define KeGetPcr() PCR
|
|
|
|
typedef struct _KFLOATING_SAVE {
|
|
} KFLOATING_SAVE, *PKFLOATING_SAVE;
|
|
|
|
static __inline
|
|
ULONG
|
|
NTAPI
|
|
KeGetCurrentProcessorNumber(VOID)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#define YieldProcessor() __asm__ __volatile__("nop");
|
|
|
|
#define KeLowerIrql(a) KfLowerIrql(a)
|
|
#define KeRaiseIrql(a,b) *(b) = KfRaiseIrql(a)
|
|
|
|
NTKERNELAPI
|
|
VOID
|
|
NTAPI
|
|
KfLowerIrql(
|
|
IN KIRQL NewIrql);
|
|
|
|
NTKERNELAPI
|
|
KIRQL
|
|
NTAPI
|
|
KfRaiseIrql(
|
|
IN KIRQL NewIrql);
|
|
|
|
NTKERNELAPI
|
|
KIRQL
|
|
NTAPI
|
|
KeRaiseIrqlToDpcLevel(VOID);
|
|
|
|
NTKERNELAPI
|
|
KIRQL
|
|
NTAPI
|
|
KeRaiseIrqlToSynchLevel(VOID);
|
|
|
|
$endif
|
|
|