ReactOS  0.4.14-dev-815-ge410a12
stubs.c File Reference
#include <ntoskrnl.h>
#include <debug.h>
#include <ppcmmu/mmu.h>
Include dependency graph for stubs.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

NTSTATUS NTAPI NtVdmControl (IN ULONG ControlCode, IN PVOID ControlData)
 
NTSTATUS NTAPI Ke386CallBios (IN ULONG Int, OUT PCONTEXT Context)
 
VOID NTAPI KiUnexpectedInterrupt (VOID)
 
LONG NTAPI Exi386InterlockedDecrementLong (PLONG Addend)
 
LONG NTAPI Exi386InterlockedIncrementLong (PLONG Addend)
 
LONG NTAPI Exi386InterlockedExchangeUlong (PLONG Target, LONG Exch, LONG Compare)
 
NTSTATUS NTAPI KeI386FlatToGdtSelector (IN ULONG Base, IN USHORT Length, IN USHORT Selector)
 
NTSTATUS NTAPI KeI386ReleaseGdtSelectors (OUT PULONG SelArray, IN ULONG NumOfSelectors)
 
NTSTATUS NTAPI KeI386AllocateGdtSelectors (OUT PULONG SelArray, IN ULONG NumOfSelectors)
 
VOID NTAPI KeDumpStackFrames (PULONG Frame)
 
LONG NTAPI Kei386EoiHelper ()
 
NTSTATUS NTAPI KeUserModeCallback (IN ULONG RoutineIndex, IN PVOID Argument, IN ULONG ArgumentLength, OUT PVOID *Result, OUT PULONG ResultLength)
 
VOID NTAPI KiCoprocessorError ()
 
VOID NTAPI KiDispatchInterrupt ()
 
VOID NTAPI KiInitializeUserApc (IN PKEXCEPTION_FRAME ExceptionFrame, IN PKTRAP_FRAME TrapFrame, IN PKNORMAL_ROUTINE NormalRoutine, IN PVOID NormalContext, IN PVOID SystemArgument1, IN PVOID SystemArgument2)
 
PVOID NTAPI KeSwitchKernelStack (PVOID StackBase, PVOID StackLimit)
 
VOID NTAPI KiSwapProcess (struct _KPROCESS *NewProcess, struct _KPROCESS *OldProcess)
 
BOOLEAN NTAPI KiSwapContext (PKTHREAD CurrentThread, PKTHREAD NewThread)
 
VOID NTAPI KeI386VdmInitialize (VOID)
 
NTSYSAPI NTSTATUS NTAPI NtCallbackReturn (IN PVOID Result OPTIONAL, IN ULONG ResultLength, IN NTSTATUS Status)
 
NTSYSAPI NTSTATUS NTAPI NtContinue (IN PCONTEXT ThreadContext, IN BOOLEAN RaiseAlert)
 
NTSYSAPI ULONG NTAPI NtGetTickCount ()
 
NTSTATUS NTAPI NtSetLdtEntries (ULONG Selector1, LDT_ENTRY LdtEntry1, ULONG Selector2, LDT_ENTRY LdtEntry2)
 
NTSYSAPI NTSTATUS NTAPI NtRaiseException (IN PEXCEPTION_RECORD ExceptionRecord, IN PCONTEXT ThreadContext, IN BOOLEAN HandleException)
 
void _alldiv ()
 
void _alldvrm ()
 
void _allmul ()
 
void _alloca_probe ()
 
void _allrem ()
 
void _allshl ()
 
void _allshr ()
 
void _aulldiv ()
 
void _aulldvrm ()
 
void _aullrem ()
 
void _aullshr ()
 
void _abnormal_termination ()
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file stubs.c.

Function Documentation

◆ _abnormal_termination()

void _abnormal_termination ( )

Definition at line 222 of file stubs.c.

222 { }

◆ _alldiv()

void _alldiv ( )

Definition at line 200 of file stubs.c.

200 { }

◆ _alldvrm()

void _alldvrm ( )

Definition at line 202 of file stubs.c.

202 { }

◆ _allmul()

void _allmul ( )

Definition at line 204 of file stubs.c.

204 { }

◆ _alloca_probe()

void _alloca_probe ( )

Definition at line 206 of file stubs.c.

206 { }

◆ _allrem()

void _allrem ( )

Definition at line 208 of file stubs.c.

208 { }

◆ _allshl()

void _allshl ( )

Definition at line 210 of file stubs.c.

210 { }

◆ _allshr()

void _allshr ( )

Definition at line 212 of file stubs.c.

212 { }

◆ _aulldiv()

void _aulldiv ( )

Definition at line 214 of file stubs.c.

214 { }

◆ _aulldvrm()

void _aulldvrm ( )

Definition at line 216 of file stubs.c.

216 { }

◆ _aullrem()

void _aullrem ( )

Definition at line 218 of file stubs.c.

218 { }

◆ _aullshr()

void _aullshr ( )

Definition at line 220 of file stubs.c.

220 { }

◆ Exi386InterlockedDecrementLong()

LONG NTAPI Exi386InterlockedDecrementLong ( PLONG  Addend)

Definition at line 38 of file stubs.c.

39 {
41 }
IN OUT PLONG Addend
Definition: CrNtStubs.h:22
long __cdecl _InterlockedDecrement(_Interlocked_operand_ long volatile *_Addend)

Referenced by TestInterlockedFunctional().

◆ Exi386InterlockedExchangeUlong()

LONG NTAPI Exi386InterlockedExchangeUlong ( PLONG  Target,
LONG  Exch,
LONG  Compare 
)

Definition at line 48 of file stubs.c.

49 {
50  return _InterlockedCompareExchange(Target, Exch, Compare);
51 }
long __cdecl _InterlockedCompareExchange(_Interlocked_operand_ long volatile *_Destination, long _Exchange, long _Comparand)
_Must_inspect_result_ typedef _In_ ULONG _In_ BOOLEAN Target
Definition: iotypes.h:1068

Referenced by TestInterlockedFunctional().

◆ Exi386InterlockedIncrementLong()

LONG NTAPI Exi386InterlockedIncrementLong ( PLONG  Addend)

Definition at line 43 of file stubs.c.

44 {
46 }
IN OUT PLONG Addend
Definition: CrNtStubs.h:22
long __cdecl _InterlockedIncrement(_Interlocked_operand_ long volatile *_Addend)

Referenced by TestInterlockedFunctional().

◆ Ke386CallBios()

NTSTATUS NTAPI Ke386CallBios ( IN ULONG  Int,
OUT PCONTEXT  Context 
)

Definition at line 26 of file stubs.c.

28 {
29  return STATUS_UNSUCCESSFUL;
30 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ KeDumpStackFrames()

VOID NTAPI KeDumpStackFrames ( PULONG  Frame)

Definition at line 92 of file stubs.c.

93 {
94 }

◆ KeI386AllocateGdtSelectors()

NTSTATUS NTAPI KeI386AllocateGdtSelectors ( OUT PULONG  SelArray,
IN ULONG  NumOfSelectors 
)

Definition at line 83 of file stubs.c.

85 {
87  return 0;
88 }
#define UNIMPLEMENTED
Definition: stubs.c:20

◆ Kei386EoiHelper()

LONG NTAPI Kei386EoiHelper ( )

Definition at line 98 of file stubs.c.

98 { return 0; }

◆ KeI386FlatToGdtSelector()

NTSTATUS NTAPI KeI386FlatToGdtSelector ( IN ULONG  Base,
IN USHORT  Length,
IN USHORT  Selector 
)

Definition at line 58 of file stubs.c.

61 {
63  return 0;
64 }
#define UNIMPLEMENTED
Definition: stubs.c:20

◆ KeI386ReleaseGdtSelectors()

NTSTATUS NTAPI KeI386ReleaseGdtSelectors ( OUT PULONG  SelArray,
IN ULONG  NumOfSelectors 
)

Definition at line 71 of file stubs.c.

73 {
75  return 0;
76 }
#define UNIMPLEMENTED
Definition: stubs.c:20

◆ KeI386VdmInitialize()

VOID NTAPI KeI386VdmInitialize ( VOID  )

Definition at line 156 of file stubs.c.

157 {
158 }

◆ KeSwitchKernelStack()

PVOID NTAPI KeSwitchKernelStack ( PVOID  StackBase,
PVOID  StackLimit 
)

Definition at line 132 of file stubs.c.

133 {
134  return NULL;
135 }
smooth NULL
Definition: ftsmooth.c:416

◆ KeUserModeCallback()

NTSTATUS NTAPI KeUserModeCallback ( IN ULONG  RoutineIndex,
IN PVOID  Argument,
IN ULONG  ArgumentLength,
OUT PVOID Result,
OUT PULONG  ResultLength 
)

Definition at line 102 of file stubs.c.

107 {
108  return STATUS_UNSUCCESSFUL;
109 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ KiCoprocessorError()

VOID NTAPI KiCoprocessorError ( )

Definition at line 113 of file stubs.c.

113 { }

◆ KiDispatchInterrupt()

VOID NTAPI KiDispatchInterrupt ( )

Definition at line 117 of file stubs.c.

117 { }

◆ KiInitializeUserApc()

VOID NTAPI KiInitializeUserApc ( IN PKEXCEPTION_FRAME  ExceptionFrame,
IN PKTRAP_FRAME  TrapFrame,
IN PKNORMAL_ROUTINE  NormalRoutine,
IN PVOID  NormalContext,
IN PVOID  SystemArgument1,
IN PVOID  SystemArgument2 
)

Definition at line 121 of file stubs.c.

127 {
128 }

Referenced by KiDeliverApc(), and PspUserThreadStartup().

◆ KiSwapContext()

BOOLEAN NTAPI KiSwapContext ( PKTHREAD  CurrentThread,
PKTHREAD  NewThread 
)

Definition at line 147 of file stubs.c.

148 {
149  KeGetPcr()->Prcb->NextThread = NewThread;
150  __asm__("mtdec %0" : : "r" (1));
151  return TRUE;
152 }
#define TRUE
Definition: types.h:120
#define KeGetPcr()
Definition: ke.h:25
__asm__("\t.globl GetPhys\n" "GetPhys:\t\n" "mflr 0\n\t" "stwu 0,-16(1)\n\t" "mfmsr 5\n\t" "andi. 6,5,0xffef\n\t" "mtmsr 6\n\t" "isync\n\t" "sync\n\t" "lwz 3,0(3)\n\t" "mtmsr 5\n\t" "isync\n\t" "sync\n\t" "lwz 0,0(1)\n\t" "addi 1,1,16\n\t" "mtlr 0\n\t" "blr")

Referenced by KiDpcInterruptHandler(), and KiIdleLoop().

◆ KiSwapProcess()

VOID NTAPI KiSwapProcess ( struct _KPROCESS NewProcess,
struct _KPROCESS OldProcess 
)

Definition at line 139 of file stubs.c.

140 {
141  PEPROCESS EProcess = (PEPROCESS)NewProcess;
142  MmuSetVsid(0, 8, EProcess ? (ULONG)EProcess->UniqueProcessId : 0);
143 }
struct _EPROCESS * PEPROCESS
Definition: nt_native.h:30
HANDLE UniqueProcessId
Definition: pstypes.h:1198
static void MmuSetVsid(int start, int end, int vsid)
Definition: mmu.h:207
unsigned int ULONG
Definition: retypes.h:1

Referenced by KeDetachProcess(), KeUnstackDetachProcess(), and KiAttachProcess().

◆ KiUnexpectedInterrupt()

VOID NTAPI KiUnexpectedInterrupt ( VOID  )

Definition at line 34 of file stubs.c.

35 {
36 }

◆ NtCallbackReturn()

NTSYSAPI NTSTATUS NTAPI NtCallbackReturn ( IN PVOID Result  OPTIONAL,
IN ULONG  ResultLength,
IN NTSTATUS  Status 
)

Definition at line 164 of file stubs.c.

165 {
166  return STATUS_UNSUCCESSFUL;
167 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ NtContinue()

NTSYSAPI NTSTATUS NTAPI NtContinue ( IN PCONTEXT  ThreadContext,
IN BOOLEAN  RaiseAlert 
)

Definition at line 173 of file stubs.c.

174 {
175  return STATUS_UNSUCCESSFUL;
176 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ NtGetTickCount()

NTSYSAPI ULONG NTAPI NtGetTickCount ( )

Definition at line 181 of file stubs.c.

181 { return __rdtsc(); }
PPC_QUAL unsigned long long __rdtsc(void)
Definition: intrin_ppc.h:688

◆ NtRaiseException()

NTSYSAPI NTSTATUS NTAPI NtRaiseException ( IN PEXCEPTION_RECORD  ExceptionRecord,
IN PCONTEXT  ThreadContext,
IN BOOLEAN  HandleException 
)

Definition at line 195 of file stubs.c.

196 {
197  return STATUS_UNSUCCESSFUL;
198 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ NtSetLdtEntries()

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

Definition at line 186 of file stubs.c.

187 {
188  return STATUS_UNSUCCESSFUL;
189 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132

◆ NtVdmControl()

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

Definition at line 18 of file stubs.c.

20 {
21  return STATUS_UNSUCCESSFUL;
22 }
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132