Commit graph

23153 commits

Author SHA1 Message Date
Alex Ionescu
b41e5c3b6c - Fix a bug in DbgkCreateThread which wasn't saving the initial thread information in the right place. The process create event is now fully supported and properly returns the entrypoint of the application.
svn path=/trunk/; revision=25005
2006-11-30 20:46:48 +00:00
Alex Ionescu
3851db2429 - Implement support for DEBUG_PROCESS in CreateProcess so that processes can be started with a debugger (works and tested with a new test app).
- We still seem to be suffering from a bug during certain debug event waits.

svn path=/trunk/; revision=25004
2006-11-30 20:37:21 +00:00
Alex Ionescu
7909b7a822 - Properly set and check the image notification flag for the process in DbgkCreateThread. Patch by hto.
See issue #1879 for more details.

svn path=/trunk/; revision=25003
2006-11-30 19:52:49 +00:00
Alex Ionescu
9ab9cf7351 - Fix various Dbgk bugs in the DbgUI and Win32 Debug wrapper APIs.
- Win32 Debug test application now works as well as Native one.
- The Dbgk framework still crashes on exceptions, I think.

svn path=/trunk/; revision=25002
2006-11-30 19:38:04 +00:00
Ged Murphy
fb9895a402 allow the Americans their incorrect spellings and add a correct UK resource file ;)
svn path=/trunk/; revision=25001
2006-11-30 19:23:19 +00:00
Alex Ionescu
3087c4530c - Remove Dbgk entries from KrnlFun.c, the subsystem is now implemented, save a few small bugs.
- Congratulations ROS on your 25000th commit!

svn path=/trunk/; revision=25000
2006-11-30 19:04:17 +00:00
Alex Ionescu
6a8ff3fea2 - Update Dbgk test application to test Win32 as well (definable by a compile-time #define).
svn path=/trunk/; revision=24999
2006-11-30 19:02:22 +00:00
Ged Murphy
d7ac88ec6f - implement 'blur' and 'sharpness'
- implement 'contrast' allowing for separate adjustment of RGB colours
- Decorate the contrast / blur function names to make GCC happy. These functions will be merged at a later stage
- implement fading in and out of the floating windows. To activate, hover your cursor over one of the windows, then away again. Only works in Windows, ROS has missing translucency functionality at the moment.

svn path=/trunk/; revision=24998
2006-11-30 19:02:14 +00:00
Alex Ionescu
ad0227d2bf - Fix a bug in DbgkOpenHandles which was causing file handles to get lost.
- Process create, thread create and DLL load events are now working perfectly. See http://www.tinykrnl.org/dbgworking.png

svn path=/trunk/; revision=24997
2006-11-30 18:30:05 +00:00
Alex Ionescu
5d44e00704 - Fix critical I/O bugs in IopParseFile which were causing the file object's device object pointer to be associated to the FSD (File System Device) instead of the Disk Driver, as well as the dereference of the FSD after the Disk Driver had been referenced (causing too many derefs for one, and to many refs for the other). Also fix a bug in IopQueryDeviceInformation which was querying the Disk Driver instead of the FSD.
- This also fixes IopQueryNameFile to properly return the entire name of the file now, instead of only the FSD part (probably fixes a dozen regressions).

svn path=/trunk/; revision=24996
2006-11-30 18:04:22 +00:00
Johannes Anderwald
a76f1549b6 - various msvc compability fixes
- 2 errors remaining:
conio.c(2104) : error C2065: 'CONSOLE_INPUT_MODE_VALID' : undeclared identifier
conio.c(2108) : error C2065: 'CONSOLE_OUTPUT_MODE_VALID' : undeclared identifier

those two constants should be moved into the NDK(declared in wincon.h)...

svn path=/trunk/; revision=24993
2006-11-30 16:48:13 +00:00
Christoph von Wittich
6714832496 check for compiler version
svn path=/trunk/; revision=24992
2006-11-30 15:11:26 +00:00
Johannes Anderwald
55e6bb5471 - fix msvc_clean target
- implement cleaning up def files which are generated by fixdef

svn path=/trunk/; revision=24991
2006-11-30 12:20:40 +00:00
Johannes Anderwald
5d44e0c10f - silence debug prints
- create new generated file with _msvc postfix

svn path=/trunk/; revision=24990
2006-11-30 11:24:46 +00:00
Aleksey Bragin
d59a0757d9 Fix HALMP build
svn path=/trunk/; revision=24989
2006-11-30 11:24:03 +00:00
Alex Ionescu
58809635ad - Raw test app for DbgUi+Dbgk Debugging Subsystem (skeletal, and doesn't test Win32 APIs).
svn path=/trunk/; revision=24988
2006-11-30 09:54:31 +00:00
Alex Ionescu
3b4c74ae10 - Client IDs were OK, I incorrectly assumed they weren't due to the concidence they were equal to the thead/process handles. Actual bug was NtDebugContinue not accepting a valid status value. This is fixed now.
svn path=/trunk/; revision=24987
2006-11-30 09:30:07 +00:00
Alex Ionescu
cca4a71164 - Fix some bugs in NtWaitForDebugEvent which caused debug events to be sent in the wrong order and also more then one event to be sent at the same time (and thus some events skipped).
- Test app now properly receives the "create process" event along with valid process/thread handles and the image base. No file handle sent yet because of the I/O Manager File Object bug.
- There's still a bug in NtContinueDebugEvent due to wrong Client IDs being sent.

svn path=/trunk/; revision=24986
2006-11-30 09:22:07 +00:00
Alex Ionescu
ef1120e56b - Fix DbgkSectionHandleToFileHandle.
- Implement MmGetFileNameForSection.
- There is a bug in ObQueryNameString for file objects, so the full name isn't returned...

svn path=/trunk/; revision=24985
2006-11-30 05:22:20 +00:00
Alex Ionescu
d4cf4b1b58 - Fix a bug in NtWaitForDebugEvent.
- Dbgk kindaaaa works now, as a proof-of-concept more then anything else since some helper Mm routines are missing. Still have some bugs to fix, but connecting, attaching and waiting on events seems not to crash anymore (And returns partially valid data).

svn path=/trunk/; revision=24984
2006-11-30 04:52:22 +00:00
Alex Ionescu
e6463c5a34 - Implement an unhandled case in DbgkSetProcessDebugPort. The event queue is now properly parsed during connect and the event is signaled to start flushing the queue.
- Still got some bugs, but attach works...

svn path=/trunk/; revision=24983
2006-11-30 04:45:01 +00:00
Magnus Olsen
d1e6b52baa forgot this file
svn path=/trunk/; revision=24982
2006-11-30 04:35:10 +00:00
Alex Ionescu
d83fcae7d1 - Forgot to actually initialize Dbgk during system initialization, so any API would crash.
- Fix some stupid bugs in NtCreateDebugObject.
- Add tracing framework and add tracing to all of debug.c.
- Dbgk *almost* works: http://www.tinykrnl.org/dbgworking.png. Here I attach to services.exe and the kernel is sending notifications for all threads and DLLs loaded.

svn path=/trunk/; revision=24981
2006-11-30 04:16:35 +00:00
Alex Ionescu
2a4049fdfc - Implement DbgkPostFakeThreadMessages.
- Add Dbgk-calls to NtMap/UnmapViewOfSection to nodify debugging services of new DLL image load.
- Dbgk support is now skeletally complete, I will write a simple test app to test some functionality and start finding/fixing bugs.

svn path=/trunk/; revision=24980
2006-11-30 01:57:25 +00:00
Eric Kohl
9ceed92dda Move global variables into a struct that is attached to the property sheet page dialog.
svn path=/trunk/; revision=24979
2006-11-29 23:03:18 +00:00
Johannes Anderwald
bb39bd7162 - implement a basic scanning dection algorithm
- please review :P

svn path=/trunk/; revision=24978
2006-11-29 22:49:16 +00:00
Alex Ionescu
b906fae81e - Add profil.c and stub HalStartProfileInterrupt, HalStopProfileInterrupt and HalSetProfileInterval, and export these functions.
- KdComPortInUse is exported by HAL, not kdcom, so make the change.
- Register the KD support routines that kdcom on NT uses and implement most of them (except support for PCI Debug Cards).
- I can now get Windows to recognize the HAL but it freezes during loading (Due to broken IRQL implementation) and WinDBG won't connect to it.

svn path=/trunk/; revision=24977
2006-11-29 22:12:50 +00:00
Magnus Olsen
893be43835 1. adding surface callbacks stub, and activate them.
2. Finish the mix betwin HAL and HEL that we can do for now. 
3. Finish the switch betwin HAL and HEL that we can do for now. 
4. mange activate a DDCALLBACKS stub that was not posible before with wine ddraw.h header. after I wrote a new ddraw.f header for ReactOS, it works to actiavte FlipToGDISurface  HEL callbacks. But it is stub for moment. 

svn path=/trunk/; revision=24976
2006-11-29 22:09:52 +00:00
Johannes Anderwald
93c26f0ab5 - beginning of a def conversion utility
svn path=/trunk/; revision=24975
2006-11-29 21:08:15 +00:00
Alex Ionescu
358a8ed849 - Don't freeze on spurious interrupt.
svn path=/trunk/; revision=24974
2006-11-29 19:23:06 +00:00
Alex Ionescu
37d156c4c8 - Swap the IDT where we should, in KiSystemStartup instead of the freeldr.c hackfile. This, coupled with the previous patch, should make NTLDR-booting even more succesful since interrupts won't crash/be ignored.
svn path=/trunk/; revision=24973
2006-11-29 19:20:17 +00:00
Alex Ionescu
96d593c9ba - Finally figured out a way to make the old HAL IRQ implementation work with the new Ke Interrupt implementation without requiring my new HAL IRQ code (which doesn't work).
- Remove the "deprecated" directory from ntoskrnl since it now truly is.
- Remove KeInitInterrupts hack.
- Remove KiDispatchInterrupt2 export hack from kernel and stop using it from the HAL.
- HAL can now be built/tested with Windows/TinyKRNL since the export hack is gone and interrupts are sent properly through the IDT.
- Remove a bunch of completed krnlfun entries.
- Fix progressbar during bootcd bug.

svn path=/trunk/; revision=24972
2006-11-29 19:13:12 +00:00
Magnus Olsen
495e62c516 fixing more of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet

svn path=/trunk/; revision=24971
2006-11-29 19:12:06 +00:00
Magnus Olsen
1d4d4056b4 fixing some of the mix betwin hel and hal. (still not complete)
fixing some of dections of DDCREATE_HARDWAREONLY and DDCREATE_EMULATIONONLY,
we are now swicting betwin mix HEL and HAL, only HAL, or only HEL. But this is not complete yet
adding more comment so i do not forget in startuphal

svn path=/trunk/; revision=24970
2006-11-29 18:51:04 +00:00
Alex Ionescu
9f841739ff - Fix again
svn path=/trunk/; revision=24969
2006-11-29 17:57:56 +00:00
Alex Ionescu
f675588849 - Properly fix boot/build.
svn path=/trunk/; revision=24968
2006-11-29 17:35:15 +00:00
Christoph von Wittich
09f6f9fded skip binutils detection when no build date is returned (fix linux build)
svn path=/trunk/; revision=24967
2006-11-29 15:55:17 +00:00
Johannes Anderwald
b74888ef0d - fix build (commenting out calls)
svn path=/trunk/; revision=24966
2006-11-29 12:36:33 +00:00
Johannes Anderwald
76a4c9efc1 - fix build (commenting out calls)
svn path=/trunk/; revision=24965
2006-11-29 10:19:00 +00:00
Alex Ionescu
d466efb4fb - Fixup all the file headers with proper paths and authors.
- Move sysbus.c contents (a 4 line function) into bus.c.
- Unify initialization code.
- Delete and disable stall execution calibration (currently using the default). Will implement later in a more precise manner (this routine was bizarly setting the MHz of the CPU in the PRCB in some cases...).

svn path=/trunk/; revision=24964
2006-11-29 08:28:20 +00:00
Alex Ionescu
f09a042483 - Implement a working version of KeQueryPerformanceCounter based on the C implementation (without the strange MHZed-based code) and also support updating the performance timer during a clock interrupt, otherwise the value might become stale during the query.
- Update clock interrupt handler to update the performance counter, and also detect if someone changed the clock rate (but don't yet support this).
- Test app from previous revision now works beautifully.

svn path=/trunk/; revision=24963
2006-11-29 08:01:58 +00:00
Alex Ionescu
7cd2e3f498 - There's no such thing as Phase 2 HAL init.
- Only map the 0x0 physical address in HalpReboot when enabling warm-reboot, there's no need to map it during init and keep it allocated during the whole time.

svn path=/trunk/; revision=24962
2006-11-29 07:32:27 +00:00
Alex Ionescu
9b7daac048 - Test for High-Precision Timer (QueryPeformanceCounter). Verifies everything from the Win32 implementation to system call speed to HAL timer accuracy and functionality. Currently fails.
svn path=/trunk/; revision=24961
2006-11-29 07:31:25 +00:00
Johannes Anderwald
20dd3542a2 new / update french translations
See issue #1889 for more details.

svn path=/trunk/; revision=24960
2006-11-29 06:50:14 +00:00
Johannes Anderwald
89ba98d32c new / update french translations
See issue #1889 for more details.

svn path=/trunk/; revision=24959
2006-11-29 06:46:16 +00:00
Christoph von Wittich
4b21ce3c1f Renamed remotely
svn path=/trunk/; revision=24958
2006-11-29 00:38:07 +00:00
Christoph von Wittich
c5cd59c583 fix compilation of RC files
svn path=/trunk/; revision=24957
2006-11-28 23:46:26 +00:00
Magnus Olsen
94ef0f9c47 tempary fix : adding HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session
Manager\Environment\PROCESSOR_ARCHITECTURE =x86 fixing some installer like WinPcap, this should freeldr setup up
not be hardcode here. 

svn path=/trunk/; revision=24956
2006-11-28 22:56:08 +00:00
Johannes Anderwald
1a9cad6cd0 revert commit
svn path=/trunk/; revision=24955
2006-11-28 22:04:31 +00:00
Johannes Anderwald
3e8791008e oops i did it again
svn path=/trunk/; revision=24954
2006-11-28 21:46:54 +00:00