Commit Graph

247 Commits

Author SHA1 Message Date
Sebastian Lackner b466e89311 ntoskrnl.exe: Explicitly set MappedSystemVa for MDLs.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:48 -07:00
Sebastian Lackner 9912ef778f ntoskrnl.exe: Use MmInitializeMdl in IoAllocateMdl.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:48 -07:00
Sebastian Lackner eb7ac554d1 ntoskrnl.exe: Add support for METHOD_IN_DIRECT/METHOD_OUT_DIRECT ioctls.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07:00
Sebastian Lackner 5789b94f19 ntoskrnl.exe: Defer deallocation of in_buff in dispatch_ioctl.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-17 16:19:47 -07:00
Alexandre Julliard 624deeb49d ntdll: Prevent importing the Zw functions.
It's better to consistently use the Nt ones.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-14 09:39:34 +02:00
Sebastian Lackner 02c861306e ntoskrnl.exe: Do not abuse UserEvent to store event handle.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-14 09:18:28 +02:00
Sebastian Lackner a0d04a641d ntoskrnl.exe: Fix management of input/output buffers in dispatch handlers.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 09:40:19 +02:00
Sebastian Lackner e20259bb6e ntoskrnl.exe: Add support for async close processing.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-13 09:40:13 +02:00
Sebastian Lackner 8d799ea57b ntoskrnl.exe: Don't transfer back input buffer for IRP_MJ_WRITE requests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-12 21:31:36 +02:00
Sebastian Lackner 5400210376 ntoskrnl.exe: Use completion routine to transfer result of IRP back to server.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-11 09:41:16 +02:00
Sebastian Lackner 14b2a6a190 ntoskrnl.exe: Fix parameters of IoBuildSynchronousFsdRequest in dispatch_flush.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:13:41 +02:00
Sebastian Lackner 54c68c6533 ntoskrnl.exe: Remove checks if MajorFunction is NULL.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:13:28 +02:00
Sebastian Lackner d392a01208 ntoskrnl.exe: Fix a copy & paste error in dispatch_close.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-07 13:12:47 +02:00
Sebastian Lackner 302d86f1a9 ntoskrnl.exe: Return STATUS_INVALID_DEVICE_REQUEST when calling unhandled driver function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-06 19:17:44 +02:00
Aric Stewart b8ac3d7684 ntoskrnl.exe: Implement removing plug and play devices.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:20 +09:00
Aric Stewart 2abe557352 ntoskrnl.exe: Implement DevicePropertyEnumeratorName for IoGetDeviceProperty.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 23:14:34 +09:00
Aric Stewart d39d1464f3 ntoskrnl.exe: Send PnP and Power IRPs to plug and play devices.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 23:13:10 +09:00
Aric Stewart e4496a976b ntoskrnl.exe: Implement loading plug and play devices.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 22:35:12 +09:00
Jacek Caban d29e59a145 rbtree.h: Take wine_rb_entry as wine_rb_remove argument type and add new wine_rb_remove_key helper using key.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Matteo Bruni <mbruni@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 00:01:53 +09:00
Aric Stewart 562ce28d1b ntoskrnl.exe: Implement IoGetAttachedDevice and IoGetAttachedDeviceReference.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 22:17:06 +09:00
Sebastian Lackner b1c36e7583 ntoskrnl.exe: Use the same timeout for service startup like in other wine modules.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-02 11:28:15 +09:00
Aric Stewart 9f99a045a3 ntoskrnl.exe: Stub IoInvalidateDeviceRelations.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 20:47:50 +09:00
Jacek Caban ccdbc176c0 ntoskrnl.exe: Use static initializer for device_drivers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-31 22:22:38 +09:00
Sebastian Lackner a7e9fa6253 ntoskrnl.exe: Implement ZwLoadDriver and ZwUnloadDriver based on services API.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 20:09:38 +09:00
Alexander Morozov 2898df50e6 ntoskrnl.exe: Add stub for ObDereferenceObject.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-09 11:59:38 +09:00
André Hentschel d22964d952 ntdll: Implement 64-bit shifts.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 21:47:06 +09:00
Aric Stewart 6a686d63ad ntoskrnl.exe: Implement ObReferenceObjectByName but only for loaded drivers.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-04 13:18:33 -05:00
Sebastian Lackner 272ebf862d ntoskrnl.exe: Fix leak of ServiceKeyName if DriverInit fails.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 14:56:38 -05:00
Aric Stewart 79cd0d870d ntoskrnl.exe: Track drivers created with IoCreateDriver.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-03 14:56:34 -05:00
Francois Gouget 0be7d7fad8 ntoskrnl.exe: Add a trailing '\n' to a FIXME() message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-01 05:30:17 -05:00
Aric Stewart 2ffaaee1cf ntoskrnl: Build a more intelligent and correct RegistryPath if possible.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:03 +09:00
Alexandre Julliard 82ca87bc2d ntoskrnl.exe: Fix ZwQuerySection spec file entry.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 22:21:07 +09:00
Austin English 0e5fdf0e00 ntoskrnl.exe: Add IoAttachDevice stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-14 17:40:13 +09:00
Alexandre Julliard f21cb01aa4 makefiles: Don't allow import libraries to have an extension.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 14:04:20 +09:00
Ken Thomases f8220cbe93 ntoskrnl.exe: Fix SIB_INDEX() to use REX_X, not REX_R.
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 15:21:41 +09:00
Bernhard Übelacker 64aec5d8db ntoskrnl.exe: Make IoAllocateIrp not crash on negative values.
Signed-off-by: Bernhard Übelacker <bernhardu@vr-web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 13:25:46 +09:00
Sebastian Lackner 6c8f398e48 ntoskrnl.exe: Add missing linebreak to FIXME in KeDelayExecutionThread.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 12:52:54 +09:00
Austin English c6373260e0 ntoskrnl.exe: Add KeDelayExecutionThread stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-04 19:15:06 +09:00
Austin English b1c02353df ntoskrnl.exe: Add PsRemoveLoadImageNotifyRoutine stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-04 19:15:06 +09:00
Sebastian Lackner e177f86939 ntoskrnl.exe: Use debugstr_us() to trace UNICODE_STRING.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:40:27 +09:00
Sebastian Lackner 2748d4b771 ntoskrnl.exe: Fix calling convention of ObfReferenceObject.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:40:25 +09:00
Sebastian Lackner be0e86c526 ntoskrnl.exe: Fix calling convention of InterlockedPushEntrySList.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:40:19 +09:00
Sebastian Lackner 8ae681101f ntoskrnl.exe: Fix calling convention of InterlockedPopEntrySList.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 13:40:12 +09:00
Aric Stewart 5dc8dc829a ntoskrnl.exe: Implement IoGetDeviceProperty for DevicePropertyPhysicalDeviceObjectName.
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 22:44:59 +09:00
Austin English f12241ae14 ntoskrnl.exe: Add RtlInitializeGenericTableAvl/RtlInsertElementGenericTableAvl stubs.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 15:04:31 +01:00
Sebastian Lackner ecfaecd272 ntoskrnl.exe: Fix specfile entry for MmMapIoSpace.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:48 +09:00
Qian Hong f9c80b087f ntoskrnl.exe: Add PsRemoveCreateThreadNotifyRoutine stub.
Signed-off-by: Qian Hong <qhong@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 23:05:45 +09:00
Austin English 0a5f0f7420 ntoskrnl.exe: Add CmRegisterCallback/CmUnRegisterCallback stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:41 +09:00
Austin English 4d08cbf7cb ntoskrnl.exe: Add ExDeletePagedLookasideList stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 22:24:56 +09:00
Austin English f876b033c2 ntoskrnl.exe: Add ExDeleteNPagedLookasideList stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 22:24:56 +09:00