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 FASTCALL 17 KeZeroPages(IN PVOID Address, 18 IN ULONG Size) 19 { 20 /* Not using XMMI in this routine */ 21 RtlZeroMemory(Address, Size); 22 } 23 24 VOID 25 FASTCALL 26 DECLSPEC_NORETURN 27 KiServiceExit(IN PKTRAP_FRAME TrapFrame, 28 IN NTSTATUS Status) 29 { 30 UNIMPLEMENTED; 31 } 32 33 VOID 34 FASTCALL 35 DECLSPEC_NORETURN 36 KiServiceExit2(IN PKTRAP_FRAME TrapFrame) 37 { 38 UNIMPLEMENTED; 39 } 40 41 BOOLEAN 42 NTAPI 43 KeConnectInterrupt(IN PKINTERRUPT Interrupt) 44 { 45 UNIMPLEMENTED; 46 return FALSE; 47 } 48 49 PVOID 50 NTAPI 51 KeSwitchKernelStack(PVOID StackBase, PVOID StackLimit) 52 { 53 UNIMPLEMENTED; 54 return NULL; 55 } 56 57 BOOLEAN 58 NTAPI 59 KeSynchronizeExecution( 60 IN OUT PKINTERRUPT Interrupt, 61 IN PKSYNCHRONIZE_ROUTINE SynchronizeRoutine, 62 IN PVOID SynchronizeContext) 63 { 64 UNIMPLEMENTED; 65 return FALSE; 66 } 67 68 NTSTATUS 69 NTAPI 70 KeUserModeCallback(IN ULONG RoutineIndex, 71 IN PVOID Argument, 72 IN ULONG ArgumentLength, 73 OUT PVOID *Result, 74 OUT PULONG ResultLength) 75 { 76 UNIMPLEMENTED; 77 return STATUS_UNSUCCESSFUL; 78 } 79 80 VOID 81 KiIdleLoop() 82 { 83 UNIMPLEMENTED; 84 for(;;); 85 } 86 87 VOID 88 NTAPI 89 KiInitializeUserApc(IN PKEXCEPTION_FRAME ExceptionFrame, 90 IN PKTRAP_FRAME TrapFrame, 91 IN PKNORMAL_ROUTINE NormalRoutine, 92 IN PVOID NormalContext, 93 IN PVOID SystemArgument1, 94 IN PVOID SystemArgument2) 95 { 96 UNIMPLEMENTED; 97 } 98 99 VOID 100 NTAPI 101 KiSwapProcess(IN PKPROCESS NewProcess, 102 IN PKPROCESS OldProcess) 103 { 104 UNIMPLEMENTED; 105 } 106 107 VOID 108 KiSystemService(IN PKTHREAD Thread, 109 IN PKTRAP_FRAME TrapFrame, 110 IN ULONG Instruction) 111 { 112 UNIMPLEMENTED; 113 } 114 115 NTSYSAPI 116 NTSTATUS 117 NTAPI 118 NtCallbackReturn 119 ( IN PVOID Result OPTIONAL, IN ULONG ResultLength, IN NTSTATUS Status ) 120 { 121 UNIMPLEMENTED; 122 return STATUS_UNSUCCESSFUL; 123 } 124 125 NTSTATUS 126 NTAPI 127 NtSetLdtEntries 128 (ULONG Selector1, LDT_ENTRY LdtEntry1, ULONG Selector2, LDT_ENTRY LdtEntry2) 129 { 130 UNIMPLEMENTED; 131 return STATUS_UNSUCCESSFUL; 132 } 133 134 NTSTATUS 135 NTAPI 136 NtVdmControl(IN ULONG ControlCode, 137 IN PVOID ControlData) 138 { 139 UNIMPLEMENTED; 140 return STATUS_UNSUCCESSFUL; 141 } 142 143 NTSTATUS 144 NTAPI 145 KiCallUserMode( 146 IN PVOID *OutputBuffer, 147 IN PULONG OutputLength) 148 { 149 UNIMPLEMENTED; 150 return STATUS_UNSUCCESSFUL; 151 } 152 153 #undef ExQueryDepthSList 154 NTKERNELAPI 155 USHORT 156 ExQueryDepthSList(IN PSLIST_HEADER ListHead) 157 { 158 return (USHORT)(ListHead->Alignment & 0xffff); 159 } 160 161 162 ULONG ProcessCount; 163 164 #ifdef _MSC_VER 165 void 166 __GSHandlerCheck() 167 { 168 } 169 170 int __security_cookie; 171 172 void 173 __security_check_cookie() 174 { 175 } 176 177 BOOLEAN CcPfEnablePrefetcher; 178 179 unsigned long __readfsdword(const unsigned long Offset) 180 { 181 return 0; 182 } 183 184 void main() 185 { 186 } 187 188 #endif 189