Commit graph

40687 commits

Author SHA1 Message Date
Timo Kreuzer
c8f9aa3f4b [FREELDR]
Fix KGDT64 names, initialize KGDT64_NULL and KGDT64_R3_CMCODE

svn path=/branches/ros-amd64-bringup/; revision=45383
2010-02-03 00:04:27 +00:00
Timo Kreuzer
a5e16bf6a6 Fix the UNIMPLEMENTED macro
svn path=/branches/ros-amd64-bringup/; revision=45382
2010-02-02 23:48:03 +00:00
Timo Kreuzer
34ef1bef80 [NTOS]
- Implement KiSystemFatalException, stubplement KiGeneralProtectionFaultHandler and KiXmmExceptionHandler, KiNpxNotAvailableFaultHandler in C
- Implement KiDivideErrorFault, KiOverflowTrap, KiBoundFault, KiInvalidOpcodeFault, KiNpxNotAvailableFault, KiNpxSegmentOverrunAbort, KiInvalidTssFault, KiSegmentNotPresentFault, KiStackFault, KiAlignmentFault, KiMcheckAbort, KiXmmException, KiRaiseAssertion in assembler
- Modify rsp instead of pushing a pseudo error code
- Move all unwind ops into ENTER_TRAP_FRAME macro

svn path=/branches/ros-amd64-bringup/; revision=45344
2010-01-30 13:35:46 +00:00
Timo Kreuzer
f155d17a5a Add exception codes for asm
svn path=/branches/ros-amd64-bringup/; revision=45343
2010-01-30 13:21:28 +00:00
Timo Kreuzer
086a6f0140 add else
svn path=/branches/ros-amd64-bringup/; revision=45340
2010-01-30 04:27:17 +00:00
Timo Kreuzer
49da6c12d8 and the same for trap.S
svn path=/branches/ros-amd64-bringup/; revision=45338
2010-01-30 03:18:20 +00:00
Timo Kreuzer
2306a5788f remove the RIP() hack, instead use a constant rip=0 for MASM/ML
svn path=/branches/ros-amd64-bringup/; revision=45337
2010-01-30 03:17:11 +00:00
Timo Kreuzer
752c8aead9 trap.S is now fully MASM/ML compatible
svn path=/branches/ros-amd64-bringup/; revision=45336
2010-01-30 03:12:26 +00:00
Timo Kreuzer
bfd0e180c3 use .altmacro for gas and hack the UNIMPLEMENTED macro
svn path=/branches/ros-amd64-bringup/; revision=45335
2010-01-30 03:11:39 +00:00
Timo Kreuzer
fcd9ab3f50 fix macros...
svn path=/branches/ros-amd64-bringup/; revision=45334
2010-01-30 01:46:16 +00:00
Timo Kreuzer
f0c278391b fixup trap.S. Almost there...
svn path=/branches/ros-amd64-bringup/; revision=45333
2010-01-30 01:17:06 +00:00
Timo Kreuzer
e2151932e4 More macros and fixes
svn path=/branches/ros-amd64-bringup/; revision=45332
2010-01-30 01:16:42 +00:00
Timo Kreuzer
cf3c481035 And once again fix trap.S
svn path=/branches/ros-amd64-bringup/; revision=45331
2010-01-30 00:53:01 +00:00
Timo Kreuzer
5698669639 Update macros a bit more
svn path=/branches/ros-amd64-bringup/; revision=45330
2010-01-30 00:52:23 +00:00
Timo Kreuzer
fbe7bbfcdb Update trap.S to conform
svn path=/branches/ros-amd64-bringup/; revision=45329
2010-01-30 00:30:08 +00:00
Timo Kreuzer
459f389307 Update some asm macros, partly adding MASM/ML support
svn path=/branches/ros-amd64-bringup/; revision=45328
2010-01-30 00:22:03 +00:00
Timo Kreuzer
fde64b37c3 make use of the new file
svn path=/branches/ros-amd64-bringup/; revision=45327
2010-01-29 23:41:52 +00:00
Timo Kreuzer
5a811f8ce2 Add include/reactos/asm.h
This file replaces asmmacro.S and shall provide GAS/ML64 compatibility definitions

svn path=/branches/ros-amd64-bringup/; revision=45326
2010-01-29 23:29:58 +00:00
Timo Kreuzer
6b38c83e7a [NTOS]
MSVC compatibility fix: use DECLSPEC_ALIGN and remove inline asm (it was testcode anyway)

svn path=/branches/ros-amd64-bringup/; revision=45325
2010-01-29 23:25:05 +00:00
Timo Kreuzer
ef3224edab Fix parameters of KeUpdateSystemTime, make it regparm only for X86 ans remove the now deprecated stub.
Add a few stubs for MSVC

svn path=/branches/ros-amd64-bringup/; revision=45318
2010-01-29 13:23:00 +00:00
Timo Kreuzer
a0055ff789 Use __inline instead of inline
svn path=/branches/ros-amd64-bringup/; revision=45314
2010-01-29 05:25:26 +00:00
Timo Kreuzer
b4c3b1e6f6 unimplement a bunch or intrinsics for msc, as we cannot use inline asm.
svn path=/branches/ros-amd64-bringup/; revision=45313
2010-01-29 05:23:59 +00:00
Timo Kreuzer
9943d23d5d fix the same typo once more
svn path=/branches/ros-amd64-bringup/; revision=45295
2010-01-28 02:37:28 +00:00
Timo Kreuzer
01afdbbe91 [CRT]
Implement sin() in C. Code is actually 99% identical to cos.
Note: We are using even exponents for sin, too, as this results in higher precision than using uneven exponents.

svn path=/branches/ros-amd64-bringup/; revision=45294
2010-01-28 01:18:12 +00:00
Timo Kreuzer
80be387663 fix a typo
svn path=/branches/ros-amd64-bringup/; revision=45292
2010-01-28 00:59:40 +00:00
Timo Kreuzer
c21ada51d6 [CRT]
- implement generic C version of cos(). On amd64 machines it will compile into very optimized SSE2 code. No need to use assembly.

svn path=/branches/ros-amd64-bringup/; revision=45290
2010-01-27 23:42:34 +00:00
Timo Kreuzer
9c9f4a9fd7 Revert r45245 - r45247
Although the idea of using mingw-w64's routines is good, we can't because it's using x87. We need SSE2.

svn path=/branches/ros-amd64-bringup/; revision=45255
2010-01-25 22:01:02 +00:00
Samuel Serapion
3ec17c4a18 Fix amd64 libcntpr.
svn path=/branches/ros-amd64-bringup/; revision=45247
2010-01-25 11:54:37 +00:00
Samuel Serapion
835a07e605 Forgot to svn add spec file.
svn path=/branches/ros-amd64-bringup/; revision=45246
2010-01-25 11:19:50 +00:00
Samuel Serapion
2ce7897109 [MSVCRT]
- Convert to spec, based on wine. Tons of stuff missing but compiles, links and runs abiword and firefox.
- Export floating point functions.
[CRT]
- Implement acosf, asinf, atanf, atan2f, copysign, copysignf, exp, expf, fabs, fmod, fmodf, hypotf, ceil, ceilf, cos, cosf, floor, floorf, log, log10, sin, sinf, tan, tanf, ldexp, log10f, logb, logbf, logf, modff, nextafter, nextafterf, powf, sinhf, sqrt, sqrtf, tanf, tanhf in amd64 compatible way. Made possible by mingw-w64.

svn path=/branches/ros-amd64-bringup/; revision=45245
2010-01-25 11:10:06 +00:00
Samuel Serapion
1ac4e0fac7 - commctrl.h: revert a change from 45098 which is incorrect.
- make some floating point math available on x64
- build fixes.

svn path=/branches/ros-amd64-bringup/; revision=45208
2010-01-23 04:18:57 +00:00
Samuel Serapion
351f173762 Fix build.
svn path=/branches/ros-amd64-bringup/; revision=45193
2010-01-21 19:54:40 +00:00
Timo Kreuzer
ed70a6466b fix build with USERMODE = 1
svn path=/branches/ros-amd64-bringup/; revision=45192
2010-01-21 19:48:38 +00:00
Timo Kreuzer
9034baffe6 [FREELDR]
Remove deprecated reactos loader code

svn path=/branches/ros-amd64-bringup/; revision=45191
2010-01-21 19:43:08 +00:00
Samuel Serapion
d16e5ecdca - Remove old HalpInitPICs
svn path=/branches/ros-amd64-bringup/; revision=45190
2010-01-21 19:40:32 +00:00
Timo Kreuzer
663e3ac4c2 [HAL]
Fix build

svn path=/branches/ros-amd64-bringup/; revision=45189
2010-01-21 19:34:30 +00:00
Timo Kreuzer
f7a3094ecc [NTOS]
Fixup code based on recent changes

svn path=/branches/ros-amd64-bringup/; revision=45188
2010-01-21 19:33:47 +00:00
Timo Kreuzer
4409da3038 [NTOS]
- Comment out NtRaiseException and NtContinue for now
- Use TrapFrame->PreviousMode like done for arm

svn path=/branches/ros-amd64-bringup/; revision=45187
2010-01-21 19:32:39 +00:00
Timo Kreuzer
5f457606f3 Merge trunk r45185
svn path=/branches/ros-amd64-bringup/; revision=45186
2010-01-21 18:34:48 +00:00
Timo Kreuzer
b9ebd4c107 [NTOS]
- Fix bugcheck paramters in KiGeneralProtectionFault
- Disable x87 fpu exceptions

svn path=/branches/ros-amd64-bringup/; revision=45185
2010-01-21 18:00:23 +00:00
Timo Kreuzer
bc00bfdb25 reduce difference to trunk
svn path=/branches/ros-amd64-bringup/; revision=45184
2010-01-21 17:58:38 +00:00
Christoph von Wittich
051cf08911 [HAL]
-header cleanup
-spaces -> tabs in rbuild file

svn path=/trunk/; revision=45183
2010-01-21 13:43:49 +00:00
Sir Richard
819e842b8e [HAL]: The HAL is a mess. Fix build.
svn path=/trunk/; revision=45182
2010-01-21 13:36:30 +00:00
James Tabor
890497afd7 [Win32k]
- Fixes to region support code. See bug 5124. 

svn path=/trunk/; revision=45181
2010-01-21 13:18:33 +00:00
Sir Richard
202f931c4e [HAL]: Initialize the i8259A PIC controllers in C, and add register structures and enumerations to document the bits. These were taken from ISA System Architecture 3rd Edition and EISA System Architecture 2nd Edition by Mindshare.
[HAL]: Add code to detect EISA systems with ELCR (Edge/Level Control Register). Since the current HAL does not support these, warn users about any level/shared interrupts, since they are likely to cause trouble.

svn path=/trunk/; revision=45180
2010-01-21 12:51:13 +00:00
Cameron Gutman
ffdab4c2f5 Merge aicom-network-branch (without NDIS changes for now)
New noteworthy improvements include (in addition to the other improvements made in the commits that were reverted in trunk):
 - Support for sending/receiving packets > 16KB in size
 - Samba-tng works
 - Tracert works
 - Major speed and stability improvements (especially for TCP connections)
 - Use ExAllocatePoolWithTag/ExFreePoolWithTag instead of memtrack

svn path=/trunk/; revision=45172
2010-01-21 03:48:10 +00:00
James Tabor
1964950642 [Win32k]
- Add system region support functions.

svn path=/trunk/; revision=45171
2010-01-21 02:58:52 +00:00
James Tabor
d0d7c7c47f [Win32k]
- Implement IntGdiSetBrushOwner for bug 5124. 

svn path=/trunk/; revision=45170
2010-01-21 01:39:19 +00:00
James Tabor
2899820ed5 [User32]
- Revert 44988, fix crash in win user32 wine test.

svn path=/trunk/; revision=45169
2010-01-21 00:49:25 +00:00
James Tabor
25b52444b5 [Win32k]
- System regions do not possess user attribute sections. See bug 5124.
- Read the patch for more information.

svn path=/trunk/; revision=45168
2010-01-21 00:14:06 +00:00