Commit graph

50480 commits

Author SHA1 Message Date
Alex Ionescu c61e296b73 [NTOSKRNL]: Don't assert if there's no VAD found in NtFreeVirtualMemory... perhaps a wrong address was used on purpose (such as during a Winetest). Simply do what ROS does when a MAREA is not found and return failure. However if a VAD *was* found, keep all the other ASSERTs...
svn path=/trunk/; revision=55886
2012-02-27 17:17:31 +00:00
Sir Richard 7b2b759953 [NTOS]: Continued preparations for VAD-based Virtual Memory. ASSERT in NtAllocateVirtualMemory any functionality that will not be supported by the VAD-based system (and is not really supported right now either). Make NtFreeVirtualMemory ASSERT that a correct VAD has been found when freeing memory -- which we always expect at this point. Also ASSERT that the VAD has a valid range and flags.
[NTOS]: Do a more stringent check to refuse COPY_ON_WRITE flag sent through NtAllocateVirtualMemory.
[NTOS]: For VM-based Memory Areas, acquire and then release the process working set lock while inserting the VAD, to simulate what the VAD-based Virtual Memory behavior will look like.
[NTOS]: Disable paging for VM-based Memory Areas since this will not be supported with VADs.
[KERNEL32]: CopyLoop was requesting 2 zero bits when calling NtAllocateVirtualMemory. Not sure if this was really the intent or not, but both the new as well as the old NtAllocateVirtualMemory do not support this (the new one will ASSERT). Since this functionality never worked, request 0 bits instead to avoid hitting the ASSERT.
Any problems with what the VAD system will introduce should be revealed by now. From this build until the one which will have the VAD-based system in place, no further VM-related issues should crop up.

svn path=/trunk/; revision=55885
2012-02-27 17:10:44 +00:00
Sylvain Petreolle 806732f98e [USETUP]
Fix installation directories set into unattend.inf,
they were ignored and installed always into \ReactOS.

svn path=/trunk/; revision=55884
2012-02-27 16:37:48 +00:00
Sir Richard aaa881ed5a [NTOS]: Preparations for the VAD-based Virtual Memory system begin. Disable changing protection on Virtual Memory pages, and make all pages PAGE_EXECUTE_READWRITE for now. In theory, this should not cause any real problems, and sets the stage for the initial functionality regressions that the VAD-based system will introduce. I will eventually plan on fixing them.
svn path=/trunk/; revision=55883
2012-02-27 16:12:11 +00:00
Alex Ionescu 2c7855ed9d [NTOSKRNL]: Drop the reference on the PDE for kernel stack pages being deleted, now that zekflop has made all PDEs ARM3-owned.
svn path=/trunk/; revision=55882
2012-02-27 16:10:30 +00:00
Alex Ionescu 270acce7b4 [NTOSKRNL]: This should not fix anything.
svn path=/trunk/; revision=55881
2012-02-27 15:50:25 +00:00
Alex Ionescu ef59218343 [CMLIB]: Great job -- crashing trunk on a pool tag just so people can be forced to know what it is. Change the registry pool tag from "th" (wtf?) to "CM25" which is a bit closer to Windows. In reality all of TAG_CM should be broken out in many more pieces. Fixes boot breakpoint.
svn path=/trunk/; revision=55880
2012-02-27 15:28:06 +00:00
Sir Richard 5009959437 [NTOS]: Handle memory allocation failures correctly, supporting all the required debug and caller flags (such as RAISE_ON_FAILURE). We no longer simply just return "NULL" in failure cases.
[NTOS]: Implement counters for paged and nonpaged pool. First-stage setup now shows Kernel Pool values again, as does Task Manager. Fixes the regression introduced when pool/non-paged pool was no longer managed through "memory consumer" API.
[NTOS]: Add more debugging paths and flags that were sent over from the "Aleksey Pool Patch". Most of them are not implemented.
[NTOS]: Fix a missing case when a pool header check was not being done.
[NTOS]: Check IRQL levels during pool allocation and free.
With tags and the counters, pool leaks should be massively more debuggable now.

svn path=/trunk/; revision=55879
2012-02-27 08:21:15 +00:00
Dmitry Gorbachev 567e9e3a71 [NDK]
- Fix declaration of HalPrivateDispatchTable for FreeLDR.

[FREELDR]
- Rename BiosMemoryMap to XboxMemoryMap. Another BiosMemoryMap is in meminit.c

[NTOSKRNL][WIN32K][FTP]
- Fix some variables.

svn path=/trunk/; revision=55878
2012-02-26 19:04:00 +00:00
Kamil Hornicek 260ccab1cd [BOOTDATA]
Include unattend.inf by default (as it was almost done in r28835). No need to have it "disabled" twice.

svn path=/trunk/; revision=55876
2012-02-26 15:05:59 +00:00
Cameron Gutman 08262c3c70 [USBOHCI][USBUHCI][USBEHCI]
- Don't overwrite the status from ClearPortFeature with STATUS_SUCCESS
- Partially fixes full speed port handoff

svn path=/trunk/; revision=55875
2012-02-26 06:33:21 +00:00
Sir Richard b6c8b61ceb [NTOS]: Implement pool tagging for large allocations too. Once again, no expansion is implemented.
svn path=/trunk/; revision=55874
2012-02-26 05:53:53 +00:00
Amine Khaldi 512c21b125 [CMAKE]
* Introduce a way to compile GCC builds with PDB style debug info (isolated into .dbg files). This will reduce the memory footprint considerably, among other benefits.

svn path=/trunk/; revision=55873
2012-02-25 23:50:38 +00:00
Sir Richard ec4df1d177 [NTOS]: Implement pool tag tracking and pool tag querying. Big Pool tags are not yet supported, but will be shortly. Expansion is not yet supported.
svn path=/trunk/; revision=55872
2012-02-25 23:14:37 +00:00
Cameron Gutman fb942b740a [NTOSKRNL]
- Set the SYNCHRONIZE flag in desired access when opening a registry hive for synchronous I/O

svn path=/trunk/; revision=55871
2012-02-25 22:27:27 +00:00
Amine Khaldi 04e46d06af [CMAKE]
* Get GCC version and add some compiler flags conditionally based on it. Dedicated to Dmitry.

svn path=/trunk/; revision=55870
2012-02-25 22:01:20 +00:00
Amine Khaldi 183b2632a2 * Delete unused startup code.
svn path=/trunk/; revision=55869
2012-02-25 21:48:43 +00:00
Dmitry Gorbachev 1550726927 [FREELDR][NTOSKRNL][TOOLS]
- Delete unused files.
- Use extension LDS instead of LNK (Windows shortcut file) for LD linker scripts.

svn path=/trunk/; revision=55868
2012-02-25 21:45:56 +00:00
Cameron Gutman aeac841aa8 [USBSTOR]
- Fix corruption of SCSI read format capacity by writing the LUN to the wrong location

svn path=/trunk/; revision=55867
2012-02-25 21:18:17 +00:00
Kamil Hornicek 3db7e1b78c Fix build?
svn path=/trunk/; revision=55866
2012-02-25 21:09:28 +00:00
Sir Richard ca1f0374ab [NTOS]: Implementation of the "Generic DPC" functionality from Windows NT 5.2, which is a forced-synchronization all-CPU DPC callback mechanism. Implemented, and exported all APIs requireted, and added to NDK. NOTE: This implementation only works for Single Processor systems (NT_UP) since this is all that ReactOS currently works on.
This is needed for poolmon/querying pool tags.

svn path=/trunk/; revision=55865
2012-02-25 20:40:06 +00:00
Alex Ionescu 2a87bcea2b [NDK]: Add missing type to NDK.
svn path=/trunk/; revision=55864
2012-02-25 20:38:20 +00:00
Alex Ionescu b90bb9d570 [CSRSRV]: Quiet, you!
svn path=/trunk/; revision=55863
2012-02-25 20:31:28 +00:00
Giannis Adamopoulos 23c1c259f0 [win32k]
- move wallpaper info from WINSTATION_OBJECT to SPIVALUES. Also remove some unused fields from WINSTATION_OBJECT

svn path=/trunk/; revision=55862
2012-02-25 20:06:15 +00:00
Pierre Schweitzer f1838c9108 [USER32]
Correct user32 japanese translation (and fix build as well)

svn path=/trunk/; revision=55861
2012-02-25 19:28:00 +00:00
Amine Khaldi f17583a648 [SHELL32]
* Misses these.

svn path=/trunk/; revision=55860
2012-02-25 19:02:49 +00:00
Amine Khaldi acf789af2a [SHELL32]
* Prefix the local version.h and version.rc with shell32_.
* Include the rgs resource files in a portable way.

svn path=/trunk/; revision=55859
2012-02-25 18:52:16 +00:00
Sir Richard a62fbc4a47 [NTOS]: Compute the size of, and allocate, the Pool Tracker Table and the Big Page Tracker Table, which are the core data structures that make pool tagging functionality work.
svn path=/trunk/; revision=55858
2012-02-25 18:51:21 +00:00
Giannis Adamopoulos bde6f12e52 [win32k]
- null terminate DesktopObject->pDeskInfo->szDesktopName and WindowStationObject->Name
- null terminate the buffer when NtUserGetObjectInformation is called with UOI_NAME parameter
- should fix a random failure in user32:desktop tests

svn path=/trunk/; revision=55857
2012-02-25 18:26:05 +00:00
Amine Khaldi 7d3f5052d0 * Addendum to r55855.
svn path=/trunk/; revision=55856
2012-02-25 17:23:58 +00:00
Amine Khaldi 818418643e * Rbuild, our build system, has served us well so far, but its usefulness has since been vastly overshadowed by its awfulness. It's time to fix it.
svn path=/trunk/; revision=55855
2012-02-25 17:23:37 +00:00
Eric Kohl 0fa8a3b725 [RTL]
Formatting, no code changes.

svn path=/trunk/; revision=55854
2012-02-25 15:20:32 +00:00
Cameron Gutman 11c95e90a7 [USBEHCI]
- Create a macro for properly checking for low speed devices
- Check again for a low speed device after the EHCI reset completes
- Don't ignore status changes on ports that we have released (revert part of r55851)

svn path=/trunk/; revision=55853
2012-02-25 06:23:12 +00:00
Cameron Gutman 266e31d825 [USBHUB]
- Fix reset event handling in cases where reset does not end up in a new device created
- My MacBook Pro completes USB initialization free of hangs now (usbstor disabled)

svn path=/trunk/; revision=55852
2012-02-25 05:46:19 +00:00
Cameron Gutman c14c8d7ef4 [USBHUB]
- Handle errors returned from the HCD correctly
[USBEHCI]
- Discard any changes on ports that were given to the companion controller

svn path=/trunk/; revision=55851
2012-02-25 04:45:30 +00:00
Cameron Gutman 7991e67594 [USBEHCI]
- More EHCI reset fixes and general code cleanup

svn path=/trunk/; revision=55850
2012-02-25 04:27:39 +00:00
Johannes Anderwald 7d6c0c114c [USBEHCI]
- Fix reset port sequence #2
- Clear unwanted bits
- Fix wait time as in spec
- Wait max 500ms for the reset bit to clear, otherwise restart the reset sequence
- Check if work item is currently queued

svn path=/trunk/; revision=55849
2012-02-25 03:28:17 +00:00
Cameron Gutman b4d2570c4b [USBOHCI]
- Implement per-port power control

svn path=/trunk/; revision=55848
2012-02-25 02:20:15 +00:00
Johannes Anderwald 494fa29ffa [USBCCGP]
- Formatting, no code changes

svn path=/trunk/; revision=55847
2012-02-25 00:35:40 +00:00
Cameron Gutman e188a743cb [INF]
- Fix the Live CD regression (RBuild only - The irony is not lost on me) caused by r55555
- There is another regression that still prevents booting though 

svn path=/trunk/; revision=55846
2012-02-25 00:34:48 +00:00
Cameron Gutman 0e05873866 [USBOHCI]
- Fix a broken assertion and print out the alignment mask and HCCA pointer

svn path=/trunk/; revision=55845
2012-02-24 23:14:19 +00:00
Cameron Gutman 17b865ebc2 [USBOHCI]
- Fix various initialization bugs

svn path=/trunk/; revision=55844
2012-02-24 23:05:22 +00:00
Johannes Anderwald d9f4f1b411 [USBUHCI]
- Invert data toggle

svn path=/trunk/; revision=55843
2012-02-24 17:58:55 +00:00
Giannis Adamopoulos 419f51fd4c [win32k]
-remove unrelated and unused information from the WINSTATION_OBJECT

svn path=/trunk/; revision=55842
2012-02-24 15:32:13 +00:00
Giannis Adamopoulos 5bd20ac181 [win32k]
- Properly create the WindowStations directory in NtUserInitialize. Now we take into account the fact that if we are not in session 0, it should be created in \Sessions direcory
- Clean up IntParseDesktopPath and make it use the correct WindowStations 
- Add some comments and cleanup
- Remove the unused IntGetFullWindowStationName, IntGetWindowStationObject and IntGetWinStaObj

svn path=/trunk/; revision=55841
2012-02-24 15:22:11 +00:00
Stefan Ginsberg f1d41e1808 [NTOSKRNL]
- Remove nasty hack to make Windows PCI driver load. This may not be required after the fixes that were committed after this hack. If it is still necessary then please fix whatever issue makes the PCI driver crash instead of relying on a return from bugcheck call to work...

[DDK]
- Mark KeBugCheckEx as noreturn again. Should fix Prefast issues where it thought execution could return from the call and would warn about false issues.

svn path=/trunk/; revision=55840
2012-02-24 13:51:52 +00:00
Art Yerkes b10383d1ff [NEWCC]
Integrate september's speed improvements, which now work.
Remove the flush hack when unpinning cache segments.

svn path=/trunk/; revision=55839
2012-02-24 11:33:23 +00:00
Daniel Reimer e81ed04aa0 Update for rapps
svn path=/trunk/; revision=55838
2012-02-24 10:33:06 +00:00
Art Yerkes 3e19b0bab3 [NEWCC]
Update used page table entry counts when mapping pages in cache sections.

svn path=/trunk/; revision=55837
2012-02-24 10:05:06 +00:00
Cameron Gutman 34136e69cf [USBOHCI]
- Try to fix some real hardware OHCI initialization hangs

svn path=/trunk/; revision=55836
2012-02-24 07:26:43 +00:00