Commit Graph
34925 Commits
Author SHA1 Message Date
Timo Kreuzer b783e3b2bf rsym64: add a temp hack, keeping the .eh_frame section, as windows cries when we remove it for some reason, needs more investigation what goes wrong.
svn path=/branches/ros-amd64-bringup/; revision=39072
2009-01-24 22:50:02 +00:00
Timo Kreuzer 3210df5936 Merge 38960 from trunk
svn path=/branches/ros-amd64-bringup/; revision=39071
2009-01-24 22:34:39 +00:00
Samuel Serapion 4fd7607a1b Fix compilation on gcc 4.4.0
svn path=/branches/ros-amd64-bringup/; revision=39060
2009-01-24 11:05:13 +00:00
Samuel Serapion ed09d1bb98 Fix compilation for gcc 4.4.0 and 64bits
svn path=/branches/ros-amd64-bringup/; revision=39059
2009-01-24 11:04:21 +00:00
Timo Kreuzer 9d8a81b57d KD64: Use CURRENT_KD_SECONDARY_VERSION instead of default in KdVersionBlock. Use UseExceptionRecordTo64. add some dirty hacks, until either WinDbg gets proper addresses sent or we have SEH implemented.
svn path=/branches/ros-amd64-bringup/; revision=39056
2009-01-24 01:05:38 +00:00
Timo Kreuzer 5fde806e8b add ExceptionRecordTo64 macro that copies the exception excord on win64, and calls ExceptionRecord32To64 on win32
svn path=/branches/ros-amd64-bringup/; revision=39055
2009-01-24 00:59:37 +00:00
Timo Kreuzer b92e8a49aa Add property USERMODE, set it to 1 to compile usermode parts (base, dlls and mingw lib)
svn path=/branches/ros-amd64-bringup/; revision=39053
2009-01-23 23:37:51 +00:00
Timo Kreuzer af71294b61 NDK: fix and update LDR_DATA_TABLE_ENTRY
svn path=/branches/ros-amd64-bringup/; revision=39052
2009-01-23 22:13:08 +00:00
Timo Kreuzer da3e5b3190 add mingw lib back to build
svn path=/branches/ros-amd64-bringup/; revision=39043
2009-01-23 12:51:43 +00:00
Timo Kreuzer 11412f0a26 ks64: Don't truncate the Thread pointer. Silence a warning.
svn path=/branches/ros-amd64-bringup/; revision=39019
2009-01-22 15:55:21 +00:00
Timo Kreuzer fbdecd3e79 kd64: KdpReadControlSpace works a bit different on x64, u.ReadMemory.TargetBaseAddress is not used as an offset, it's rather an index. On 1 a pointer to the prcb is returned, on 2 ProcessorState.SpecialRegisters is copied. Fix usage of IN and OUT.
svn path=/branches/ros-amd64-bringup/; revision=39005
2009-01-21 22:21:19 +00:00
Timo Kreuzer 145902626f Merge 38961 from trunk
svn path=/branches/ros-amd64-bringup/; revision=39003
2009-01-21 18:32:33 +00:00
Timo Kreuzer 5f4c3a7d19 kdcom: If a MessageData pointer is passed to KdReceivePacket, fill in Size member. Some cleanup. Now we pass the former assertion, but crash in KdpReadVirtualMemory. This lloks more like a bug in the x64 version of KdpReadControlSpace. Vista64 returns a kernel pointer that used in the following ReadMemory packet. Ros returns some crap.
svn path=/branches/ros-amd64-bringup/; revision=39002
2009-01-21 18:19:52 +00:00
Timo Kreuzer d740961aa2 kdcom: Implement KdpReceivePacketLeader that tries to get a packet leader and starts over as soon as a single byte is wrong. Use it instead of the old code in KdReceivePacket. Implement more of KdReceivePacket, handling the actual packets. Make use of CurrentPacketId that gets xored with 1 when sending acks and initialized on a reset. Not handling this correctly made WinDbg wait for more packets, although it sent an ack packet already.
Only return KdPacketReceived on an ack packet, when we requested one. Stuff starts to work now. WinDbg connects then reports "Assertion 'Data->Length == 0' failed at ntoskrnl\kd64\kdapi.c line 310".

svn path=/branches/ros-amd64-bringup/; revision=38985
2009-01-21 02:53:48 +00:00
Timo Kreuzer bb91a6f44a rsym64: only compare lower 16 bits of checksum
svn path=/branches/ros-amd64-bringup/; revision=38973
2009-01-20 13:46:24 +00:00
Timo Kreuzer 7ad31d2719 kdcom: implement KdpSendControlPacket and use it to respond with a reset packet to a reset packet. WindDbg expects this and will now finally except the resent packet and respond with a DBGKD_MANIPULATE_STATE64
svn path=/branches/ros-amd64-bringup/; revision=38971
2009-01-20 10:05:21 +00:00
Timo Kreuzer eabd9536dd kdcom: partly handle control packets, now we resend our data on reset packets, but WinDbg still doesn't like them.
svn path=/branches/ros-amd64-bringup/; revision=38967
2009-01-20 03:17:31 +00:00
Timo Kreuzer b03befb720 kdcom: initial implementation of KdSendPacket() and KdReceivePacket(). Based on info in ms windbgkd.h and http://www.nynaeve.net/?p=169
Now we start exchanging packets, but still not good enough to get things going.

svn path=/branches/ros-amd64-bringup/; revision=38966
2009-01-20 02:57:14 +00:00
Timo Kreuzer 2aa87f6dc5 kdcom: add a debug hack to use com2 for WinDbg, while com1 stays for FrLdrDbgPrint. Also mark the Port as initialized in KdDebuggerInitialize0. Remove the KD_RECV_CODE enum, use the KDSTATUS enum that already exist. Implement PACKET_TYPE_KD_POLL_BREAKIN case for KdReceivePacket as described in http://www.nynaeve.net/?p=169 Now we return from KdPollBreakIn().
svn path=/branches/ros-amd64-bringup/; revision=38965
2009-01-20 01:50:13 +00:00
Timo Kreuzer 9313950dd3 kdcom: Add KD_RECEIVE_CODE enum, implement KdpReceiveBuffer, HACK: misuse KdDebuggerInitialize1 to set a pointer to FrLdrDbgPrint
svn path=/branches/ros-amd64-bringup/; revision=38964
2009-01-20 01:05:07 +00:00
Timo Kreuzer 727c68db9e Implement KdpSendBuffer, KdpCalculateChecksum,
reference: http://www.vista-xp.co.uk/forums/technical-reference-library/2540-basics-debugging.html

svn path=/branches/ros-amd64-bringup/; revision=38963
2009-01-20 00:42:10 +00:00
Timo Kreuzer 89bebbd18c go back to no debugging channels in freeldr
svn path=/branches/ros-amd64-bringup/; revision=38959
2009-01-19 23:02:13 +00:00
Timo Kreuzer eb53e42811 crt update:
- initial implementation of secure crt functions for vista compatibility (implement _get_invalid_parameter_handler, _set_invalid_parameter_handler, _invalid_parameter)
- rewrite time apis, add TLS support, add 64bit time functions and secure crt function support

svn path=/branches/ros-amd64-bringup/; revision=38956
2009-01-19 22:05:27 +00:00
Timo Kreuzer a6ccd8981a time.h: add asctime_s and localtime_s, remove sec_api include
wchar.h: fix WTIME definitions

svn path=/branches/ros-amd64-bringup/; revision=38955
2009-01-19 21:53:26 +00:00
Timo Kreuzer da6a9dbfe5 Remove double brackets, I missed. Add a DPRINT1 if kernel is not loaded.
svn path=/branches/ros-amd64-bringup/; revision=38951
2009-01-19 18:50:19 +00:00
Timo Kreuzer 74bcfdb123 Fix return value of FrLdrReadAndMapImage when image is already loaded.
svn path=/branches/ros-amd64-bringup/; revision=38950
2009-01-19 18:45:26 +00:00
Timo Kreuzer 03c5f702be Fix rsym a bit, so that it properly calculates the section start. Now reactos boots again.
svn path=/branches/ros-amd64-bringup/; revision=38947
2009-01-19 18:05:27 +00:00
Timo Kreuzer 4915884a37 improve freeldr debug prints:
- include reactos/debug.h
- rename DebugPrint to DbgPrintMask
- use DbgPrint to DPRINTM, add file and line and get rid of the ugly double brackets

svn path=/branches/ros-amd64-bringup/; revision=38942
2009-01-19 16:29:02 +00:00
Timo Kreuzer b0c158cf99 ok, better test changes before comitting them ;-)
svn path=/branches/ros-amd64-bringup/; revision=38921
2009-01-18 22:35:17 +00:00
Timo Kreuzer 2a568fccdc Tracing the data exchanged between Windows64 and WinDbg shows that DBGKD_CONTROL_REPORT is a bit different to x86 version.
svn path=/branches/ros-amd64-bringup/; revision=38920
2009-01-18 21:55:59 +00:00
Samuel Serapion 865a88e5b0 Re: 38126
- Sorry, but this hack cannot go away at this time.

svn path=/branches/ros-amd64-bringup/; revision=38878
2009-01-18 10:03:47 +00:00
Samuel Serapion f07877a8c6 Remove unnecessary dependency, fix build a bit.
svn path=/branches/ros-amd64-bringup/; revision=38877
2009-01-18 09:44:36 +00:00
Samuel Serapion 6e949303bb - Don't go SIZE_T crazy.
svn path=/branches/ros-amd64-bringup/; revision=38593
2009-01-06 00:35:05 +00:00
Timo Kreuzer f82333b8ea Sync to trunk r38500
svn path=/branches/ros-amd64-bringup/; revision=38502
2009-01-01 22:38:03 +00:00
Stefan Ginsberg fbd7f8a2aa - Only reserve APIC memory on x86
- Don't reserve 32 pages for VGA registers -- deprecated since 11917, 4 years ago
- Use KeNumberProcessors instead of MAXIMUM_PROCESSORS when mapping the PCRs
- Remove MmInitMemoryAreas, a nop since revision 1093, 8 years ago
- Remove unused KeMemoryMapRangeCount/KeMemoryMap

svn path=/trunk/; revision=38500
2009-01-01 17:00:38 +00:00
Aleksey Bragin 56d6ef019e - Fix an always true comparison in IoCheckEaBufferValidity.
svn path=/trunk/; revision=38499
2009-01-01 15:19:15 +00:00
Timo Kreuzer 9ff809f84c sync to trunk r38300
svn path=/branches/ros-amd64-bringup/; revision=38498
2009-01-01 14:45:53 +00:00
Colin Finck b0d177b83c Happy new year everybody!
svn path=/trunk/; revision=38497
2009-01-01 13:33:06 +00:00
Timo Kreuzer 79287b3e31 Sync to trunk r38250
svn path=/branches/ros-amd64-bringup/; revision=38496
2009-01-01 13:32:17 +00:00
Michael Martin d1f64418a1 - Deference pProcess not Process.
svn path=/trunk/; revision=38495
2009-01-01 10:09:57 +00:00
Michael Martin e28ed99f1b - Implement SetupDiSetDeviceInstallParamsA.
svn path=/trunk/; revision=38494
2008-12-31 22:01:58 +00:00
Timo Kreuzer 4994d3c247 add missing files
svn path=/branches/ros-amd64-bringup/; revision=38493
2008-12-31 16:35:20 +00:00
Martin Fuchs 607be3272e update XMLStorage: preserve CDATA formating of processed XML documents
svn path=/trunk/; revision=38492
2008-12-31 15:59:36 +00:00
Ged Murphy ee252ea491 - Set a dummy revision number. This value should be dynamically set prior to running doxygen.
- Inline the source in the docs. Although it makes the docs rather long, it's much more useful this way at the moment.
- Use case sensitive names as this will run on a unix server.

svn path=/trunk/; revision=38491
2008-12-31 15:38:28 +00:00
Dmitry Chapyshev 9e6bd133e6 - Fix attributes
svn path=/trunk/; revision=38490
2008-12-31 15:09:28 +00:00
Timo Kreuzer 32911b0635 Sync to trunk r38200
svn path=/branches/ros-amd64-bringup/; revision=38489
2008-12-31 14:31:22 +00:00
Aleksey Bragin 8172ef5174 - Add a new API to Freeldr's memory manager, which allows to override type of an already allocated memory.
- WINLDR: Fix page tables buffer memory allocation so that it doesn't rely on luck anymore and always allocates a contiguous area of memory. Fixes spontaneous case of booting problem (immediate black screen after loading drivers, reboot of real hardware, halt of cpu in a virtual machine).
- WINLDR: Fix some debug print.

svn path=/trunk/; revision=38487
2008-12-31 12:21:36 +00:00
Dmitry Chapyshev 85e610895c - Fix ReadDirectoryChangesW
- FindFirstChangeNotificationW
+17 passed winetests

svn path=/trunk/; revision=38486
2008-12-31 11:54:30 +00:00
Christoph von Wittich abdee726bc fix build
svn path=/trunk/; revision=38485
2008-12-31 11:53:35 +00:00
Christoph von Wittich 66af77a707 sync wintrust and cryptui to wine 1.1.11
svn path=/trunk/; revision=38484
2008-12-31 09:26:01 +00:00