xref: /reactos/ntoskrnl/ke/amd64/stubs.c (revision 60eea2d7)
1 /*
2  * PROJECT:         ReactOS Kernel
3  * LICENSE:         GPL - See COPYING in the top level directory
4  * PURPOSE:         stubs
5  * PROGRAMMERS:     Timo Kreuzer (timo.kreuzer@reactos.org)
6  */
7 
8 /* INCLUDES ******************************************************************/
9 
10 #include <ntoskrnl.h>
11 
12 #define NDEBUG
13 #include <debug.h>
14 
15 VOID
16 NTAPI
17 KiDispatchInterrupt(VOID)
18 {
19     UNIMPLEMENTED;
20     __debugbreak();
21 }
22 
23 VOID
24 FASTCALL
25 KeZeroPages(IN PVOID Address,
26             IN ULONG Size)
27 {
28     /* Not using XMMI in this routine */
29     RtlZeroMemory(Address, Size);
30 }
31 
32 VOID
33 FASTCALL
34 DECLSPEC_NORETURN
35 KiServiceExit(IN PKTRAP_FRAME TrapFrame,
36               IN NTSTATUS Status)
37 {
38     UNIMPLEMENTED;
39     __debugbreak();
40 }
41 
42 VOID
43 FASTCALL
44 DECLSPEC_NORETURN
45 KiServiceExit2(IN PKTRAP_FRAME TrapFrame)
46 {
47     UNIMPLEMENTED;
48     __debugbreak();
49 }
50 
51 BOOLEAN
52 NTAPI
53 KeConnectInterrupt(IN PKINTERRUPT Interrupt)
54 {
55     UNIMPLEMENTED;
56     __debugbreak();
57     return FALSE;
58 }
59 
60 PVOID
61 NTAPI
62 KeSwitchKernelStack(PVOID StackBase, PVOID StackLimit)
63 {
64     UNIMPLEMENTED;
65     return NULL;
66 }
67 
68 BOOLEAN
69 NTAPI
70 KeSynchronizeExecution(
71     IN OUT PKINTERRUPT Interrupt,
72     IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine,
73     IN PVOID SynchronizeContext)
74 {
75     UNIMPLEMENTED;
76     __debugbreak();
77     return FALSE;
78 }
79 
80 NTSTATUS
81 NTAPI
82 KeUserModeCallback(IN ULONG RoutineIndex,
83                    IN PVOID Argument,
84                    IN ULONG ArgumentLength,
85                    OUT PVOID *Result,
86                    OUT PULONG ResultLength)
87 {
88     UNIMPLEMENTED;
89     __debugbreak();
90     return STATUS_UNSUCCESSFUL;
91 }
92 
93 VOID
94 KiIdleLoop()
95 {
96     UNIMPLEMENTED;
97     for(;;);
98 }
99 
100 VOID
101 NTAPI
102 KiInitializeUserApc(IN PKEXCEPTION_FRAME ExceptionFrame,
103                     IN PKTRAP_FRAME TrapFrame,
104                     IN PKNORMAL_ROUTINE NormalRoutine,
105                     IN PVOID NormalContext,
106                     IN PVOID SystemArgument1,
107                     IN PVOID SystemArgument2)
108 {
109     UNIMPLEMENTED;
110     __debugbreak();
111 }
112 
113 VOID
114 NTAPI
115 KiSwapProcess(IN PKPROCESS NewProcess,
116               IN PKPROCESS OldProcess)
117 {
118     UNIMPLEMENTED;
119     __debugbreak();
120 }
121 
122 VOID
123 KiSystemService(IN PKTHREAD Thread,
124                 IN PKTRAP_FRAME TrapFrame,
125                 IN ULONG Instruction)
126 {
127     UNIMPLEMENTED;
128     __debugbreak();
129 }
130 
131 NTSYSAPI
132 NTSTATUS
133 NTAPI
134 NtCallbackReturn
135 ( IN PVOID Result OPTIONAL, IN ULONG ResultLength, IN NTSTATUS Status )
136 {
137     UNIMPLEMENTED;
138     __debugbreak();
139     return STATUS_UNSUCCESSFUL;
140 }
141 
142 NTSTATUS
143 NTAPI
144 NtSetLdtEntries
145 (ULONG Selector1, LDT_ENTRY LdtEntry1, ULONG Selector2, LDT_ENTRY LdtEntry2)
146 {
147     UNIMPLEMENTED;
148     return STATUS_UNSUCCESSFUL;
149 }
150 
151 NTSTATUS
152 NTAPI
153 NtVdmControl(IN ULONG ControlCode,
154              IN PVOID ControlData)
155 {
156     UNIMPLEMENTED;
157     __debugbreak();
158     return STATUS_UNSUCCESSFUL;
159 }
160 
161 NTSTATUS
162 NTAPI
163 KiCallUserMode(
164     IN PVOID *OutputBuffer,
165     IN PULONG OutputLength)
166 {
167     UNIMPLEMENTED;
168     __debugbreak();
169     return STATUS_UNSUCCESSFUL;
170 }
171 
172 #undef ExQueryDepthSList
173 NTKERNELAPI
174 USHORT
175 ExQueryDepthSList(IN PSLIST_HEADER ListHead)
176 {
177     return (USHORT)(ListHead->Alignment & 0xffff);
178 }
179 
180 
181 ULONG ProcessCount;
182 BOOLEAN CcPfEnablePrefetcher;
183 
184 
185