Commit graph

43460 commits

Author SHA1 Message Date
Aleksey Bragin 8fcb361453 [PCIX]
- Stefan Ginsberg: Fix a typo in the if expression.

svn path=/trunk/; revision=48751
2010-09-12 10:35:01 +00:00
Aleksey Bragin 5bb5788d76 [NTOS]
- Add CmRegistryMachineSystemName to the internal header file, needed for Pierre's further work.

svn path=/trunk/; revision=48750
2010-09-12 10:29:35 +00:00
Aleksey Bragin 526130ba91 [FREETYPE]
- Fix FT_Get_CID_Is_Internally_CID_Keyed export name to match source code.

svn path=/trunk/; revision=48749
2010-09-12 10:11:55 +00:00
Sir Richard 6575a83c33 - Fix the ChangeResourceSetting and the Reset configurator callback parameter names
- Part support for resource change with PciComputeNewCurrentSettings... full support for PciSetResources, PciUpdateHardware, PcipUpdateHardare
- IRP_MN_START_DEVICE for PDO (PciPdoIrpStartDevice) implement 
- PciNextPartialDescriptor, PciDebugPrintCmResList, PciDebugPrintPartialResource helpers implement
- Now full PDO support almost done, PCIX driver ready for test
- Thanks to cgoodman assert fix
- PnP forever recursion in enumerate, must fix to finish
- Goodbye sir_richard, nice to have you

svn path=/trunk/; revision=48748
2010-09-12 06:03:12 +00:00
Cameron Gutman a0b7f0f4b9 [USETUP]
- Update the Polish translation
- Patch by Olaf Siejka

svn path=/trunk/; revision=48747
2010-09-12 00:47:07 +00:00
Aleksey Bragin a14482e225 [WINLOGON]
- Fix comments copypasta.

svn path=/trunk/; revision=48746
2010-09-11 21:16:41 +00:00
Aleksey Bragin a5c563dfdb [NTOS]
- Daniel Zimmermann: Fix POPF bugs in VDM mode, namely truncation of the stackpointer to 16 bit and setting proper flags in the trapframe eflags register. This fixes problems with videocards calling int 0x10 VESA BIOS extension.
See issue #5608 for more details.

svn path=/trunk/; revision=48745
2010-09-11 09:20:26 +00:00
Aleksey Bragin b8cbac25c2 - Fix build, sorry.
svn path=/trunk/; revision=48744
2010-09-11 09:01:58 +00:00
Aleksey Bragin c9888046ef [HAL]
- Don't include PCI IDs database into mini-HAL.

svn path=/trunk/; revision=48743
2010-09-10 21:57:46 +00:00
Eric Kohl c3c0a62855 [DESK.CPL]
Fix client font in the advanced appearance dialog. Patch by Katayama Hirofumi.
See issue #5552 for more details.

svn path=/trunk/; revision=48742
2010-09-10 21:57:36 +00:00
Aleksey Bragin 9488b4aab6 [FORMATTING]
- Fix indentation.

svn path=/trunk/; revision=48741
2010-09-10 21:51:32 +00:00
Aleksey Bragin 2d246e918e [HAL]
- Add missing call to HalInitPnpDriver during I/O manager initialization. The HAL PnP driver was never getting initialized.
- Add HAL callback for HalInitPnpDriver. It's going to be needed in future for eVb's PCI driver to fully work (interrupt translation, among other things).

svn path=/trunk/; revision=48740
2010-09-10 21:46:13 +00:00
Aleksey Bragin 1a029a622d [NTOS]
- Fix several bugs in Inbv (busted locking code, useless variables, magic initializers).

svn path=/trunk/; revision=48739
2010-09-10 21:28:24 +00:00
Michael Martin bd0767f9fd [ntoskrnl/io]
- Modify IopCreateDriver to accept the PLDR_DATA_TABLE_ENTRY instead of the DllBase and SizeOfImage from this structure.
- Set the DriverObject->DriverSection before calling the DriverEntry routine.
- If the DriverEntry routine fails then set the DriverObject->DriverSection back to NULL so that IopDeleteDriver doesnt attempt to unload the ModuleObject, after it was already unloaded by the caller.

svn path=/trunk/; revision=48738
2010-09-10 21:25:53 +00:00
Aleksey Bragin 0daaf9da75 [NTOS]
- Fix a code typo which led to a security issue when the XOR algorithm for the system cookie might actually yield zero. Now it's going to loop as long as the cookie is 0, attempting to generate a non-zero one.

svn path=/trunk/; revision=48737
2010-09-10 21:13:06 +00:00
Aleksey Bragin 9b12a8c1d7 [NDK]
- Remove deprecated KV86M structures and files.

svn path=/trunk/; revision=48736
2010-09-10 21:08:38 +00:00
Aleksey Bragin 1f4771d41b [NTOS]
- Fix a strange bug where we were only setting SharedUserData->TestRetInstruction conditionally only if lookup failed - it should be set on success. Also, bail out if the lookups failed.

svn path=/trunk/; revision=48735
2010-09-10 21:01:59 +00:00
Michael Martin dee985f9c6 [ntoskrnl/io/pnpmgr]
- Fix incorrect POOL_TYPE allocation in IoInvalidateDeviceRelations. This function can be called at DISPATCH_LEVEL, which requires NonPagedPool POOL_TYPE.

svn path=/trunk/; revision=48734
2010-09-10 19:45:01 +00:00
Aleksey Bragin 1355a06e32 [NDK]
- Fix KiBugCheckData declaration.

svn path=/trunk/; revision=48733
2010-09-10 18:20:37 +00:00
Aleksey Bragin 0955523e4f [WIN32K]
- Giannis Adamopoulos: Only dereference a class if it's valid, should fix Heroes 3 crash.
See issue #5606 for more details.

svn path=/trunk/; revision=48732
2010-09-10 18:13:02 +00:00
Aleksey Bragin cacc80ae3e [HAL]
- Stub support for future timer latency watchdog.
- Change older-style comments to standard ReactOS commenting style.

svn path=/trunk/; revision=48731
2010-09-10 13:15:51 +00:00
Aleksey Bragin b84512b555 [NTOS]
- Rename KINTERRUPT_DISPATCH_CODES to DISPATCH_LENGTH, as it is in PSDK.
- Enhance NMI debug support.
- Change some comments to standard ReactOS commenting style.

svn path=/trunk/; revision=48730
2010-09-10 09:54:30 +00:00
Aleksey Bragin 7a9bd9ccea [KERNEL32]
- Fix release build, part 2. Further improvement to gDebugChannels would be to convert them to a DECLARE_DEBUG_CHANNEL-alike macro.

svn path=/trunk/; revision=48729
2010-09-10 09:04:25 +00:00
Aleksey Bragin 60bb233f46 - Fix typos in the description of serial port defines.
svn path=/trunk/; revision=48728
2010-09-10 08:30:13 +00:00
Sir Richard c27087c0e6 Patch by Anton Yarotsky:
[CPORTLIB]: Implement Windows' Cp (ComPort) library. See Notes in C file. Not yet used. Based on MS Whitepaper: Building Hardware and Firmware to Complement Microsoft Windows Headless Operation.

svn path=/trunk/; revision=48727
2010-09-10 05:22:48 +00:00
Aleksey Bragin 228af0c797 [NTOS]
- Fix release build, leftover from 48692.

svn path=/trunk/; revision=48726
2010-09-09 21:06:13 +00:00
Michael Martin 322032192b [ntoskrnl/po]
- Fix typo.

svn path=/trunk/; revision=48725
2010-09-09 09:22:49 +00:00
Michael Martin 573715a9fe [ntoskrnl/po]
- When an IRP is freed in a Completion routine the return Status is STATUS_MORE_PROCESSING_REQUIRED to let IoCompleteRequest know not to do anything further with the IRP.

svn path=/trunk/; revision=48724
2010-09-08 21:30:40 +00:00
Eric Kohl db5ca64e4e [SCSIPORT]
Implement RequestTimerCall-Notification. This is used by uniata.

svn path=/trunk/; revision=48723
2010-09-08 10:39:37 +00:00
Eric Kohl 3100fc8995 [USETUP]
Allocate a drive layout buffer that is large enough to keep a primary partition table (4 partition entries) plus 26 logical drives (2 partition entries each). Total 56 partition entries. This should be enough for everybody until we support GPT partition tables. ;-)
See issue #5270 for more details.

svn path=/trunk/; revision=48722
2010-09-07 15:21:06 +00:00
Eric Kohl 340a34cec4 Improvements to NtAdjustPrivilegesToken part 4 (last one):
- SEH-protect all code that writes to PreviousState as it cannot be captured.
- Add a missing ObDereferenceObject and SeReleaseLuidAndAttributesArray.

svn path=/trunk/; revision=48721
2010-09-07 15:08:29 +00:00
Michael Martin e851b3ba21 [usb/usbhub]
- Add function for dumping the Device and Configuration Descriptors.
- Implement WaitForUsbDeviceArrivalNotification, used to send a URB transaction to the Status Change Endpoint of the RootHubs pdo. The RootHubs pdo will queue this request until a new usb device connects.
- Call above function at the end of UsbhubFdoQueryBusRelations, which will be called by the pnp manager after the hub driver creates a new child device.
- Change the URB to be allocated from the pool at IRP_MN_START_DEVICE.
- Call QueryRootHub with the RootHub Pdo and not the hub drivers DeviceObject.
- Implement selecting a configuration for the RootHub.

svn path=/trunk/; revision=48719
2010-09-07 11:44:03 +00:00
Michael Martin b43cf6c771 [USETUP]
- Translation updates by Pierre Schweitzer.

svn path=/trunk/; revision=48718
2010-09-07 09:40:53 +00:00
Eric Kohl 6153f47739 Improvements to NtAdjustPrivilegesToken part 3:
- Simplify the privilege modification code.

svn path=/trunk/; revision=48717
2010-09-07 09:32:30 +00:00
Sir Richard b96cb710f4 [GDI32]: Don't destroy the heap when calling GetSystemPaletteEntries. Note to whoever wrote "//make this work": (&array[x]) is defintely not equal to (&array + x). This is why we don't use pointers-to-arrays, among other reasons.
[GDI32]: Reformat GetSystemPaletteEntries away from grotesque 5-space identation (who does that?).
[GDI32]: Optimize GetSystemPaletteEntries by not zeroing over fields that get overwritten anyway.
[GDI32]: Simplify loop control, remove not-needed local variable in GetSystemPaletteEntries.

svn path=/trunk/; revision=48716
2010-09-07 07:50:51 +00:00
Sir Richard 65fc01dc92 [PSDK]: Get rid of unused variable.
svn path=/trunk/; revision=48715
2010-09-07 05:22:13 +00:00
Cameron Gutman 70e3baab3e [FREELOADER]
- Don't zero the target of an uninitialized pointer
- Thanks to arty for finding the issue

svn path=/trunk/; revision=48713
2010-09-07 01:31:24 +00:00
Sir Richard b0e67ed0fb [WIN32K]: Fix large amount of set-but-unused variables. Most of these seemed to be old/unfinished code, however in IntGdiPaintRgn an actual bug seems to have been found.
[WIN32K]: Make IntGdiPaintRgn return the status of the operation, not always TRUE.

svn path=/trunk/; revision=48712
2010-09-06 23:55:53 +00:00
Timo Kreuzer b687dc9462 [USETUP]
- When creating fresh partitions, set the HiddenSectors mamber. Fixes fat32 installation.

svn path=/trunk/; revision=48711
2010-09-06 17:02:47 +00:00
Eric Kohl 9ba0d09d90 Improvements to NtAdjustPrivilegesToken part 2:
- Check for invalid parameter combinations.
- Count privileges that will be changed before changing them.
- Return required buffer size.
- Fail if the provided buffer is too small.
See issue #5497 for more details.

svn path=/trunk/; revision=48710
2010-09-06 15:26:12 +00:00
Eric Kohl 1e34ad4d19 Translated new boot loader options and fixed a typo.
svn path=/trunk/; revision=48709
2010-09-06 10:24:50 +00:00
Eric Kohl fd61ebc8bb fdc.inf: Fix a typo in the class guid.
hdc.inf: Add missing manufacturer string.

svn path=/trunk/; revision=48708
2010-09-06 09:53:36 +00:00
Eric Kohl b9159984e7 NtAdjustPrivilegesToken: Probe and capture parameters before use.
See issue #5497 for more details.

svn path=/trunk/; revision=48707
2010-09-06 09:51:46 +00:00
Timo Kreuzer 3995cce1ba [USETUP]
The VBR (volume boot sector) contains a structure called BPB (bios parameter block) that describes the disk and the partition. The HiddenSectors member contains the number of the first sector of the partition. This is used by the VBR code to load the secondary sector containing additional boot code that is located at secor 14 relative to the partition start. Previously we were copying the BPB (plus additionally the OemName, which makes no sense) from the old VBR. Now Linux is a bit lame and doesn't put the correct value into the HiddenSectors field. Instead it sets it to the number of sectors per track which seems to be the default value. When now the linux partition manager decides to do a non standard partitioning, aligning the partition to 0x800, then the VBR fails to load it's 2nd sector. Fix this by correcting the value in the BPB with the value from the partition info.

See issue #2733 for more details.

svn path=/trunk/; revision=48706
2010-09-06 01:46:06 +00:00
Michael Martin 74d5088c7d [usb/usbhub]
- Start rewrite of usbhub driver using the old and dead usbhub driver in trunk.
- Implement QueryRootHub for sending USB request to miniport driver.
- Implement new IRP_MN_START_DEVICE.  
Get the roothubs PDO and FDO and forward the start device down to start the PDO.
Get USBDI and HUB interfaces. Set all ports as returned by DCI GetExtendedHubInformation to powered and reset.
- Temporary add some usb specific defines until header is fixed.
- Fix Formatting.



svn path=/trunk/; revision=48705
2010-09-05 19:00:37 +00:00
Michael Martin 639f26f1b5 [usb/usbehci]
- Fix flags settings for PortStatus and PortChange so that the correct flags are set when hub driver sets/requests them.
- Use FastMutex to protect access to async queue and frame list.
- For USB CONFIG DESC, Check the output buffer size before attempting to write all configuration descriptors.
- Fix a bug that caused bmRequestType to be incorret value when requesting configuration and string descriptors.
- Modify some debugging to make it easier to see debug messages from usbhub driver.

svn path=/trunk/; revision=48704
2010-09-05 18:43:17 +00:00
Cameron Gutman 38a87f0176 [USETUP]
- Add the option to write only the VBR so FreeLoader can easily be chain loaded by GRUB or another boot loader
- Dedicated to James Tabor :)

svn path=/trunk/; revision=48703
2010-09-05 17:09:18 +00:00
Timo Kreuzer 113c47805c Update the GAS compatible fathelp.S file to reflect the latest changes to the original file (freeldr PE conversion). This version is tested and works.
svn path=/trunk/; revision=48701
2010-09-05 16:03:08 +00:00
Cameron Gutman f276fcd056 [USETUP]
- Remove code that was corrupting disk data and causing setup to fail in rare cases
- Write the MBR in all cases (Windows setup behavior too)
- We can overwrite GRUB and LILO now but we still can't boot because we have trouble reading the partition table if it was made in Linux

svn path=/trunk/; revision=48700
2010-09-04 20:56:19 +00:00
Sir Richard edfb344c53 [NTOS]: Remove useless variables in kernel code that were set, but never actually used (dead code, tests, copy/pasters). If a variable was set but not used because of missing/#if'ed out code, a note was added instead.
[NTOS]: In the process, fix bugs in the Event dispatcher code that used Win32 EVENT_TYPE instead of NT KOBJECTS enumeration.
[NTOS]: Fix a bug in ObpInsertHandleCount, where the object access check was being done with the previous mode, instead of honoring the probe mode, which is defined by OBJ_FORCE_ACCESS_CHECK.
[NTOS]: Fix a bug in a section function which was always returning STATUS_SUCCESS, now it returns the result of the previous Status = function assignment. If this isn't desired, then don't check for the Status anymore.
[NTOS]: Note that MDL code does not support SkipBytes argument. If it is used, MDL could be invalid.
[NTOS]: Add checks for VerifierAllocation and set it when needed (WIP).
[NTOS]: Clarify what _WORKING_LINKER_ is, and the legal risks in continuing to use a linker that builds non-Microsoft drivers when used with headers whose EULA specify that they can only be used for Microsoft drivers.

svn path=/trunk/; revision=48692
2010-09-04 08:17:17 +00:00