ReactOS  0.4.15-dev-2526-g0fb3c1e
stubs.c File Reference
#include <ntoskrnl.h>
#include <fltkernel.h>
#include <debug.h>
Include dependency graph for stubs.c:

Go to the source code of this file.

Macros

#define NDEBUG
 
#define MAX_SYSCALL_PARAMS   16
 

Functions

VOID KiRetireDpcListInDpcStack (PKPRCB Prcb, PVOID DpcStack)
 
NTSTATUS KiConvertToGuiThread (VOID)
 
VOID NTAPI KiDpcInterruptHandler (VOID)
 
VOID FASTCALL KeZeroPages (IN PVOID Address, IN ULONG Size)
 
PVOID KiSwitchKernelStackHelper (LONG_PTR StackOffset, PVOID OldStackBase)
 
PVOID NTAPI KiSwitchKernelStack (PVOID StackBase, PVOID StackLimit)
 
DECLSPEC_NORETURN VOID KiIdleLoop (VOID)
 
VOID NTAPI KiSwapProcess (IN PKPROCESS NewProcess, IN PKPROCESS OldProcess)
 
NTSTATUS NtSyscallFailure (void)
 
PVOID KiSystemCallHandler (_In_ ULONG64 ReturnAddress, _In_ ULONG64 P2, _In_ ULONG64 P3, _In_ ULONG64 P4)
 
VOID KiSystemService (IN PKTHREAD Thread, IN PKTRAP_FRAME TrapFrame, IN ULONG Instruction)
 
NTSTATUS NTAPI NtSetLdtEntries (ULONG Selector1, LDT_ENTRY LdtEntry1, ULONG Selector2, LDT_ENTRY LdtEntry2)
 
NTSTATUS NTAPI NtVdmControl (IN ULONG ControlCode, IN PVOID ControlData)
 

Variables

ULONG ProcessCount
 
BOOLEAN CcPfEnablePrefetcher
 
SIZE_T KeXStateLength = sizeof(XSAVE_FORMAT)
 

Macro Definition Documentation

◆ MAX_SYSCALL_PARAMS

#define MAX_SYSCALL_PARAMS   16

Definition at line 252 of file stubs.c.

◆ NDEBUG

#define NDEBUG

Definition at line 13 of file stubs.c.

Function Documentation

◆ KeZeroPages()

VOID FASTCALL KeZeroPages ( IN PVOID  Address,
IN ULONG  Size 
)

Definition at line 91 of file stubs.c.

93 {
94  /* Not using XMMI in this routine */
96 }
IN PVOID IN PVOID IN USHORT IN USHORT Size
Definition: pci.h:361
static WCHAR Address[46]
Definition: ping.c:68
#define RtlZeroMemory(Destination, Length)
Definition: typedefs.h:262

◆ KiConvertToGuiThread()

NTSTATUS KiConvertToGuiThread ( VOID  )

Referenced by KiSystemCallHandler().

◆ KiDpcInterruptHandler()

VOID NTAPI KiDpcInterruptHandler ( VOID  )

Definition at line 31 of file stubs.c.

32 {
33  PKPRCB Prcb = KeGetCurrentPrcb();
34  PKTHREAD NewThread, OldThread;
35  KIRQL OldIrql;
36 
37  /* Raise to DISPATCH_LEVEL */
39 
40  /* Send an EOI */
41  KiSendEOI();
42 
43  /* Check for pending timers, pending DPCs, or pending ready threads */
44  if ((Prcb->DpcData[0].DpcQueueDepth) ||
45  (Prcb->TimerRequest) ||
47  {
48  /* Retire DPCs while under the DPC stack */
50  }
51 
52  /* Enable interrupts */
53  _enable();
54 
55  /* Check for quantum end */
56  if (Prcb->QuantumEnd)
57  {
58  /* Handle quantum end */
59  Prcb->QuantumEnd = FALSE;
60  KiQuantumEnd();
61  }
62  else if (Prcb->NextThread)
63  {
64  /* Capture current thread data */
65  OldThread = Prcb->CurrentThread;
66  NewThread = Prcb->NextThread;
67 
68  /* Set new thread data */
69  Prcb->NextThread = NULL;
70  Prcb->CurrentThread = NewThread;
71 
72  /* The thread is now running */
73  NewThread->State = Running;
74  OldThread->WaitReason = WrDispatchInt;
75 
76  /* Make the old thread ready */
77  KxQueueReadyThread(OldThread, Prcb);
78 
79  /* Swap to the new thread */
80  KiSwapContext(APC_LEVEL, OldThread);
81  }
82 
83  /* Disable interrupts and go back to old irql */
84  _disable();
86 }
#define KeLowerIrql(oldIrql)
Definition: env_spec_w32.h:602
KDPC_DATA DpcData[2]
Definition: ketypes.h:680
void __cdecl _enable(void)
Definition: intrin_arm.h:373
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
Definition: ketypes.h:1079
VOID KiRetireDpcListInDpcStack(PKPRCB Prcb, PVOID DpcStack)
VOID NTAPI KiQuantumEnd(VOID)
Definition: dpc.c:465
UCHAR QuantumEnd
Definition: ketypes.h:700
struct _KTHREAD * NextThread
Definition: ketypes.h:571
UCHAR KIRQL
Definition: env_spec_w32.h:591
FORCEINLINE VOID KxQueueReadyThread(IN PKTHREAD Thread, IN PKPRCB Prcb)
Definition: ke_x.h:1352
#define FALSE
Definition: types.h:117
struct _KTHREAD * CurrentThread
Definition: ketypes.h:570
UCHAR WaitReason
Definition: ketypes.h:1896
KIRQL FASTCALL KfRaiseIrql(IN KIRQL NewIrql)
Definition: pic.c:187
UINT64 TimerRequest
Definition: ketypes.h:695
struct _SINGLE_LIST_ENTRY * Next
Definition: ntbasedef.h:629
_Requires_lock_held_ Interrupt _Releases_lock_ Interrupt _In_ _IRQL_restores_ KIRQL OldIrql
Definition: kefuncs.h:790
BOOLEAN NTAPI KiSwapContext(PKTHREAD CurrentThread, PKTHREAD NewThread)
Definition: stubs.c:147
FORCEINLINE VOID KiSendEOI(VOID)
Definition: ke.h:342
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
SINGLE_LIST_ENTRY DeferredReadyListHead
Definition: ketypes.h:632
volatile ULONG DpcQueueDepth
Definition: ketypes.h:788
PVOID DpcStack
Definition: ketypes.h:681
#define NULL
Definition: types.h:112
volatile UCHAR State
Definition: ketypes.h:1721
void __cdecl _disable(void)
Definition: intrin_arm.h:365
#define APC_LEVEL
Definition: env_spec_w32.h:695

◆ KiIdleLoop()

DECLSPEC_NORETURN VOID KiIdleLoop ( VOID  )

Definition at line 172 of file stubs.c.

173 {
174  PKPRCB Prcb = KeGetCurrentPrcb();
175  PKTHREAD OldThread, NewThread;
176 
177  /* Now loop forever */
178  while (TRUE)
179  {
180  /* Start of the idle loop: disable interrupts */
181  _enable();
182  YieldProcessor();
183  YieldProcessor();
184  _disable();
185 
186  /* Check for pending timers, pending DPCs, or pending ready threads */
187  if ((Prcb->DpcData[0].DpcQueueDepth) ||
188  (Prcb->TimerRequest) ||
189  (Prcb->DeferredReadyListHead.Next))
190  {
191  /* Quiesce the DPC software interrupt */
193 
194  /* Handle it */
195  KiRetireDpcList(Prcb);
196  }
197 
198  /* Check if a new thread is scheduled for execution */
199  if (Prcb->NextThread)
200  {
201  /* Enable interrupts */
202  _enable();
203 
204  /* Capture current thread data */
205  OldThread = Prcb->CurrentThread;
206  NewThread = Prcb->NextThread;
207 
208  /* Set new thread data */
209  Prcb->NextThread = NULL;
210  Prcb->CurrentThread = NewThread;
211 
212  /* The thread is now running */
213  NewThread->State = Running;
214 
215  /* Do the swap at SYNCH_LEVEL */
217 
218  /* Switch away from the idle thread */
219  KiSwapContext(APC_LEVEL, OldThread);
220 
221  /* Go back to DISPATCH_LEVEL */
223  }
224  else
225  {
226  /* Continue staying idle. Note the HAL returns with interrupts on */
227  Prcb->PowerState.IdleFunction(&Prcb->PowerState);
228  }
229  }
230 }
#define KeLowerIrql(oldIrql)
Definition: env_spec_w32.h:602
KDPC_DATA DpcData[2]
Definition: ketypes.h:680
#define TRUE
Definition: types.h:120
void __cdecl _enable(void)
Definition: intrin_arm.h:373
FORCEINLINE struct _KPRCB * KeGetCurrentPrcb(VOID)
Definition: ketypes.h:1079
PROCESSOR_POWER_STATE PowerState
Definition: ketypes.h:799
struct _KTHREAD * NextThread
Definition: ketypes.h:571
FORCEINLINE VOID YieldProcessor(VOID)
Definition: ke.h:32
struct _KTHREAD * CurrentThread
Definition: ketypes.h:570
KIRQL FASTCALL KfRaiseIrql(IN KIRQL NewIrql)
Definition: pic.c:187
UINT64 TimerRequest
Definition: ketypes.h:695
struct _SINGLE_LIST_ENTRY * Next
Definition: ntbasedef.h:629
BOOLEAN NTAPI KiSwapContext(PKTHREAD CurrentThread, PKTHREAD NewThread)
Definition: stubs.c:147
#define SYNCH_LEVEL
Definition: env_spec_w32.h:704
#define DISPATCH_LEVEL
Definition: env_spec_w32.h:696
SINGLE_LIST_ENTRY DeferredReadyListHead
Definition: ketypes.h:632
volatile ULONG DpcQueueDepth
Definition: ketypes.h:788
#define NULL
Definition: types.h:112
PPROCESSOR_IDLE_FUNCTION IdleFunction
Definition: potypes.h:68
VOID FASTCALL HalClearSoftwareInterrupt(IN KIRQL Irql)
Definition: pic.c:282
volatile UCHAR State
Definition: ketypes.h:1721
void __cdecl _disable(void)
Definition: intrin_arm.h:365
#define APC_LEVEL
Definition: env_spec_w32.h:695
VOID FASTCALL KiRetireDpcList(IN PKPRCB Prcb)
Definition: dpc.c:561

◆ KiRetireDpcListInDpcStack()

VOID KiRetireDpcListInDpcStack ( PKPRCB  Prcb,
PVOID  DpcStack 
)

Referenced by KiDpcInterruptHandler().

◆ KiSwapProcess()

VOID NTAPI KiSwapProcess ( IN PKPROCESS  NewProcess,
IN PKPROCESS  OldProcess 
)

Definition at line 234 of file stubs.c.

236 {
237  PKIPCR Pcr = (PKIPCR)KeGetPcr();
238 
239 #ifdef CONFIG_SMP
240  /* Update active processor mask */
241  InterlockedXor64((PLONG64)&NewProcess->ActiveProcessors, Pcr->Prcb.SetMember);
242  InterlockedXor64((PLONG64)&OldProcess->ActiveProcessors, Pcr->Prcb.SetMember);
243 #endif
244 
245  /* Update CR3 */
246  __writecr3(NewProcess->DirectoryTableBase[0]);
247 
248  /* Update IOPM offset */
249  Pcr->TssBase->IoMapBase = NewProcess->IopmOffset;
250 }
struct _KIPCR * PKIPCR
#define KeGetPcr()
Definition: ke.h:26
struct _KTSS64 * TssBase
Definition: ketypes.h:865
__INTRIN_INLINE void __writecr3(unsigned int Data)
Definition: intrin_x86.h:1795
#define InterlockedXor64
Definition: interlocked.h:291
KPRCB Prcb
Definition: ketypes.h:893
UINT64 SetMember
Definition: ketypes.h:582
__int64 * PLONG64
Definition: basetsd.h:185

◆ KiSwitchKernelStack()

PVOID NTAPI KiSwitchKernelStack ( PVOID  StackBase,
PVOID  StackLimit 
)

Definition at line 118 of file stubs.c.

119 {
120  PKTHREAD CurrentThread;
121  PVOID OldStackBase;
122  LONG_PTR StackOffset;
124  PKIPCR Pcr;
125 
126  /* Get the current thread */
127  CurrentThread = KeGetCurrentThread();
128 
129  /* Save the old stack base */
130  OldStackBase = CurrentThread->StackBase;
131 
132  /* Get the size of the current stack */
133  StackSize = (ULONG_PTR)CurrentThread->StackBase - CurrentThread->StackLimit;
134  ASSERT(StackSize <= (ULONG_PTR)StackBase - (ULONG_PTR)StackLimit);
135 
136  /* Copy the current stack contents to the new stack */
137  RtlCopyMemory((PUCHAR)StackBase - StackSize,
138  (PVOID)CurrentThread->StackLimit,
139  StackSize);
140 
141  /* Calculate the offset between the old and the new stack */
142  StackOffset = (PUCHAR)StackBase - (PUCHAR)CurrentThread->StackBase;
143 
144  /* Disable interrupts while messing with the stack */
145  _disable();
146 
147  /* Set the new trap frame */
148  CurrentThread->TrapFrame = (PKTRAP_FRAME)Add2Ptr(CurrentThread->TrapFrame,
149  StackOffset);
150 
151  /* Set the new initial stack */
152  CurrentThread->InitialStack = Add2Ptr(CurrentThread->InitialStack,
153  StackOffset);
154 
155  /* Set the new stack limits */
156  CurrentThread->StackBase = StackBase;
157  CurrentThread->StackLimit = (ULONG_PTR)StackLimit;
158  CurrentThread->LargeStack = TRUE;
159 
160  /* Adjust RspBase in the PCR */
161  Pcr = (PKIPCR)KeGetPcr();
162  Pcr->Prcb.RspBase += StackOffset;
163 
164  /* Adjust Rsp0 in the TSS */
165  Pcr->TssBase->Rsp0 += StackOffset;
166 
167  return OldStackBase;
168 }
#define Add2Ptr(PTR, INC)
#define TRUE
Definition: types.h:120
unsigned char * PUCHAR
Definition: retypes.h:3
struct _KIPCR * PKIPCR
PKTRAP_FRAME TrapFrame
Definition: ketypes.h:1706
#define KeGetPcr()
Definition: ke.h:26
struct _KTSS64 * TssBase
Definition: ketypes.h:865
uint32_t ULONG_PTR
Definition: typedefs.h:65
#define ASSERT(a)
Definition: mode.c:45
volatile VOID * StackLimit
Definition: ketypes.h:1597
KPRCB Prcb
Definition: ketypes.h:893
_In_ USHORT _In_ CCHAR StackSize
Definition: iofuncs.h:1056
PVOID StackBase
Definition: ketypes.h:1598
ULONG_PTR SIZE_T
Definition: typedefs.h:80
__int3264 LONG_PTR
Definition: mstsclib_h.h:276
void __cdecl _disable(void)
Definition: intrin_arm.h:365
#define ULONG_PTR
Definition: config.h:101
#define RtlCopyMemory(Destination, Source, Length)
Definition: typedefs.h:263
struct _KTRAP_FRAME * PKTRAP_FRAME
#define KeGetCurrentThread
Definition: hal.h:49
PVOID InitialStack
Definition: ketypes.h:1596
UINT64 RspBase
Definition: ketypes.h:580

◆ KiSwitchKernelStackHelper()

PVOID KiSwitchKernelStackHelper ( LONG_PTR  StackOffset,
PVOID  OldStackBase 
)

◆ KiSystemCallHandler()

PVOID KiSystemCallHandler ( _In_ ULONG64  ReturnAddress,
_In_ ULONG64  P2,
_In_ ULONG64  P3,
_In_ ULONG64  P4 
)

Definition at line 262 of file stubs.c.

267 {
268  PKTRAP_FRAME TrapFrame;
269  PKSERVICE_TABLE_DESCRIPTOR DescriptorTable;
271  PULONG64 KernelParams, UserParams;
272  ULONG ServiceNumber, Offset, Count;
273  ULONG64 UserRsp;
274 
275  /* Get a pointer to the trap frame */
277 
278  /* Save some values in the trap frame */
279  TrapFrame->Rip = ReturnAddress;
280  TrapFrame->Rdx = P2;
281  TrapFrame->R8 = P3;
282  TrapFrame->R9 = P4;
283 
284  /* Increase system call count */
285  __addgsdword(FIELD_OFFSET(KIPCR, Prcb.KeSystemCalls), 1);
286 
287  /* Get the current thread */
289 
290  /* Set previous mode */
291  Thread->PreviousMode = TrapFrame->PreviousMode = UserMode;
292 
293  /* Save the old trap frame and set the new */
294  TrapFrame->TrapFrame = (ULONG64)Thread->TrapFrame;
295  Thread->TrapFrame = TrapFrame;
296 
297  /* We don't have an exception frame yet */
298  TrapFrame->ExceptionFrame = 0;
299 
300  /* Before enabling interrupts get the user rsp from the KPCR */
301  UserRsp = __readgsqword(FIELD_OFFSET(KIPCR, UserRsp));
302  TrapFrame->Rsp = UserRsp;
303 
304  /* Enable interrupts */
305  _enable();
306 
307  /* If the usermode rsp was not a usermode address, prepare an exception */
308  if (UserRsp > MmUserProbeAddress) UserRsp = MmUserProbeAddress;
309 
310  /* Get the address of the usermode and kernelmode parameters */
311  UserParams = (PULONG64)UserRsp + 1;
312  KernelParams = (PULONG64)TrapFrame - MAX_SYSCALL_PARAMS;
313 
314  /* Get the system call number from the trap frame and decode it */
315  ServiceNumber = (ULONG)TrapFrame->Rax;
316  Offset = (ServiceNumber >> SERVICE_TABLE_SHIFT) & SERVICE_TABLE_MASK;
317  ServiceNumber &= SERVICE_NUMBER_MASK;
318 
319  /* Check for win32k system calls */
321  {
322  ULONG GdiBatchCount;
323 
324  /* Read the GDI batch count from the TEB */
325  _SEH2_TRY
326  {
327  GdiBatchCount = NtCurrentTeb()->GdiBatchCount;
328  }
330  {
331  GdiBatchCount = 0;
332  }
333  _SEH2_END;
334 
335  /* Flush batch, if there are entries */
336  if (GdiBatchCount != 0)
337  {
339  }
340  }
341 
342  /* Get descriptor table */
343  DescriptorTable = (PVOID)((ULONG_PTR)Thread->ServiceTable + Offset);
344 
345  /* Validate the system call number */
346  if (ServiceNumber >= DescriptorTable->Limit)
347  {
348  /* Check if this is a GUI call */
349  if (!(Offset & SERVICE_TABLE_TEST))
350  {
351  /* Fail the call */
352  TrapFrame->Rax = STATUS_INVALID_SYSTEM_SERVICE;
353  return (PVOID)NtSyscallFailure;
354  }
355 
356  /* Convert us to a GUI thread
357  To be entirely correct. we return KiConvertToGuiThread,
358  which allocates a new stack, switches to it, calls
359  PsConvertToGuiThread and resumes in the middle of
360  KiSystemCallEntry64 to restart the system call handling. */
361  return (PVOID)KiConvertToGuiThread;
362  }
363 
364  /* Get stack bytes and calculate argument count */
365  Count = DescriptorTable->Number[ServiceNumber] / 8;
366 
367  _SEH2_TRY
368  {
369  switch (Count)
370  {
371  case 16: KernelParams[15] = UserParams[15];
372  case 15: KernelParams[14] = UserParams[14];
373  case 14: KernelParams[13] = UserParams[13];
374  case 13: KernelParams[12] = UserParams[12];
375  case 12: KernelParams[11] = UserParams[11];
376  case 11: KernelParams[10] = UserParams[10];
377  case 10: KernelParams[9] = UserParams[9];
378  case 9: KernelParams[8] = UserParams[8];
379  case 8: KernelParams[7] = UserParams[7];
380  case 7: KernelParams[6] = UserParams[6];
381  case 6: KernelParams[5] = UserParams[5];
382  case 5: KernelParams[4] = UserParams[4];
383  case 4:
384  case 3:
385  case 2:
386  case 1:
387  case 0:
388  break;
389 
390  default:
391  __debugbreak();
392  break;
393  }
394  }
395  _SEH2_EXCEPT(1)
396  {
397  TrapFrame->Rax = _SEH2_GetExceptionCode();
398  return (PVOID)NtSyscallFailure;
399  }
400  _SEH2_END;
401 
402  return (PVOID)DescriptorTable->Base[ServiceNumber];
403 }
ULONG MmUserProbeAddress
Definition: init.c:50
UINT64 R8
Definition: ketypes.h:325
#define SERVICE_TABLE_SHIFT
Definition: ketypes.h:71
UINT64 R9
Definition: ketypes.h:326
#define SERVICE_TABLE_MASK
Definition: ketypes.h:78
void __cdecl _enable(void)
Definition: intrin_arm.h:373
void * _AddressOfReturnAddress(void)
NTSTATUS KiConvertToGuiThread(VOID)
#define SERVICE_NUMBER_MASK
Definition: ketypes.h:83
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
_SEH2_TRY
Definition: create.c:4226
uint32_t ULONG_PTR
Definition: typedefs.h:65
UINT64 Rax
Definition: ketypes.h:322
#define SERVICE_TABLE_TEST
Definition: ketypes.h:90
void * PVOID
Definition: retypes.h:9
NTSTATUS NtSyscallFailure(void)
Definition: stubs.c:255
int Count
Definition: noreturn.cpp:7
#define EXCEPTION_EXECUTE_HANDLER
Definition: excpt.h:85
#define MAX_SYSCALL_PARAMS
Definition: stubs.c:252
_In_opt_ PFILE_OBJECT _In_opt_ PETHREAD Thread
Definition: fltkernel.h:2653
unsigned __int64 ULONG64
Definition: imports.h:198
UINT64 Rdx
Definition: ketypes.h:324
_In_ ULONG _In_ ULONG Offset
Definition: ntddpcm.h:101
_SEH2_END
Definition: create.c:4400
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420
PGDI_BATCHFLUSH_ROUTINE KeGdiFlushUserBatch
Definition: win32.c:20
UINT64 Rsp
Definition: ketypes.h:390
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:255
UINT64 ExceptionFrame
Definition: ketypes.h:380
UINT64 Rip
Definition: ketypes.h:383
unsigned int ULONG
Definition: retypes.h:1
#define STATUS_INVALID_SYSTEM_SERVICE
Definition: ntstatus.h:265
unsigned __int64 * PULONG64
Definition: imports.h:198
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:40
struct _KTRAP_FRAME * PKTRAP_FRAME
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:165
#define KeGetCurrentThread
Definition: hal.h:49
UINT64 TrapFrame
Definition: ketypes.h:372
CHAR PreviousMode
Definition: ketypes.h:317

◆ KiSystemService()

VOID KiSystemService ( IN PKTHREAD  Thread,
IN PKTRAP_FRAME  TrapFrame,
IN ULONG  Instruction 
)

Definition at line 408 of file stubs.c.

411 {
413  __debugbreak();
414 }
#define UNIMPLEMENTED
Definition: stubs.c:20
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698

◆ NtSetLdtEntries()

NTSTATUS NTAPI NtSetLdtEntries ( ULONG  Selector1,
LDT_ENTRY  LdtEntry1,
ULONG  Selector2,
LDT_ENTRY  LdtEntry2 
)

Definition at line 419 of file stubs.c.

420 {
422  __debugbreak();
423  return STATUS_UNSUCCESSFUL;
424 }
#define UNIMPLEMENTED
Definition: stubs.c:20
void __cdecl __debugbreak(void)
Definition: intrin_ppc.h:698
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

Referenced by init_funcs().

◆ NtSyscallFailure()

NTSTATUS NtSyscallFailure ( void  )

Definition at line 255 of file stubs.c.

256 {
257  /* This is the failure function */
258  return (NTSTATUS)KeGetCurrentThread()->TrapFrame->Rax;
259 }
LONG NTSTATUS
Definition: precomp.h:26
#define KeGetCurrentThread
Definition: hal.h:49

Referenced by KiSystemCallHandler().

◆ NtVdmControl()

NTSTATUS NTAPI NtVdmControl ( IN ULONG  ControlCode,
IN PVOID  ControlData 
)

Definition at line 428 of file stubs.c.

430 {
431  /* Not supported */
432  return STATUS_NOT_IMPLEMENTED;
433 }
return STATUS_NOT_IMPLEMENTED

Referenced by KiEnterV86Mode().

Variable Documentation

◆ CcPfEnablePrefetcher

BOOLEAN CcPfEnablePrefetcher

Definition at line 17 of file stubs.c.

Referenced by PspUserThreadStartup().

◆ KeXStateLength

SIZE_T KeXStateLength = sizeof(XSAVE_FORMAT)

Definition at line 18 of file stubs.c.

◆ ProcessCount

ULONG ProcessCount

Definition at line 16 of file stubs.c.