Timo Kreuzer
e7cb518fd7
deconstify target in interlocked intrinsics
...
svn path=/branches/ros-amd64-bringup/; revision=39338
2009-02-03 16:48:50 +00:00
Timo Kreuzer
f61c37c2cb
fix prototype of RtlAllocateHeap
...
svn path=/branches/ros-amd64-bringup/; revision=39335
2009-02-03 15:43:51 +00:00
Timo Kreuzer
61467fd142
hid: convert to spec (taken from wine)
...
svn path=/branches/ros-amd64-bringup/; revision=39333
2009-02-03 15:23:27 +00:00
Timo Kreuzer
58ab969261
implement __iob_func()
...
svn path=/branches/ros-amd64-bringup/; revision=39331
2009-02-03 15:14:30 +00:00
Timo Kreuzer
38c6f78763
dnsapi.dll: convert to spec (taken from wine)
...
svn path=/branches/ros-amd64-bringup/; revision=39328
2009-02-03 14:57:37 +00:00
Timo Kreuzer
5f3118f01c
include time.h for struct tm
...
svn path=/branches/ros-amd64-bringup/; revision=39325
2009-02-03 14:43:10 +00:00
Timo Kreuzer
665679dffe
time.h: rename include guard to _INC_TIME, remove localtime_s and localtime_r definition, define asctime_s only if __STDC_WANT_SECURE_LIB is defined.
...
svn path=/branches/ros-amd64-bringup/; revision=39324
2009-02-03 14:34:30 +00:00
Timo Kreuzer
d12be4b77d
add localtime_s prototype here, as it's not part of official headers
...
svn path=/branches/ros-amd64-bringup/; revision=39317
2009-02-03 13:00:31 +00:00
Timo Kreuzer
70e9bdcc15
revert last commit, this is wine code, we need allowwarnings="true"
...
svn path=/branches/ros-amd64-bringup/; revision=39313
2009-02-03 12:35:49 +00:00
Timo Kreuzer
793fdfb70a
Use %p instead of %0xlx as format for pointer sized variable.
...
svn path=/branches/ros-amd64-bringup/; revision=39312
2009-02-03 12:31:24 +00:00
Timo Kreuzer
89b023d340
implement _mktime32, _mkgmtime32, _mktime64, _mkgmtime64 and use a worker function for all versions.
...
svn path=/branches/ros-amd64-bringup/; revision=39311
2009-02-03 12:27:01 +00:00
Timo Kreuzer
f9df018c07
remove #if 0 hack
...
svn path=/branches/ros-amd64-bringup/; revision=39306
2009-02-03 11:12:22 +00:00
Timo Kreuzer
877dfe0d32
#if out x86 specific inline code for other archictectures
...
svn path=/branches/ros-amd64-bringup/; revision=39299
2009-02-03 03:51:40 +00:00
Timo Kreuzer
b59c53ef27
#if out x86 specific inline code for other archictectures
...
svn path=/branches/ros-amd64-bringup/; revision=39298
2009-02-03 03:51:15 +00:00
Timo Kreuzer
f0497fd9c5
kd64: Add KdpSysGetVersion to internal header
...
svn path=/branches/ros-amd64-bringup/; revision=39297
2009-02-03 01:08:26 +00:00
Timo Kreuzer
2a2d68b378
Fix LDR_DATA_TABLE_ENTRY member names
...
svn path=/branches/ros-amd64-bringup/; revision=39296
2009-02-03 01:07:37 +00:00
Timo Kreuzer
3d3f2049c4
Fix KiInitGdtEntry
...
svn path=/branches/ros-amd64-bringup/; revision=39278
2009-02-01 22:08:01 +00:00
Timo Kreuzer
61f5b1e0b2
Add a comment, remove a comment
...
svn path=/branches/ros-amd64-bringup/; revision=39199
2009-01-29 16:00:22 +00:00
Timo Kreuzer
95d550f693
fix Ki386InitializeTss
...
svn path=/branches/ros-amd64-bringup/; revision=39198
2009-01-29 15:56:54 +00:00
Timo Kreuzer
0534c6e4a6
KD64: implement case 0 for KdpReadControlSpace, which returns a pointer to the Pcr.
...
svn path=/branches/ros-amd64-bringup/; revision=39191
2009-01-28 23:34:04 +00:00
Samuel Serapion
02f91befe1
Fix typo.
...
svn path=/branches/ros-amd64-bringup/; revision=39173
2009-01-28 12:08:33 +00:00
Timo Kreuzer
ae77b8e1f9
kd64: Implement KdpRead/WriteMachineSpecificRegister
...
svn path=/branches/ros-amd64-bringup/; revision=39162
2009-01-28 04:15:09 +00:00
Timo Kreuzer
7b5da63100
KD64: remove some FrLdrDbgPrints, fix a warning.
...
svn path=/branches/ros-amd64-bringup/; revision=39161
2009-01-28 04:14:05 +00:00
Samuel Serapion
3d6da207d7
The wbinvd instruction is the same on amd64
...
svn path=/branches/ros-amd64-bringup/; revision=39160
2009-01-28 03:07:51 +00:00
Timo Kreuzer
a04bd167e3
Ke: Remove unused KiInitializeMachineType and Ki486CompatibilityLock. Remove a bunch of FrLdrDbgPrints. Resort KiSystemStartupReal, initialize the LoaderBlocks Process and Prcb field for Cpu0, get the Pcr from the LoaderBlock.
...
svn path=/branches/ros-amd64-bringup/; revision=39155
2009-01-27 22:14:06 +00:00
Timo Kreuzer
5374ad15b8
hal: fix some ULONG/ULONG_PTR issues
...
svn path=/branches/ros-amd64-bringup/; revision=39151
2009-01-27 21:35:00 +00:00
Timo Kreuzer
4889abaf25
kd64: Move KdpSysGetVersion into arch-specific file
...
svn path=/branches/ros-amd64-bringup/; revision=39136
2009-01-27 16:26:30 +00:00
Timo Kreuzer
10b297f752
kdcom: xor 1 to CurrentPacketId when we receive an ACK, not when we send one. Remove the SYNC_PACKET_ID hack. Now breaking in after DbgPrints works.
...
svn path=/branches/ros-amd64-bringup/; revision=39133
2009-01-27 12:58:24 +00:00
Timo Kreuzer
ae0c07b4f8
Acknowledge a packet with the received packet's PacketId, not with the current sending PacketId.
...
svn path=/branches/ros-amd64-bringup/; revision=39131
2009-01-27 12:15:22 +00:00
Timo Kreuzer
08050b1520
Increment rip in KiBreakPointTrap and reenable decrement in KiDispatchException. (Do we really need it, first inc then dec? At least x86 does it that way) Setup fs selector in KiSystemStartupReal, pass a pointer to FrLdrDbgPrint to kdcom, fix some typos. Finally breaking into the debugger and continuing really works.
...
svn path=/branches/ros-amd64-bringup/; revision=39126
2009-01-27 01:57:35 +00:00
Timo Kreuzer
dc125646a5
kdcom: add SYNC_PACKET_ID for PACKET_TYPE_KD_DEBUG_IO to make debugprints work.
...
svn path=/branches/ros-amd64-bringup/; revision=39124
2009-01-27 00:55:03 +00:00
Timo Kreuzer
b906e54b40
rsym64: instead of stripping sections from the middle of the PE, convert them to bss sections to make windows happy and keep the files small. Thanks to kjk for finding the problem.
...
svn path=/branches/ros-amd64-bringup/; revision=39121
2009-01-26 22:48:54 +00:00
Timo Kreuzer
109668d7a2
remove a test hack that sneaked in and broke exception directory
...
svn path=/branches/ros-amd64-bringup/; revision=39114
2009-01-26 17:01:49 +00:00
Timo Kreuzer
3e88b3778e
ntoskrnl/Ke: setup stack segment selector in KeSetupsStackAndInitializeKernel, comment out decrement of Rip on int3 dispatch (needs further investigation), use CONTEXT_ALL flags when creating the CONTEXT from the trap frame in KeDispatchException
...
svn path=/branches/ros-amd64-bringup/; revision=39074
2009-01-25 01:17:04 +00:00
Timo Kreuzer
a8d4d9d5c5
freeldr: setup more entries of the gdt
...
svn path=/branches/ros-amd64-bringup/; revision=39073
2009-01-25 01:06:34 +00:00
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