Commit graph

43543 commits

Author SHA1 Message Date
Amine Khaldi a6480c90d3 [USETUP]
- Update Ukrainian translation by Igor Paliychuk.
See issue #5536 5540 5604 5614 5617 for more details.

svn path=/trunk/; revision=48915
2010-09-28 13:39:57 +00:00
Kamil Hornicek 9856680c43 [KERNEL32]
Winnls.h can be included now.

svn path=/trunk/; revision=48913
2010-09-28 00:02:05 +00:00
Sir Richard f269313793 - Remove MiZeroPage, use MiZeroPhysicalPage instead. They work pretty much the same except the needless raise to DISPATCH_LEVEL.
- Get rid of the messed up MiMapPageToZeroInHyperSpace which was hacking into MiMapPagesToZeroInHyperSpace. Now MiMapPagesToZeroInHyperSpace is properly implemented to use chained PFNs, and the MmZeroPageThread code has been modified to correctly use the new mechanism.
- Zero page mapping now happens at PASSIVE trough MiMapPAgesToZeroInHyperSpace, not DISPATCH anymore.
- More fixes are coming to remove the remaining MiRemoveHeadList and rewrite the zero page loop. Should fix more possible corruptions.

svn path=/trunk/; revision=48912
2010-09-27 21:58:54 +00:00
Sir Richard df34e334f0 [NTOS]: Adding colored page lists means we need to start using the OriginalPte field as a forward/back link. This is shared with AweReferenceCount, which ReactOS uses as the RMAP list head. However, RMAPped pages shoudl never be free/zero, and non-free-zero pages will never have a color backlink in OriginalPte, so it should theoretically be safe to do this. However, it's possible for the RMAP "get" function to be called on a free/zero page (which would normally return NULL), but with color chaining enabled, the "get" function would misinterpret the backlink as an RMAP entry. Therefore, we overload the ParityError bit to signify "there is an RMAP". The get/set functions now handle this, and the color linkage will ASSERT this later. This way, a colorlink with ParityError == FALSE is not treated as an rmap list head.
svn path=/trunk/; revision=48910
2010-09-27 17:36:54 +00:00
Sir Richard 05ce063ebc [NTOS]: Don't use dangerous MiRemoveHeadList in MDL page allocation, use MiRemoveAnyPage instead.
[NTOS]: Don't repurpose pages from the zero/free page list without actually unlinking the page first! This should fix even more corruptions.

svn path=/trunk/; revision=48909
2010-09-27 17:09:33 +00:00
Sir Richard f5f6cee1d0 [NTOS]: Stop using MiInsertInListTail and MiRemoveHeadList in the deprecated ReactOS page functions. Those two functions do not adequately support the semantis needed for page insertion/removal and should've never been used. MmAllocPage now uses MiRemoveAny/ZeroPage, and MmDereferencePage uses MiInsertPageInFreeList. Should help with some corruptions. More is coming.
svn path=/trunk/; revision=48908
2010-09-27 16:00:24 +00:00
Giannis Adamopoulos 3e70fced07 [user32]
- Remove the last reactos-only export from user32 (PrivateCsrssManualGuiCheck)

[win32csr]
- Move PrivateCsrssManualGuiCheck from user32 to win32csr

svn path=/trunk/; revision=48907
2010-09-27 14:31:13 +00:00
Michael Martin f9692ba22c [ntoskrnl/mm]
- Acquire rundown protection on process to make sure it is not being terminated and before attempting to do anything with the process. Fixed a rare case of PspDeleteProcess being called twice for a process, resulting in bugcheck.


svn path=/trunk/; revision=48905
2010-09-27 08:46:02 +00:00
James Tabor e4ec568733 [Win32k]
- Implement win32k support functions for Get and Set process default layout.
- Due to changes with wine it will be difficult to sync when RTL support is being added to ComCtl32.

svn path=/trunk/; revision=48904
2010-09-27 02:46:16 +00:00
Sir Richard de914c19e1 [DDK]: Add misisng MmLockPagableCodeSection.
svn path=/trunk/; revision=48903
2010-09-26 15:01:37 +00:00
Eric Kohl db53bf24cb [NTOSKRNL]
Implement NtQueryOpenSubKeys.

svn path=/trunk/; revision=48902
2010-09-26 11:37:40 +00:00
Matthias Kupfer c23c9c81ca disable some locale IDs because they are not supported yet
- 417 Rhaeto-Romanic
- 445 Bengali (India)
or still unknown
- 48f
- 490
this fixes multiple entries (see bug #5636)

svn path=/trunk/; revision=48898
2010-09-25 23:20:23 +00:00
Eric Kohl 1f2f04ed9b [NTOSKRNL]
IoRegisterPlugPlayNotification: Do not fail if no Interface can be found for the given GUID. Just do not call the Callback-Routine in this case. The Interface could be created later.

svn path=/trunk/; revision=48896
2010-09-25 21:49:15 +00:00
Pierre Schweitzer d695e74a70 [RTL]
Fixed a really stupid (and old) bug in RtlComputeCrc32():
First parameter is initial CRC32 checksum. And it's complete and not partial, thus it needs to be an ULONG and not an USHORT.
This fixes CRC32 checksum computation with initial checksum (tested again Windows 2003 & Seven).

svn path=/trunk/; revision=48895
2010-09-25 21:20:54 +00:00
Amine Khaldi ced22a087c [PSDK]
- Add missing header's header.

svn path=/trunk/; revision=48894
2010-09-25 20:47:15 +00:00
Christoph von Wittich 355ac9b9dc [bzip2]
update bzip2 library to 2.06

svn path=/trunk/; revision=48892
2010-09-25 20:28:00 +00:00
Jérôme Gardou cb3ae7dca0 [WIN32K]
- clean up EXLATEOBJ before error path in NtGdiBitBlt

svn path=/trunk/; revision=48891
2010-09-25 19:53:43 +00:00
Matthias Kupfer cfb984e8bb one more fix (on request of Pierre S.)
svn path=/trunk/; revision=48888
2010-09-25 19:24:03 +00:00
Matthias Kupfer 2a1e1c7eff add missing close for handle
svn path=/trunk/; revision=48886
2010-09-25 19:07:37 +00:00
Jérôme Gardou 6d6fd14277 [SOLITAIRE]
- do not include already included file in rc files

svn path=/trunk/; revision=48884
2010-09-25 18:44:54 +00:00
Matthias Kupfer 0b903df4a7 fix GeoID bug (forgotten \0)
svn path=/trunk/; revision=48883
2010-09-25 18:24:57 +00:00
Giannis Adamopoulos 28b33bcfe7 [win32k]
- Cleanup UserSetCursorPos
- UserSetCursorPos: set the new position after sending WM_MOUSEMOVE message
now we pass all tests for SetCursorPos

svn path=/trunk/; revision=48879
2010-09-25 16:59:53 +00:00
Amine Khaldi f6e6759404 [PSDK]
- Add CDROM_TOC_SESSION_DATA structure.
[DDK]
- Add missing min and max macros.

svn path=/trunk/; revision=48878
2010-09-25 15:51:42 +00:00
Amine Khaldi fd0b03ddfd [PSDK]
- Add missing ntddmmc.h definitions.

svn path=/trunk/; revision=48877
2010-09-25 15:37:43 +00:00
Amine Khaldi 5360c03d98 [PSDK]
- Add some missing IOCTL_* definitions.

svn path=/trunk/; revision=48874
2010-09-25 14:45:03 +00:00
Amine Khaldi 610744f805 [DDK]
- Fix a typo and introduce some minor formatting changes.

svn path=/trunk/; revision=48868
2010-09-25 09:39:08 +00:00
Eric Kohl 6df63531e0 Fix build failure from r48863.
svn path=/trunk/; revision=48867
2010-09-25 07:53:07 +00:00
Eric Kohl 8d574b3e5a [HAL]
Implement HalStopProfileInterrupt and add required RTC register and flag definitions.

svn path=/trunk/; revision=48866
2010-09-25 07:22:40 +00:00
Sir Richard d59da19b08 [PSDK/DDK]: Last couple of fixes to headers. Classpnp can compile (and link) now.
svn path=/trunk/; revision=48865
2010-09-25 05:46:31 +00:00
Sir Richard c0e90cf2dd [PSDK/DDK]: Add more missing definitions. Fix classpnp.h.
svn path=/trunk/; revision=48864
2010-09-25 05:15:47 +00:00
Amine Khaldi 7c9e442a28 [PSDK]
- Add some missing structures in ioevent.h
[DDK]
- Add some more missing definitions.

svn path=/trunk/; revision=48863
2010-09-25 01:12:17 +00:00
Amine Khaldi d7d6e5e9c3 [DDK]
- classpnp.h: Add FUNCTIONAL_DEVICE_EXTENSION, SET_FLAG, CLEAR_FLAG and TEST_FLAG

svn path=/trunk/; revision=48862
2010-09-25 00:51:30 +00:00
Amine Khaldi d732208205 [DDK]
- Add missing classpnp.h

svn path=/trunk/; revision=48861
2010-09-24 23:42:30 +00:00
Sir Richard 0c7d1b1c8f [NTDLL]: Use LOCK instead of lock for SList assembly functions, this is a conditional such that on UP, "lock" instruction won't be generated.
[NTDLL]: Apply the special begin/fault/resume lablels to the user-mode SList functions. Access faults can happen there due to a bug in the Windows algorithm, and Mm will need to handle that.
[NTOS]: Lookup the special labels from above when initializing the System DLL. Only lookup INT2E vs SYSENTER on x86, other architectures don't need a stub.
[NTOS]: Bitmap resources start at index 1, not 0. Also make sure we don't go past the maximum IDB_ resource index for no reason, and check the size of the resource instead of assuming it's going to be one page.
[NMIDEBUG]: Fix and cleanup some code, and enable NMI support on the boot/install CD as well.

svn path=/trunk/; revision=48860
2010-09-24 17:02:13 +00:00
Michael Martin 2c5e05984a [ntoskrnl/ps]
- Revert r48857. The Process object is dereferenced when the Thread object is destroyed, so dont dereference it here.

svn path=/trunk/; revision=48859
2010-09-24 15:27:24 +00:00
Michael Martin 0059b61f9c [ntoskrnl/ps]
- Remove mistakenly committed ASSERTs that were used during my tests.

svn path=/trunk/; revision=48858
2010-09-24 10:23:01 +00:00
Michael Martin b83eb0a472 [ntoskrnl/ps]
- PspCreateThread: If thread creation fails, dereference the Process object also to account for the reference taken at the beginning of the function.

svn path=/trunk/; revision=48857
2010-09-24 10:07:54 +00:00
Daniel Reimer 03a0d1dc88 Big rapps Update
svn path=/trunk/; revision=48855
2010-09-23 21:33:49 +00:00
Timo Kreuzer ba0bf5862d [HAL]
Fix amd64 build

svn path=/trunk/; revision=48854
2010-09-23 20:22:12 +00:00
James Tabor 81730f239d [Win32k]
- Coding for PrintWindow support for bug 5609. This does not fix the export, which should be a direct call to win32k.

svn path=/trunk/; revision=48853
2010-09-23 17:51:10 +00:00
evb 29f98a6645 - Fix PciFindParentPciFdoExtension bug found by sir_richard "Early break would leave the lock held"
- Fix PciGetHackFlags for setup found by sir_richard "Setup currently doesn't have a correct registry"
- Fix DriverEntry for setup like PciGetHackFlags
- Fix DriverEntry PciOpenKey check found by sir_richard "PciOpenKey returns a BOOLEAN, not an NTSTATUS"
- Stop call PciGetAcpiTable found by sir_richard "PciGetAcpiTable is really broken, can lead to infinite loops, and also corrupts memory. We need to fix stefan's bugs"
- Implement not root FDO code in PciScanBus and support PCI_HACK_ONE_CHILD
- Implement multiple FDO exist code in PciAddDevice so PCI Bridge support now
- Implement PciAreBusNumbersConfigured for PCI Bridge support
- Hack FDO Start Device by sir_richard "The root FDO does send boot resources if PCIX is installed properly, this code will be needed"
- Do PCI_BUS_DRIVER_INTERNAL bugcheck by sir_richard "I have hacked KeBugCheckEx to ignore this for now, until PnP is fixed"
- Implement not root FDO code in PciInitializeArbiters
- Implement PciCacheLegacyDeviceRouting, PciFindPdoByLocation used by PciAssignSlotResources
- Make PciTranslateBusAddress do the stub work
- PciAssignSlotResources disabled because ReactOS not support IoAssignResources
- Implement PPBridge_ChangeResourceSettings
PCIX driver nearly working now.

svn path=/trunk/; revision=48851
2010-09-23 13:24:41 +00:00
Johannes Anderwald 10eb63f2df [KS]
- Simplify KsTopologyPropertyHandler by using KspReadMediaCategory helper
- Return correct status code in case of an overflow

svn path=/trunk/; revision=48850
2010-09-23 11:36:00 +00:00
Johannes Anderwald cf358ed153 [I8042PRT]
- Fix potential buffer overflow

svn path=/trunk/; revision=48849
2010-09-23 11:32:34 +00:00
Amine Khaldi 9b07516436 - Bugs 5536, 5614, 5604, 5617 and 5540: Apply translation patches provided by Mario Kacmar, Marcelo Zamperetti, Igor Paliychuk, Paolo Devoti and seven_ro.
svn path=/trunk/; revision=48847
2010-09-22 19:29:20 +00:00
Sir Richard 409884a7ce [FREELDR]: Fix the last remaining build issue. Libgcc needs to be linked to provide umovsi/udivsi, etc (same fix as for setupldr).
svn path=/trunk/; revision=48846
2010-09-21 17:50:01 +00:00
Amine Khaldi d09d10d12d [KERNEL32]
- Sylvain Petreolle: Fix debug channels for release builds.

svn path=/trunk/; revision=48845
2010-09-21 17:14:22 +00:00
Sir Richard b60395bc25 [HAL]: Partly implement HalpAdjustPCIResourceList required for legacy HAL. No actual adjustment is done yet, since the Range package is not implemented.
[HAL]: Implement most of HalpGetISAFixedPCIIrq, other than the legacy PCI IRQ Routing Miniport callbacks, which aren't yet implemented by ReactOS.
The Windows PCI Bus Driver seems to work now.

svn path=/trunk/; revision=48844
2010-09-21 17:07:40 +00:00
Aleksey Bragin 7e91f6cbe7 - Update 3rd Party Files.txt To Current 3rd Party Releases.
See issue #5603 for more details.

svn path=/trunk/; revision=48843
2010-09-21 08:30:56 +00:00
Sir Richard 88e1640ef7 Patches to allow Windows PCI Bus Driver to start working somewhat (need to implement HalAdjustResourceList for PCI to make it go further):
[BOOTDATA]: Windows Bus Drivers/HAL/Kernel require Arbiter data in the registry placed by the installer, otherwise they will not load. Add this Arbiter data.
[NTOS]: Add support for KeyValueFullInformationAlign64, used by some Windows drivers (as a bonus, support Win64). PartialInformationAlign64 is a different beast -- warn when a driver attempts to use it, instead of silent failure.
[NTOS]: Export VfFailSystemBIOS and stub it.
[NTOS]: Warn when a driver fails to load due to a missing dependency and print the name and/or missing module, instead of silently failing.
[NTOS]: Due to a bug in the ReactOS PnP manager, Windows PCI Driver hits an internal pseudo-assert. Hack KeBugCheckEx to ignore this pseudo-assert and continue executing normally.

svn path=/trunk/; revision=48839
2010-09-21 05:34:05 +00:00
Cameron Gutman 12d05b7eb8 [TCPIP]
- Process the timer event directly from the DPC instead of queuing a work item then raising to DISPATCH_LEVEL later when acquiring a spin lock
- Optimize the spin lock operations in NBTimeout and IPDatagramReassemblyTimeout for being called at DISPATCH_LEVEL

svn path=/trunk/; revision=48833
2010-09-20 19:08:40 +00:00