Commit graph

23073 commits

Author SHA1 Message Date
Alex Ionescu b649dd5293 - Export ExiTryToAcquireFastMutex from ntoskrnl, I had forgotten to export this ages ago when adding the other Exi*FastMutex* stuff.
- Remove fmutex.c and fastmutex functions from HAL. The whole point of having the Exi ones in the kernel was that HAL calls them through forward exports now (so any old driver can still link with HAL). Now we don't duplicate the implementation anymore.
- Remove DriverEntry, it's useless. Also move HalReportResourceUsage to halinit because it's a call-once-on-boot function much akin a HalInitPhase2 function, so delete resource.c
- Keep track of interrupt affinity and active processor mask each time a new CPU initializes.

svn path=/trunk/; revision=24762
2006-11-15 00:08:51 +00:00
Ged Murphy 6e572dc57a - split the main header file into seperate files as it was becoming annoying to maintain
- split the open / new file code
- Add a dialog for adjusting the brightness. The code for adjusting the brightness will follow soon, as will many other image adjusting dialogs.
- change the menus to show the image adjustment tools which will be present
- remove the horrible image property dialog code. I'll rewrite it at a later stage
- Set Arial as the default font
- fix a few API's to be 64-bit compatable
- reduce msvc warnings

svn path=/trunk/; revision=24761
2006-11-14 23:15:02 +00:00
Alex Ionescu 3047ba1df7 - Build fixes.
svn path=/trunk/; revision=24760
2006-11-14 22:42:59 +00:00
Alex Ionescu 7b4b9aec8f - Delete HAL cruft files.
- Implement (or cleanup + mark as implemented, these are 4 line functions) HalDisplayString, HalAcquireDisplayOwnership, HalSetDisplayParameters, HalQueryDisplayParameters, HalInitailizeProcessor, HalAllProcessorsStarted, HalStartNextProcessor, HalProcessorIdle, HalRequestIpi.
- Fix some prototype definitions and cleanup some formatting.

svn path=/trunk/; revision=24759
2006-11-14 20:59:48 +00:00
Hervé Poussineau f651c1f8b6 Don't force screensaver file names to have at least 4 chars
Terminate the string just after the last read character.

svn path=/trunk/; revision=24758
2006-11-14 18:35:29 +00:00
Alex Ionescu 5a7f46becc - Implement HalSystemVectorDispatchEntry, KeFlushWriteBuffer, HalFlushCommonBuffer, HalAllocateCrashDumpRegisters.
- Add lots of missing PCI definitions to the DDK, and to the internal file pci.h
- Make HAL compilable with the WDK thanks to a nice hack/trick I found.

svn path=/trunk/; revision=24757
2006-11-14 18:17:33 +00:00
Johannes Anderwald 66920d049e - print debug logs on stdout
- sysreg is now ready for deployment

svn path=/trunk/; revision=24756
2006-11-14 17:10:26 +00:00
Johannes Anderwald a6ae267b13 - dump reached checkpoints when an BSOD is detected
- dump rest of log file when a BSOD is detected
- write debugging data to ROSBOOT_DEBUG_FILE when reading from a pipe 
- update configuration files
- silence debug print in sym_file.cpp

svn path=/trunk/; revision=24755
2006-11-14 16:58:42 +00:00
Johannes Anderwald b768b7fc2f - update testboot script
svn path=/trunk/; revision=24754
2006-11-14 16:51:32 +00:00
Magnus Olsen bd41c3c6dc fixing Usurp bug repot in irc channel, if a screensaver does not exists it try execute a no exiting screensaver it make reactos freze on real hw and in qemu, acoring Usurp. With this change it does not longer freze and does not either try execute a no existing screensaver. Thx Usurp for testing it.
svn path=/trunk/; revision=24753
2006-11-14 16:50:47 +00:00
Johannes Anderwald 4db3b4d934 - ignore failure if dir already exists
svn path=/trunk/; revision=24752
2006-11-14 16:26:15 +00:00
Johannes Anderwald dd14ad52ea - update svn properties
- improve error checking
- return -2 when the test fails
- add a few test configs (required for sysregtest target)

svn path=/trunk/; revision=24751
2006-11-14 12:58:52 +00:00
Johannes Anderwald 8269b5eebd - implement target sysregtest which compiles all required modules and generates an unattended bootcdregtest which is feed to sysregtest and executes the required tests
- fix regtest target

svn path=/trunk/; revision=24750
2006-11-14 12:47:42 +00:00
The Wine Synchronizer 2822449d9a Autosyncing with Wine HEAD
svn path=/trunk/; revision=24747
2006-11-13 15:20:30 +00:00
The Wine Synchronizer d953e5a54b Autosyncing with Wine HEAD
svn path=/trunk/; revision=24746
2006-11-13 14:51:39 +00:00
Aleksey Bragin 23c4a96e42 Dmitry G. Gorbachev: After kbd controller init, the System Flag should be set to 1.
Fixes rebooting on real hardware (famous "Flushing cache" hang).
See issue #1842 for more details.

svn path=/trunk/; revision=24744
2006-11-13 12:40:02 +00:00
Aleksey Bragin e884800c6c Delete unneeded files
svn path=/trunk/; revision=24743
2006-11-13 10:14:08 +00:00
Alex Ionescu abe724dba9 - Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.
svn path=/trunk/; revision=24742
2006-11-13 04:34:57 +00:00
Alex Ionescu 30c16d9652 - Add some more descriptive comments to HalpReboot (and rename it from HalReboot) since some of the operations lacked comments.
- Stall the CPU after each I/O command to simulate I/O delay.
- Flush write buffers before rebooting.
- Refactor sending the reset command since it's not always a matter of using the keyboard port.
- HalReturnToFirmware does a HalpReboot no matter what parameter is sent.

svn path=/trunk/; revision=24741
2006-11-13 04:33:45 +00:00
Alex Ionescu 0e8c70ba22 - Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines of code become 1, yay!
svn path=/trunk/; revision=24740
2006-11-13 04:31:39 +00:00
Alex Ionescu 6652f94900 - Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.
svn path=/trunk/; revision=24739
2006-11-13 01:47:10 +00:00
Alex Ionescu afb3f6c5c3 - Fix build error.
svn path=/trunk/; revision=24738
2006-11-12 23:32:11 +00:00
Alex Ionescu 4d578c637e - FSTUB Patch for Mount Manager Support, Part 1:
- Create new /fstub directory in the kernel tree and move iomgr's xhal functions there.
  - Delete disk.c entirely from iomgr.c and spread it across fstub.
  - Entirely reimplement from scratch IoWritePartitionTable, IoReadPartitionTable, IoSetPartitionInformation, HalExamineMbr. Lots of bug fixes in terms of wrong assumptions and compatibility with weird partition tables.
  - Fix prototype of IoAssignDriveLetters, but for now, keep the old code (xHalIoAssignDriveLetters) because this has not been rewritten yet.
  - Move some functions to fstubex.c for future implementation, and some to volume.c. Move the HAL table to halstub.c
  - Make use of the hal.h file commited earlier.
  - Move IoAssignDriveLetters from halfuncs to iofuncs.h
  - Implement missing functions in HAL (IoRead/Write/Set PartitionInfo) and make them call into the ntoskrnl exports.

svn path=/trunk/; revision=24737
2006-11-12 22:51:06 +00:00
Alex Ionescu 03d84cb508 - Move out SEH-support routines from ntoskrnl/rtl to lib/rtl
- Re-implement the routines in intel syntax and also cleanup the formatting.
- Also re-implement the way the routines work, by following Matt Pietrek's c code that he wrote in one of his articles after looking at the disassembly.
- Also used a patch for mingw found on Google which contained some implementations in C.
- New changes mostly add protection during unwinding, faster speed, and add implementations for __except_handler2 and _abnormal_termination which were not previously present.

svn path=/trunk/; revision=24736
2006-11-12 22:43:43 +00:00
Alex Ionescu b66b8bdcea - Implement IoSetCompletionRoutineEx, which is a safe way to set completion routines that almost all newer drivers will be using (XP+).
svn path=/trunk/; revision=24735
2006-11-12 22:39:09 +00:00
Alex Ionescu 1c3d0f91a1 - Argh, another forgotten file. Too many local changes :(
svn path=/trunk/; revision=24734
2006-11-12 22:37:52 +00:00
Alex Ionescu 9bb38bc012 - Apologies, forgot these two files for the Dbgk patch.
- Adds PsNtDllPathName constant string since we use it in two place (PsLocateSystemDll and DbgkpCreateThread).
- Adds PsImageNotifyEnabled boolean flag and sets it to true (although it should only be when a routine is installed, but ROS doesn't do this yet.

svn path=/trunk/; revision=24733
2006-11-12 22:36:21 +00:00
Alex Ionescu 29a0679654 - Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
- Not used by anything, these are for 3rd-party drivers and Driver Verifier.

svn path=/trunk/; revision=24732
2006-11-12 22:34:28 +00:00
Alex Ionescu 00418f00bf - Fix flags in DbgkpSectionToFileHandle
- Implement DbgkpCreateThread.
- Implement DbgkpSetProcessDebugObject.

svn path=/trunk/; revision=24731
2006-11-12 22:33:04 +00:00
Alex Ionescu 5415ad9497 - Cleanup fastio.c
- Implement FsRtlMdlReadDev (this function is not called, no risk of regressions).
- Move FsRtlAcquireFileExclusive and FsRtlReleaseFileExclusive from filelock.c to fastio.c.
- Bugfix these functions to actually call FsRtlEnter/ExitFileSystem.
- Huge cleanusp of filelock.c, but no code changes, except the usage of some simpler macros provided by NTIFS.H (with equivalent code).

svn path=/trunk/; revision=24730
2006-11-12 22:31:45 +00:00
Alex Ionescu 49c35d197f - Add CcFastMdlReadWait extern to ntifs.h
- Add FsRtlCompleteRequest macro to ntifs.h
- Add LDRP_DRIVER_VERIFYING flag to ldrtypes.h
- Add MM_DRIVER_VERIFIER_DATA and DRIVER_SPECIFIED_DRIVER_THUNKS to mmtypes.h
- Add MAXLONGLONG to ntdef.h.

svn path=/trunk/; revision=24729
2006-11-12 22:27:10 +00:00
Ged Murphy c77ef10192 - fix a bug freeing memory for floating windows.
- ShowHideWindow needs no more than a Window handle

svn path=/trunk/; revision=24728
2006-11-12 20:13:39 +00:00
Johannes Anderwald 48e98be889 - add dbgprint tool as optional tool
svn path=/trunk/; revision=24727
2006-11-12 13:37:02 +00:00
Art Yerkes 4f1dd7e361 Broaden a lock to prevent a race for completion of the receive IRP. Fixes
some crashes while receiving from a fast remote host under load.

svn path=/trunk/; revision=24726
2006-11-12 10:01:56 +00:00
Eric Kohl 250bddf673 Fix a typo in the library name. kbdv.dll -> kbddv.dll
svn path=/trunk/; revision=24725
2006-11-11 21:29:10 +00:00
Johannes Anderwald dff9cbd270 - fix typo, identation, grammar in multiple german resource files
- patch by maku
See issue #1847 for more details.

svn path=/trunk/; revision=24724
2006-11-11 21:13:38 +00:00
Johannes Anderwald b32dec065a - fix text box alignment
- spotted by Coviti
- patch by Coviti

See issue #1860 for more details.

svn path=/trunk/; revision=24723
2006-11-11 20:53:52 +00:00
Eric Kohl ff30ee9de7 KbdLayerDescriptor is a STDCALL function.
svn path=/trunk/; revision=24722
2006-11-11 20:33:06 +00:00
Johannes Anderwald 89655cd6a2 - use dbgprint tool to output debug messages
svn path=/trunk/; revision=24721
2006-11-11 16:41:52 +00:00
Johannes Anderwald ee8ad2c335 - add a primitive tool to output text via DbgPrint
svn path=/trunk/; revision=24720
2006-11-11 16:07:35 +00:00
Aleksey Bragin d112ca4391 Make SystemConfigurationDataQueryRoutine() store information about as many drives as needed (previous version of the code did the same).
Fixes "no partitions list" bug in usetup introduced in 24718.

svn path=/trunk/; revision=24719
2006-11-11 13:17:58 +00:00
Hervé Poussineau eb77bd4e85 - Set correct flags when calling Nt* functions during file copy
- Fix reading of disks parameter in registry
- Keep FS name in unicode instead of char
- Don't hardcode more than once ReactOS directory on bootcd ('\reactos')
- Get screen dimensions only once (at startup)
- General cleanup (warnings...)
- Do some actions only if __REACTOS__ if defined. (I'm currently using them to debug usetup)

svn path=/trunk/; revision=24718
2006-11-10 21:00:24 +00:00
Hervé Poussineau 7885d994ff Move some files to subdirectories. No code change.
svn path=/trunk/; revision=24717
2006-11-10 18:20:00 +00:00
Johannes Anderwald 59ec217f00 - add a sample bootchecking script (running after 3rd boot)
- to enable 
1. copy testboot.bat.sample to testboot.bat
2. uncomment GuiRunOnce section in unattend.inf
3. add "cmd.exe /C %SystemRoot%\bin\testboot.bat"

svn path=/trunk/; revision=24714
2006-11-10 13:03:30 +00:00
James Tabor 065806e5f1 Sync up PATH_Arc and PATH_Ellipse with Wine.
svn path=/trunk/; revision=24713
2006-11-10 12:50:34 +00:00
Johannes Anderwald 445e9e71b5 - add documentation for GuiRunOnce
svn path=/trunk/; revision=24712
2006-11-10 11:17:17 +00:00
Johannes Anderwald 037bd166bc - implement a GuiRunOnce section for unatttended setup
- with this we launch programs after 3rd boot (programs / scripts)
- another a little step for sysreg :)

svn path=/trunk/; revision=24711
2006-11-10 11:16:38 +00:00
Ged Murphy d22e48600b The one that got away...
...add file with the code for writing the font data

svn path=/trunk/; revision=24710
2006-11-09 20:45:52 +00:00
Ged Murphy f5fe947177 - add some font data to the combo boxes
svn path=/trunk/; revision=24709
2006-11-09 20:28:29 +00:00
Ged Murphy f56d1e28ca don't force usage of warning.h as it breaks building on msvc unless the WDK is installed.
svn path=/trunk/; revision=24708
2006-11-09 18:47:05 +00:00