Aleksey Bragin [Sun, 19 Nov 2006 17:22:18 +0000 (17:22 +0000)]
- Add a null-check to the IopLoadServiceModule.
- Add a DPRINT1 saying about the possible memory-overwrite bug. This is a hack to get a bootable tree, but still have a note when The Bug happens (look for 'weird' in the debug log).
svn path=/trunk/; revision=24777
Magnus Olsen [Sun, 19 Nov 2006 17:01:23 +0000 (17:01 +0000)]
- Change movw $0x0000,%ax to xorw %ax,%ax (because of probable bug in binutils, which compiles the first instruction into something weird)
- Add segment registers save+restore in Int386() in FreeLdr (thanks to tamlin too)
svn path=/trunk/; revision=24776
Alex Ionescu [Fri, 17 Nov 2006 06:14:31 +0000 (06:14 +0000)]
- Add kdcom driver. It contains the exact same functions as in HAL/kdbg.c (not yet used).
- Fix halxbox compile.
svn path=/trunk/; revision=24775
Alex Ionescu [Fri, 17 Nov 2006 04:18:41 +0000 (04:18 +0000)]
- Fix some more MSVC problems.
- Get rid of HAL's own intrisics and use intrin_i.h and/or MSVC intrinsics from intrin.h
- If anyone knows how to make a .DEF file that is not only understood by both compilers, but also creates a proper import library, please let me know.
svn path=/trunk/; revision=24774
Alex Ionescu [Fri, 17 Nov 2006 02:44:37 +0000 (02:44 +0000)]
- MSVC VCPROJ Maker:
* Don't insert NDEBUG as a define, files define this manually already.
* Don't add _CRT flags, since the RTM WDK defines them properly.
* Force warning.h to be included just like the WDK does.
* Disable WPO and LTCG for now.
* Disable 64-bit warnings for now.
* Fix assembly custom steps. NASMW for .asm, and GAS for .S.
- Please remember that you NEED the WDK 6000 RTM installed to use MSVC for building ReactOS. Don't change global build settings just because you were too lazy to download it and think that because your Win32 app doesn't need it, it's ok to break other people's native/system/kernel/hal builds. Change it locally if you're lazy, but don't revert these changes again.
svn path=/trunk/; revision=24773
Hervé Poussineau [Thu, 16 Nov 2006 20:52:13 +0000 (20:52 +0000)]
Fix HAL compilation
svn path=/trunk/; revision=24772
Ged Murphy [Thu, 16 Nov 2006 18:49:58 +0000 (18:49 +0000)]
- Add test code for adjusting the brightness of an image. It's a bit of a hack at the moment, but adjusting the trackbar in the brightness dialog will alter the brightness of the small image.
- save pointer to the bitmap header and bitmap bits in the image struct.
svn path=/trunk/; revision=24771
Alex Ionescu [Thu, 16 Nov 2006 17:30:52 +0000 (17:30 +0000)]
- Reorganize HAL exports and export KeTRyToAcquireQueuedSpinlock and KeTryToAcquireQueuedSpinLockRaisetoSynch.
- Add stub for HalSetTimeIncrement.
- Cleanup CMOS-related routines (Get/Set environment value and get/set RTC). Fixup some prototypes as well. Inline HalpReadCmos/HalpWriteCmos instead of having a separate function.
- Fixup wrong protypes for various Queued Spinlock functions.
- Use __rdtsc intrinsic instead of Ke386RdTsc.
- Other MSVC compilation fixes.
svn path=/trunk/; revision=24770
Aleksey Bragin [Thu, 16 Nov 2006 17:26:31 +0000 (17:26 +0000)]
Use Uint32x32To64() function instead of ULONG * ULONG. Fixes partition length truncation.
See issue #1871 for more details.
svn path=/trunk/; revision=24769
Magnus Olsen [Thu, 16 Nov 2006 15:56:10 +0000 (15:56 +0000)]
remove two compiling warnings thx frik85 to notice it.
svn path=/trunk/; revision=24768
Alex Ionescu [Thu, 16 Nov 2006 07:09:37 +0000 (07:09 +0000)]
- Purposefully add 6 debug prints to RtlpGetRegistryHandle, which, while ndis.sys is initializing, should BSOD the system. I have seen this "RtlpGetRegistryHandle" BSOD randomly during boot (But always with the same stack trace), and a local HAL patch managed to cause it 100% of the time. I know that the problem had nothing to do with the HAL or registry paths, because it came up before too when I added debug prints to fstub. These 6 prints 100% reproduce the problem on my machine with GCC 3.4.5. It is my hope it will do the same for everyone. This is a nasty bug, either stack related or some critical structure is being damaged. I am breaking trunk because it's been here for a long time, but now I found a way to repro it so that we can work together to try finding it. In a way, trunk was always broken, but this patch should force a freeze. Please help.
svn path=/trunk/; revision=24767
Alex Ionescu [Thu, 16 Nov 2006 06:55:59 +0000 (06:55 +0000)]
- Remove internal HAL function from ntifs
- Make sure obfuncs.h includes obtypes.h if it's ever included separately.
- Add ARC_STATUS and ARC Error Codes.
svn path=/trunk/; revision=24766
Thomas Bluemel [Wed, 15 Nov 2006 20:24:55 +0000 (20:24 +0000)]
Fix some compilation errors
svn path=/trunk/; revision=24765
Aleksey Bragin [Wed, 15 Nov 2006 16:57:15 +0000 (16:57 +0000)]
Properly use the second param.
svn path=/trunk/; revision=24764
Aleksey Bragin [Wed, 15 Nov 2006 10:42:46 +0000 (10:42 +0000)]
Fix build by:
- Matching HAL MP HalStartNextProcessor() and commenting out a call to HaliStartApplicationProcessor() (because it needs ProcessorContext). Proper fix should be done.
- Removing HalReportResourceUsage from MP version, and marking what it did differently as FIXME in the generic version.
svn path=/trunk/; revision=24763
Alex Ionescu [Wed, 15 Nov 2006 00:08:51 +0000 (00:08 +0000)]
- 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
Ged Murphy [Tue, 14 Nov 2006 23:15:02 +0000 (23:15 +0000)]
- 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
Alex Ionescu [Tue, 14 Nov 2006 22:42:59 +0000 (22:42 +0000)]
- Build fixes.
svn path=/trunk/; revision=24760
Alex Ionescu [Tue, 14 Nov 2006 20:59:48 +0000 (20:59 +0000)]
- 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
Hervé Poussineau [Tue, 14 Nov 2006 18:35:29 +0000 (18:35 +0000)]
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
Alex Ionescu [Tue, 14 Nov 2006 18:17:33 +0000 (18:17 +0000)]
- 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
Johannes Anderwald [Tue, 14 Nov 2006 17:10:26 +0000 (17:10 +0000)]
- print debug logs on stdout
- sysreg is now ready for deployment
svn path=/trunk/; revision=24756
Johannes Anderwald [Tue, 14 Nov 2006 16:58:42 +0000 (16:58 +0000)]
- 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
Johannes Anderwald [Tue, 14 Nov 2006 16:51:32 +0000 (16:51 +0000)]
- update testboot script
svn path=/trunk/; revision=24754
Magnus Olsen [Tue, 14 Nov 2006 16:50:47 +0000 (16:50 +0000)]
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
Johannes Anderwald [Tue, 14 Nov 2006 16:26:15 +0000 (16:26 +0000)]
- ignore failure if dir already exists
svn path=/trunk/; revision=24752
Johannes Anderwald [Tue, 14 Nov 2006 12:58:52 +0000 (12:58 +0000)]
- 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
Johannes Anderwald [Tue, 14 Nov 2006 12:47:42 +0000 (12:47 +0000)]
- 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
The Wine Synchronizer [Mon, 13 Nov 2006 15:20:30 +0000 (15:20 +0000)]
Autosyncing with Wine HEAD
svn path=/trunk/; revision=24747
The Wine Synchronizer [Mon, 13 Nov 2006 14:51:39 +0000 (14:51 +0000)]
Autosyncing with Wine HEAD
svn path=/trunk/; revision=24746
Aleksey Bragin [Mon, 13 Nov 2006 12:40:02 +0000 (12:40 +0000)]
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
Aleksey Bragin [Mon, 13 Nov 2006 10:14:08 +0000 (10:14 +0000)]
Delete unneeded files
svn path=/trunk/; revision=24743
Alex Ionescu [Mon, 13 Nov 2006 04:34:57 +0000 (04:34 +0000)]
- Make HalMakeBeep a bit nicer by making the PUCHAR typedef part of the TIMER constants.
svn path=/trunk/; revision=24742
Alex Ionescu [Mon, 13 Nov 2006 04:33:45 +0000 (04:33 +0000)]
- 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
Alex Ionescu [Mon, 13 Nov 2006 04:31:39 +0000 (04:31 +0000)]
- Re-implement messy portio.c by using MSVC-compatible intrinsics instead. 20 lines of code become 1, yay!
svn path=/trunk/; revision=24740
Alex Ionescu [Mon, 13 Nov 2006 01:47:10 +0000 (01:47 +0000)]
- Fix a typo in DbgkCreateThread which caused a boot-time crash/regression.
svn path=/trunk/; revision=24739
Alex Ionescu [Sun, 12 Nov 2006 23:32:11 +0000 (23:32 +0000)]
- Fix build error.
svn path=/trunk/; revision=24738
Alex Ionescu [Sun, 12 Nov 2006 22:51:06 +0000 (22:51 +0000)]
- 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
Alex Ionescu [Sun, 12 Nov 2006 22:43:43 +0000 (22:43 +0000)]
- 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
Alex Ionescu [Sun, 12 Nov 2006 22:39:09 +0000 (22:39 +0000)]
- 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
Alex Ionescu [Sun, 12 Nov 2006 22:37:52 +0000 (22:37 +0000)]
- Argh, another forgotten file. Too many local changes :(
svn path=/trunk/; revision=24734
Alex Ionescu [Sun, 12 Nov 2006 22:36:21 +0000 (22:36 +0000)]
- 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
Alex Ionescu [Sun, 12 Nov 2006 22:34:28 +0000 (22:34 +0000)]
- Implement MmAddVerifierThunks, MmIsDriverVerifying, MmIsVerifierEnabled.
- Not used by anything, these are for 3rd-party drivers and Driver Verifier.
svn path=/trunk/; revision=24732
Alex Ionescu [Sun, 12 Nov 2006 22:33:04 +0000 (22:33 +0000)]
- Fix flags in DbgkpSectionToFileHandle
- Implement DbgkpCreateThread.
- Implement DbgkpSetProcessDebugObject.
svn path=/trunk/; revision=24731
Alex Ionescu [Sun, 12 Nov 2006 22:31:45 +0000 (22:31 +0000)]
- 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
Alex Ionescu [Sun, 12 Nov 2006 22:27:10 +0000 (22:27 +0000)]
- 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
Ged Murphy [Sun, 12 Nov 2006 20:13:39 +0000 (20:13 +0000)]
- fix a bug freeing memory for floating windows.
- ShowHideWindow needs no more than a Window handle
svn path=/trunk/; revision=24728
Johannes Anderwald [Sun, 12 Nov 2006 13:37:02 +0000 (13:37 +0000)]
- add dbgprint tool as optional tool
svn path=/trunk/; revision=24727
Art Yerkes [Sun, 12 Nov 2006 10:01:56 +0000 (10:01 +0000)]
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
Eric Kohl [Sat, 11 Nov 2006 21:29:10 +0000 (21:29 +0000)]
Fix a typo in the library name. kbdv.dll -> kbddv.dll
svn path=/trunk/; revision=24725
Johannes Anderwald [Sat, 11 Nov 2006 21:13:38 +0000 (21:13 +0000)]
- fix typo, identation, grammar in multiple german resource files
- patch by maku
See issue #1847 for more details.
svn path=/trunk/; revision=24724
Johannes Anderwald [Sat, 11 Nov 2006 20:53:52 +0000 (20:53 +0000)]
- fix text box alignment
- spotted by Coviti
- patch by Coviti
See issue #1860 for more details.
svn path=/trunk/; revision=24723
Eric Kohl [Sat, 11 Nov 2006 20:33:06 +0000 (20:33 +0000)]
KbdLayerDescriptor is a STDCALL function.
svn path=/trunk/; revision=24722
Johannes Anderwald [Sat, 11 Nov 2006 16:41:52 +0000 (16:41 +0000)]
- use dbgprint tool to output debug messages
svn path=/trunk/; revision=24721
Johannes Anderwald [Sat, 11 Nov 2006 16:07:35 +0000 (16:07 +0000)]
- add a primitive tool to output text via DbgPrint
svn path=/trunk/; revision=24720
Aleksey Bragin [Sat, 11 Nov 2006 13:17:58 +0000 (13:17 +0000)]
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
Hervé Poussineau [Fri, 10 Nov 2006 21:00:24 +0000 (21:00 +0000)]
- 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
Hervé Poussineau [Fri, 10 Nov 2006 18:20:00 +0000 (18:20 +0000)]
Move some files to subdirectories. No code change.
svn path=/trunk/; revision=24717
Johannes Anderwald [Fri, 10 Nov 2006 13:03:30 +0000 (13:03 +0000)]
- 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
James Tabor [Fri, 10 Nov 2006 12:50:34 +0000 (12:50 +0000)]
Sync up PATH_Arc and PATH_Ellipse with Wine.
svn path=/trunk/; revision=24713
Johannes Anderwald [Fri, 10 Nov 2006 11:17:17 +0000 (11:17 +0000)]
- add documentation for GuiRunOnce
svn path=/trunk/; revision=24712
Johannes Anderwald [Fri, 10 Nov 2006 11:16:38 +0000 (11:16 +0000)]
- 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
Ged Murphy [Thu, 9 Nov 2006 20:45:52 +0000 (20:45 +0000)]
The one that got away...
...add file with the code for writing the font data
svn path=/trunk/; revision=24710
Ged Murphy [Thu, 9 Nov 2006 20:28:29 +0000 (20:28 +0000)]
- add some font data to the combo boxes
svn path=/trunk/; revision=24709
Ged Murphy [Thu, 9 Nov 2006 18:47:05 +0000 (18:47 +0000)]
don't force usage of warning.h as it breaks building on msvc unless the WDK is installed.
svn path=/trunk/; revision=24708
Saveliy Tretiakov [Thu, 9 Nov 2006 18:34:36 +0000 (18:34 +0000)]
For windows with WS_EX_DLGMODALFRAME sysmenu can be opened only by right mouse click ( new fix, no movable buttons in calculator)
svn path=/trunk/; revision=24707
Hervé Poussineau [Thu, 9 Nov 2006 12:38:40 +0000 (12:38 +0000)]
Correctly clear DO_DEVICE_INITIALIZING flag
See issue #1862 for more details.
svn path=/trunk/; revision=24706
Johannes Anderwald [Thu, 9 Nov 2006 06:58:56 +0000 (06:58 +0000)]
- revert part of 24701 as requested on ml
"It's plain wrong to set eol-style:native for files of type .dsp, *.dsw, *.vcproj, *.sln and some other files like chinese resource scripts"
svn path=/trunk/; revision=24705
James Tabor [Thu, 9 Nov 2006 01:45:42 +0000 (01:45 +0000)]
Incremental changes, adding new Create and Delete DC functions and support structures.
svn path=/trunk/; revision=24704
Ged Murphy [Wed, 8 Nov 2006 19:27:57 +0000 (19:27 +0000)]
- create a pretty combobox custom control which resembles the one in MS Office as the standard Windows/ReactOS combo box is ugly
- change ShowHideWindow to make it more reliable
- fix the second combobox positioning within the text toolbar
- hide all windows except the toolbar at startup (these will eventually be read from the registry)
svn path=/trunk/; revision=24703
Ged Murphy [Wed, 8 Nov 2006 17:37:30 +0000 (17:37 +0000)]
- fix drawing on the memory device to be the same as the screen, not that it really matters as it's just test code, but it's always nice to have correct test code ;)
- change typo for compilation unit name
svn path=/trunk/; revision=24702
Johannes Anderwald [Wed, 8 Nov 2006 11:47:44 +0000 (11:47 +0000)]
set most of trunk svn property eol-style:native
svn path=/trunk/; revision=24701
Alex Ionescu [Tue, 7 Nov 2006 14:44:32 +0000 (14:44 +0000)]
- Remove WRITE/READ_REG_XXX functions written in C and write them in optimized assembly (no stack usage).
- Also flush posted write buffers during WRITE_XXX operations.
svn path=/trunk/; revision=24699
Johannes Anderwald [Tue, 7 Nov 2006 00:12:24 +0000 (00:12 +0000)]
- this should go to the debug port but not to the screen
svn path=/trunk/; revision=24698
Johannes Anderwald [Mon, 6 Nov 2006 23:50:03 +0000 (23:50 +0000)]
- improve namedpipe_reader parsing of lines code
- it should now be able handle partial / full lines
svn path=/trunk/; revision=24697
Johannes Anderwald [Mon, 6 Nov 2006 11:03:57 +0000 (11:03 +0000)]
- fix a devasting bug (introduced by me)
Sorry JaixBly...
svn path=/trunk/; revision=24694
Aleksey Bragin [Mon, 6 Nov 2006 10:20:40 +0000 (10:20 +0000)]
Revert 24074 by Saveliy Tretiakov until correct fix available. Fixes bug with moveable calculator buttons.
svn path=/trunk/; revision=24693
Christoph von Wittich [Sun, 5 Nov 2006 22:55:11 +0000 (22:55 +0000)]
added missing copyright information
svn path=/trunk/; revision=24692
Christoph von Wittich [Sun, 5 Nov 2006 22:53:48 +0000 (22:53 +0000)]
implemented timeout settings on startup and recovery page
svn path=/trunk/; revision=24691
Magnus Olsen [Sun, 5 Nov 2006 21:19:53 +0000 (21:19 +0000)]
1. Fixed some vc warings and fault
2. Implement AcquireDDThreadLock, ReleaseDDThreadLock (does not working as it should yet)
3. Start making ddraw thread safe
4. Fixed some mirors bugs
svn path=/trunk/; revision=24690
Peter Ward [Sun, 5 Nov 2006 21:00:42 +0000 (21:00 +0000)]
- Added missing variable for the SMP build, noticed by Usurp.
- Trimmed trailing white-space.
svn path=/trunk/; revision=24689
Johannes Anderwald [Sun, 5 Nov 2006 20:51:02 +0000 (20:51 +0000)]
- read lines into a vector of string lines
- move os specific functions into an own file
- fix a bug in command line options parsing
- add function for converting ansi2Unicode
svn path=/trunk/; revision=24688
Alex Ionescu [Sun, 5 Nov 2006 20:44:38 +0000 (20:44 +0000)]
- Add hal.h from TinyKRNL containing internal definitions for fstub (MBR, Partiton Table, Partition Table Entry, Layout structures) and helper macros. Some structures come from disk.sys sample in the DDK.
svn path=/trunk/; revision=24687
Alex Ionescu [Sun, 5 Nov 2006 20:43:07 +0000 (20:43 +0000)]
- disk.sys: Don't fail IOCTL_GET_PARTITION_INFO for Partition 0. This is perfectly valid (and needed for some code I'll add later).
- IopGetDiskInformation: Treat the partition buffer as a simple PULONG array.
- KeUpdateSystemTime: Fix memory addressing to silence GAS compile-time warning.
svn path=/trunk/; revision=24686
Alex Ionescu [Sun, 5 Nov 2006 20:31:35 +0000 (20:31 +0000)]
- Simplify LPC Message allocation with an LpcpAllocateFromPortZone macro.
- Move LPC Macros/inlines to lpc_x.h
- Implement LpcRequestPort.
- Fix a bug in CsrTerminateProcess which was setting up incorrect sizes for the LPC message.
- Add some debug output to csrss.
- NTLPC works perfectly now, except for a bug on shutdown which doesn't properly close LPC processes.
svn path=/trunk/; revision=24685
Alex Ionescu [Sun, 5 Nov 2006 20:28:59 +0000 (20:28 +0000)]
- Fix boot.
- Fix GUI boot (bootvid).
- Fix cmlib bug.
svn path=/trunk/; revision=24684
James Tabor [Mon, 30 Oct 2006 19:38:37 +0000 (19:38 +0000)]
Part of the Win32k User32 Compatibility Project.
- Create IntLoadKeyboardLayout
- Code assimilated from win32k ntuser keyboard.c and Wine.
- Process and load a new keyboard layout.
- Creates the HKL for processing in NtUserLoadKeyboardLayoutEx.
- Load and computes module offset so NtUserLoadKeyboardLayoutEx can process it (read it in), load (EngLoadImage) and set the table entry point. This data is saved in a new structure connected to a list of keyboard layouts that was created during win32k init.
svn path=/trunk/; revision=24683
Alex Ionescu [Mon, 30 Oct 2006 19:20:08 +0000 (19:20 +0000)]
- In my fear of accidentally comitting NTLPC = 1, I forgot to make the initial NTLPC = 0 commit, so LPC was never getting compiled at all. This fixes it.
svn path=/trunk/; revision=24682
Alex Ionescu [Mon, 30 Oct 2006 19:12:17 +0000 (19:12 +0000)]
- Properly initialize the Port Message header in NTDLL's Csr Routines and Win32k's as well.
- It is now possible to boot into GUI and use the Command Line/Console (heavy LPC user) in NTLPC mode.
- NTLPC is still disabled in trunk however, because there are still bugs and missing functionality.
svn path=/trunk/; revision=24681
Alex Ionescu [Mon, 30 Oct 2006 18:45:22 +0000 (18:45 +0000)]
- Use Emanuelle's design for SMSS's LPC Code in CSRSS as well so that it can be portable between ROS LPC and NT LPC.
svn path=/trunk/; revision=24680
Alex Ionescu [Mon, 30 Oct 2006 17:04:49 +0000 (17:04 +0000)]
- Fix incorrect parameter shuffle in NtAcceptConnectPort. CSRSS now initializes properly and kernel32 gets loaded, but fails when connecting.
svn path=/trunk/; revision=24679
Alex Ionescu [Mon, 30 Oct 2006 16:54:45 +0000 (16:54 +0000)]
- Add support for mapping the client section in NtAcceptConnectPort.
svn path=/trunk/; revision=24678
Alex Ionescu [Mon, 30 Oct 2006 16:50:20 +0000 (16:50 +0000)]
- Fix parameter checks in NtAcceptConnectPort.
- Make CSRSS properly fill out the ServerView structure's length so that it can be validated by the kernel.
svn path=/trunk/; revision=24677
Alex Ionescu [Mon, 30 Oct 2006 16:45:54 +0000 (16:45 +0000)]
- Add support for secure LPC. However, we always return success atm because SeQueryInformationToken is not implemented. (Someone needs to refactor NtQueryInformationToken).
svn path=/trunk/; revision=24676
Alex Ionescu [Mon, 30 Oct 2006 16:39:19 +0000 (16:39 +0000)]
- Add support for Client/RemoteView in NtSecureConnectPort. Still lacking support for SID (needed for Csr)
svn path=/trunk/; revision=24675
Alex Ionescu [Mon, 30 Oct 2006 16:21:21 +0000 (16:21 +0000)]
- Add correct calls to NtAcceptConnectPort if NTLPC is used. Now we freeze because CSRSS uses client/server views so I have to implement that.
svn path=/trunk/; revision=24674
Alex Ionescu [Mon, 30 Oct 2006 14:50:31 +0000 (14:50 +0000)]
- Implement NtRequestWaitReplyPort. This is a simple implementation that doesn't support Callback LPC Messages yet (Since we don't make use of them). SMSS can now send API messages on the Sb Port.
- With these APIs we now have a skeleton NTLPC that is fully NT-compatible. Thanks to ea's (Emanuele)'s smss work which he strived to make portable, building with NTLPC = 1 will also build a compatible smss that now works.
- CSRSS requires some changes since it was not written to be NTLPC portable.
svn path=/trunk/; revision=24673
Alex Ionescu [Mon, 30 Oct 2006 14:46:56 +0000 (14:46 +0000)]
- Implement NtSecureConnectPort so that clients can connect to SMSS. Does not yet support actual secure connections (with a SID) and will fail those requests. Also doesn't support memory-mapped LPC yet.
svn path=/trunk/; revision=24672
Alex Ionescu [Mon, 30 Oct 2006 14:45:07 +0000 (14:45 +0000)]
- Implement NtCompleteConnectPort. SMSS can now completely accept new incoming connections.
svn path=/trunk/; revision=24671
Alex Ionescu [Mon, 30 Oct 2006 14:44:05 +0000 (14:44 +0000)]
- Implement NtAcceptConnectPort. This is a naive implementation that doesn't support memory-mapped LPC yet (since it's not used by SMSS). Such LPC messages will hit an ASSERT for now (when they do, I'll implement the missing functionalitY).
svn path=/trunk/; revision=24670