mirror of
https://github.com/reactos/reactos.git
synced 2025-07-04 04:41:24 +00:00
[CMAKE]
* Fix cmake build. Now both rbuild and cmaked based builds compile and boot to shell. svn path=/trunk/; revision=51836
This commit is contained in:
parent
67b57d645d
commit
db0a15cd8a
2 changed files with 17 additions and 37 deletions
11
reactos/ntoskrnl/cache/section/io.c
vendored
11
reactos/ntoskrnl/cache/section/io.c
vendored
|
@ -99,6 +99,9 @@ MiSimpleRead
|
||||||
PLARGE_INTEGER FileOffset,
|
PLARGE_INTEGER FileOffset,
|
||||||
PVOID Buffer,
|
PVOID Buffer,
|
||||||
ULONG Length,
|
ULONG Length,
|
||||||
|
#ifdef __ROS_CMAKE__
|
||||||
|
BOOLEAN Paging,
|
||||||
|
#endif
|
||||||
PIO_STATUS_BLOCK ReadStatus)
|
PIO_STATUS_BLOCK ReadStatus)
|
||||||
{
|
{
|
||||||
NTSTATUS Status;
|
NTSTATUS Status;
|
||||||
|
@ -141,7 +144,11 @@ MiSimpleRead
|
||||||
return STATUS_NO_MEMORY;
|
return STATUS_NO_MEMORY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef __ROS_CMAKE__
|
||||||
Irp->Flags |= IRP_PAGING_IO | IRP_SYNCHRONOUS_PAGING_IO | IRP_NOCACHE | IRP_SYNCHRONOUS_API;
|
Irp->Flags |= IRP_PAGING_IO | IRP_SYNCHRONOUS_PAGING_IO | IRP_NOCACHE | IRP_SYNCHRONOUS_API;
|
||||||
|
#else
|
||||||
|
Irp->Flags |= (Paging ? IRP_PAGING_IO | IRP_SYNCHRONOUS_PAGING_IO | IRP_NOCACHE : 0) | IRP_SYNCHRONOUS_API;
|
||||||
|
#endif
|
||||||
|
|
||||||
Irp->UserEvent = &ReadWait;
|
Irp->UserEvent = &ReadWait;
|
||||||
Irp->Tail.Overlay.OriginalFileObject = FileObject;
|
Irp->Tail.Overlay.OriginalFileObject = FileObject;
|
||||||
|
@ -151,6 +158,10 @@ MiSimpleRead
|
||||||
IrpSp->FileObject = FileObject;
|
IrpSp->FileObject = FileObject;
|
||||||
IrpSp->CompletionRoutine = MiSimpleReadComplete;
|
IrpSp->CompletionRoutine = MiSimpleReadComplete;
|
||||||
|
|
||||||
|
#ifdef __ROS_CMAKE__
|
||||||
|
ObReferenceObject(FileObject);
|
||||||
|
#endif
|
||||||
|
|
||||||
Status = IoCallDriver(DeviceObject, Irp);
|
Status = IoCallDriver(DeviceObject, Irp);
|
||||||
if (Status == STATUS_PENDING)
|
if (Status == STATUS_PENDING)
|
||||||
{
|
{
|
||||||
|
|
37
reactos/ntoskrnl/cache/section/newmm.h
vendored
37
reactos/ntoskrnl/cache/section/newmm.h
vendored
|
@ -181,6 +181,9 @@ MiSimpleRead
|
||||||
PLARGE_INTEGER FileOffset,
|
PLARGE_INTEGER FileOffset,
|
||||||
PVOID Buffer,
|
PVOID Buffer,
|
||||||
ULONG Length,
|
ULONG Length,
|
||||||
|
#ifdef __ROS_CMAKE__
|
||||||
|
BOOLEAN Paging,
|
||||||
|
#endif
|
||||||
PIO_STATUS_BLOCK ReadStatus);
|
PIO_STATUS_BLOCK ReadStatus);
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -404,40 +407,6 @@ MmCreateCacheSection
|
||||||
ULONG AllocationAttributes,
|
ULONG AllocationAttributes,
|
||||||
PFILE_OBJECT FileObject);
|
PFILE_OBJECT FileObject);
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
MiSimpleRead
|
|
||||||
(PFILE_OBJECT FileObject,
|
|
||||||
PLARGE_INTEGER FileOffset,
|
|
||||||
PVOID Buffer,
|
|
||||||
ULONG Length,
|
|
||||||
PIO_STATUS_BLOCK ReadStatus);
|
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
_MiSimpleWrite
|
|
||||||
(PFILE_OBJECT FileObject,
|
|
||||||
PLARGE_INTEGER FileOffset,
|
|
||||||
PVOID Buffer,
|
|
||||||
ULONG Length,
|
|
||||||
PIO_STATUS_BLOCK ReadStatus,
|
|
||||||
const char *file,
|
|
||||||
int line);
|
|
||||||
|
|
||||||
#define MiSimpleWrite(F,O,B,L,R) _MiSimpleWrite(F,O,B,L,R,__FILE__,__LINE__)
|
|
||||||
|
|
||||||
NTSTATUS
|
|
||||||
NTAPI
|
|
||||||
_MiWriteBackPage
|
|
||||||
(PFILE_OBJECT FileObject,
|
|
||||||
PLARGE_INTEGER Offset,
|
|
||||||
ULONG Length,
|
|
||||||
PFN_NUMBER Page,
|
|
||||||
const char *File,
|
|
||||||
int Line);
|
|
||||||
|
|
||||||
#define MiWriteBackPage(F,O,L,P) _MiWriteBackPage(F,O,L,P,__FILE__,__LINE__)
|
|
||||||
|
|
||||||
PVOID
|
PVOID
|
||||||
NTAPI
|
NTAPI
|
||||||
MmGetSegmentRmap(PFN_NUMBER Page, PULONG RawOffset);
|
MmGetSegmentRmap(PFN_NUMBER Page, PULONG RawOffset);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue