ReactOS  0.4.15-dev-3295-gaa8fc87
ntoskrnl.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Kernel
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: boot/freeldr/freeldr/arch/i386/ntoskrnl.c
5  * PURPOSE: NTOS glue routines for the MINIHAL library
6  * PROGRAMMERS: HervĂ© Poussineau <hpoussin@reactos.org>
7  */
8 
9 /* INCLUDES ******************************************************************/
10 
11 #include <freeldr.h>
12 #include <ntoskrnl.h>
13 
14 /* FUNCTIONS *****************************************************************/
15 
16 VOID
17 NTAPI
22 {
23  memset(Event, 0, sizeof(*Event));
24 }
25 
26 VOID
30 {
31 #if DBG
32  /* To be on par with HAL/NTOSKRNL */
33 #ifdef _M_AMD64
35 #else
36  *SpinLock = (KSPIN_LOCK)(((PKIPCR)KeGetPcr())->PrcbData.CurrentThread) | 1;
37 #endif
38 #endif
39 }
40 
41 VOID
42 NTAPI
44  IN ULONG MaxIncrement,
45  IN ULONG MinIncrement)
46 {
47 }
48 
49 VOID
52  IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock,
53  IN PSTRING NtDeviceName,
54  OUT PUCHAR NtSystemPath,
55  OUT PSTRING NtSystemPathString)
56 {
57 }
58 
66 {
68 }
69 
70 /*
71  * NTSTATUS
72  * FASTCALL
73  * IoReadPartitionTable(
74  * IN PDEVICE_OBJECT DeviceObject,
75  * IN ULONG SectorSize,
76  * IN BOOLEAN ReturnRecognizedPartitions,
77  * OUT PDRIVE_LAYOUT_INFORMATION *PartitionBuffer);
78  *
79  * See boot/freeldr/freeldr/disk/partition.c
80  */
81 
90 {
92 }
93 
94 VOID
95 NTAPI
97  IN ULONG MicroSeconds)
98 {
99  StallExecutionProcessor(MicroSeconds);
100 }
#define IN
Definition: typedefs.h:39
VOID StallExecutionProcessor(ULONG Microseconds)
Definition: pchw.c:60
VOID FASTCALL IoAssignDriveLetters(IN struct _LOADER_PARAMETER_BLOCK *LoaderBlock, IN PSTRING NtDeviceName, OUT PUCHAR NtSystemPath, OUT PSTRING NtSystemPathString)
Definition: ntoskrnl.c:51
VOID NTAPI KeSetTimeIncrement(IN ULONG MaxIncrement, IN ULONG MinIncrement)
Definition: ntoskrnl.c:43
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
KSPIN_LOCK * PKSPIN_LOCK
Definition: env_spec_w32.h:73
_In_ ULONG _In_ ULONG _In_ ULONG NumberOfHeads
Definition: iofuncs.h:2070
_In_ ULONG _In_ ULONG PartitionNumber
Definition: iofuncs.h:2060
#define FASTCALL
Definition: nt_native.h:50
#define KeGetPcr()
Definition: ke.h:26
_In_ PDEVICE_OBJECT DeviceObject
Definition: wdfdevice.h:2055
return STATUS_NOT_IMPLEMENTED
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
_In_ ULONG _In_ ULONG SectorsPerTrack
Definition: iofuncs.h:2070
_Must_inspect_result_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFSPINLOCK * SpinLock
Definition: wdfsync.h:225
_In_ ULONG _In_ BOOLEAN _Out_ struct _DRIVE_LAYOUT_INFORMATION ** PartitionBuffer
Definition: iofuncs.h:2052
unsigned char BOOLEAN
enum _EVENT_TYPE EVENT_TYPE
Type
Definition: Type.h:6
VOID NTAPI KeInitializeEvent(IN PRKEVENT Event, IN EVENT_TYPE Type, IN BOOLEAN State)
Definition: ntoskrnl.c:18
VOID FASTCALL KefAcquireSpinLockAtDpcLevel(IN PKSPIN_LOCK SpinLock)
Definition: ntoskrnl.c:28
ULONG KSPIN_LOCK
Definition: env_spec_w32.h:72
#define OUT
Definition: typedefs.h:40
NTSTATUS FASTCALL IoSetPartitionInformation(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG PartitionNumber, IN ULONG PartitionType)
Definition: ntoskrnl.c:61
CHAR PartitionType
Definition: part_xbox.c:32
unsigned int ULONG
Definition: retypes.h:1
NTSTATUS FASTCALL IoWritePartitionTable(IN PDEVICE_OBJECT DeviceObject, IN ULONG SectorSize, IN ULONG SectorsPerTrack, IN ULONG NumberOfHeads, IN PDRIVE_LAYOUT_INFORMATION PartitionBuffer)
Definition: ntoskrnl.c:84
_In_ ULONG SectorSize
Definition: halfuncs.h:291
#define KeGetCurrentThread
Definition: hal.h:55
#define memset(x, y, z)
Definition: compat.h:39
VOID NTAPI KeStallExecutionProcessor(IN ULONG MicroSeconds)
Definition: ntoskrnl.c:96