Commit graph

34539 commits

Author SHA1 Message Date
Timo Kreuzer d1eea0b572 convert to spec
svn path=/branches/ros-amd64-bringup/; revision=38148
2008-12-17 14:43:12 +00:00
Timo Kreuzer b4f1e51d0e revert 38134, it breaks other stuff
svn path=/branches/ros-amd64-bringup/; revision=38139
2008-12-17 01:36:21 +00:00
Timo Kreuzer 16bbd1dbf5 Update ntdll def file
svn path=/branches/ros-amd64-bringup/; revision=38138
2008-12-17 01:30:12 +00:00
Timo Kreuzer 3eba336ee7 comment out a few exports, now msvcrt can be built
svn path=/branches/ros-amd64-bringup/; revision=38137
2008-12-17 01:29:41 +00:00
Timo Kreuzer 547e215d9e fix overcomplicated and broken definitions of __iob_func and _iob
svn path=/branches/ros-amd64-bringup/; revision=38136
2008-12-17 01:28:37 +00:00
Timo Kreuzer c302a05577 fix _locaktime64 for x86
svn path=/branches/ros-amd64-bringup/; revision=38135
2008-12-17 01:27:37 +00:00
Timo Kreuzer e74941a2fd comment out some files from mingw lib that result in duplicate definitions, as they are also in crt
svn path=/branches/ros-amd64-bringup/; revision=38134
2008-12-17 01:17:47 +00:00
Timo Kreuzer e44fb72b24 - Add asm stubs for atan2, exp, fmod, ldexp, log10
- hack in _time64 and _localtime64

svn path=/branches/ros-amd64-bringup/; revision=38133
2008-12-17 01:16:58 +00:00
Timo Kreuzer 81173b5784 remove RtlpGetStackLimits from crt
svn path=/branches/ros-amd64-bringup/; revision=38132
2008-12-17 01:14:36 +00:00
Timo Kreuzer c91997a275 Make sure mingw_common imports are resolved, by adding it to mingw_main, mingw_wmain and mingw_dllmain
svn path=/branches/ros-amd64-bringup/; revision=38130
2008-12-16 23:33:43 +00:00
Timo Kreuzer 168e4491b2 - DLLs that don't contain any code (like cfgmgr) don't need to have an .eh_frame section. Make sure rsym64 continues in that case.
- Handle DW_CFA_GNU_args_size

svn path=/branches/ros-amd64-bringup/; revision=38129
2008-12-16 23:32:03 +00:00
Timo Kreuzer 7ff45ee579 new def file for ntdll, based on Vista64 exports
svn path=/branches/ros-amd64-bringup/; revision=38128
2008-12-16 22:45:26 +00:00
Timo Kreuzer 5fa3aa4e15 Implement asm stubs for alldiv, atan, ceil, cos, fabs, floor, log, pow, sin, sqrt, tan, _chkstk, _alloca_probe to libcntpr. Now we can build ntdll.
svn path=/branches/ros-amd64-bringup/; revision=38127
2008-12-16 20:46:34 +00:00
Timo Kreuzer fd16ec3f12 reduce hacks: build complete lib folder
svn path=/branches/ros-amd64-bringup/; revision=38126
2008-12-16 18:44:20 +00:00
Timo Kreuzer 8d14dcfcd8 hack away broken UNALIGNED. Maybe someone has a real solution for this... encoded?
svn path=/branches/ros-amd64-bringup/; revision=38125
2008-12-16 18:44:09 +00:00
Timo Kreuzer fb50d69cc7 comment out RtlWalkFrameChain for x64, we currently implement it in lib/rtl (we probably need a seperate um implementation later though)
svn path=/branches/ros-amd64-bringup/; revision=38122
2008-12-16 18:28:48 +00:00
Timo Kreuzer bafa860eb4 remove kernel32 dependency from mingw lib
svn path=/branches/ros-amd64-bringup/; revision=38119
2008-12-16 17:37:45 +00:00
Timo Kreuzer 944d1fea6a use setjmp/longjmp from libcntpr
svn path=/branches/ros-amd64-bringup/; revision=38114
2008-12-15 20:38:21 +00:00
Samuel Serapion c97d86c1df opps, same here.
svn path=/branches/ros-amd64-bringup/; revision=38111
2008-12-15 17:20:44 +00:00
Samuel Serapion fe19c9eaa6 - Fix UNALIGNED definition in crt.
- Definition not fixed in psdk because attribute(packed) is ignored on pointers and causes warnings, that with the pedantic warnings as errors break everything.

svn path=/branches/ros-amd64-bringup/; revision=38110
2008-12-15 17:19:10 +00:00
Timo Kreuzer 7dff983dd1 For some reason SVN didn't sync the line ending changes, although it's a binary file.
svn path=/branches/ros-amd64-bringup/; revision=38106
2008-12-15 13:19:02 +00:00
Timo Kreuzer 6803d9fd10 Use KeGetCurrentPrcb() instead of KeGetPcr()->Prcb / KeGetPcr()->CurrentPrcb
svn path=/branches/ros-amd64-bringup/; revision=38105
2008-12-15 12:56:15 +00:00
Samuel Serapion 8f799ea5b2 Accidentally undid 64 bit fixes, revert
svn path=/branches/ros-amd64-bringup/; revision=38100
2008-12-15 04:28:45 +00:00
Samuel Serapion 901f0cf805 attempt to fix kernel build.
svn path=/branches/ros-amd64-bringup/; revision=38099
2008-12-15 04:19:03 +00:00
Samuel Serapion f771d5b193 Fix build a bit.
svn path=/branches/ros-amd64-bringup/; revision=38098
2008-12-15 04:17:53 +00:00
Samuel Serapion 45cf586a15 Sync to trunk head(r38096)
svn path=/branches/ros-amd64-bringup/; revision=38097
2008-12-15 04:14:26 +00:00
Samuel Serapion 0588a0d2a7 Sync to wine64. Adds support for amd64 relays.. not that we use this feature.
svn path=/branches/ros-amd64-bringup/; revision=38096
2008-12-15 02:45:33 +00:00
Samuel Serapion d169f154e0 Fix packing for commdlg
svn path=/branches/ros-amd64-bringup/; revision=38095
2008-12-15 02:17:21 +00:00
Samuel Serapion f9f9de97ed Start making heap 64bit friendly.
svn path=/branches/ros-amd64-bringup/; revision=38094
2008-12-15 02:13:20 +00:00
Samuel Serapion a04b01097c hack for wine specific hack.
svn path=/branches/ros-amd64-bringup/; revision=38093
2008-12-15 02:09:44 +00:00
Samuel Serapion c35f0410c2 Fix 64bit-warnings.
svn path=/branches/ros-amd64-bringup/; revision=38092
2008-12-15 01:45:23 +00:00
Samuel Serapion 119dbe70f5 Fix some 64bit portability issues.
svn path=/branches/ros-amd64-bringup/; revision=38091
2008-12-15 00:30:46 +00:00
Samuel Serapion fdc49dfd3d Fix 64bit widl stubs.
svn path=/branches/ros-amd64-bringup/; revision=38090
2008-12-15 00:23:37 +00:00
Samuel Serapion d4682afd4e define _SEH2_FINALLY
svn path=/branches/ros-amd64-bringup/; revision=38089
2008-12-15 00:22:04 +00:00
Timo Kreuzer e9d55d0638 mbctype.h: fix broken _mbctype[] and _mbcasemap[] declarations
sec_api/time_s.h: add asctime_s
stdio.h: comment out defines for non-conforming swprintfs
sys/utime.h: fix definition of _utime / _utime32 to be compatible to msvc while linking to msvcrt.dll
tchar.h: add secure time functions
fixes msvcrt_winetest

svn path=/trunk/; revision=38088
2008-12-14 23:41:51 +00:00
Timo Kreuzer 2f3c5f280b - Replace a 'for' with a 'do .. while '
- Make sure OutputDebugStringA terminates with a newline
Fixes winetest debug output. I wonder how it worked before. Dedicated to Stefan100.

svn path=/trunk/; revision=38087
2008-12-14 23:18:59 +00:00
Timo Kreuzer 39324400b9 [FORMATTING]
Fix indentation, no code change

svn path=/trunk/; revision=38086
2008-12-14 22:52:51 +00:00
KJK::Hyperion 41dd7167ea Revert r38084
Sigh.

svn path=/trunk/; revision=38085
2008-12-14 22:44:33 +00:00
KJK::Hyperion 41467cc1ad Supersedes r38081
modified   include/reactos/libs/pseh/pseh2.h
modified   lib/pseh/framebased-gcchack.c
modified   lib/pseh/i386/framebased-gcchack.S
   Disassemble trampolines in the library, instead of the macros. Results in better, smaller code. As a side effect, PSEH no longer requires a trampoline for nested functions - which results in even better, even smaller code in many common cases where the nested functions don't use any variables from the containing function
   Simulate a no-op setjmp so that GCC correctly handles variables in registers, instead of surprise-corrupting random variables in random conditions
   Save EBP every time a _SEH2_TRY/_SEH2_EXCEPT is entered, instead of only the first time: correctly handles code compiled with -fomit-frame-pointers
   Don't generate a nested function for a _SEH2_EXCEPT() filter expression if the value is a compile-time constant: convert the value to (void *)0, (void *)1 or (void *)-1, and set that as the filter, instead (like Visual C++ does, incidentally)
   If a _SEH2_EXCEPT() filter expression is a compile-time constant evaluating to EXCEPTION_CONTINUE_EXECUTION or EXCEPTION_CONTINUE_SEARCH, allow GCC to optimize out the body of the _SEH2_EXCEPT (because it'd be unreachable). This should really result in a compile-time warning, but #pragma message is unsupported in GCC 4.1.3
   Let _SEH2_EXCEPT() accept a comma expression as filter expression (e.g. _SEH2_EXCEPT(MessageBox(...), EXCEPTION_EXECUTE_HANDLER) instead of _SEH2_EXCEPT((MessageBox(...), EXCEPTION_EXECUTE_HANDLER)))
   Small optimizations in PSEH library
   Clean up GCC hacks
   Remove currently unused PSEH 3 hacks

svn path=/trunk/; revision=38084
2008-12-14 21:50:31 +00:00
Dmitry Gorbachev e415cd9e65 - Use HEAP_ZERO_MEMORY instead of memset().
- Do not crash if no adapter found.

svn path=/trunk/; revision=38083
2008-12-14 20:45:16 +00:00
KJK::Hyperion 966a02f90b Revert r38081
svn path=/trunk/; revision=38082
2008-12-14 19:54:52 +00:00
KJK::Hyperion 0d1b89e5c2 modified include/reactos/libs/pseh/pseh2.h
modified   lib/pseh/framebased-gcchack.c
   Disassemble trampolines in the library, instead of the macros. Results in better, smaller code. As a side effect, PSEH no longer requires a trampoline for nested functions - which results in even better, even smaller code in many common cases where the nested functions don't use any variables from the containing function
   Simulate a no-op setjmp so that GCC correctly handles variables in registers, instead of surprise-corrupting random variables in random conditions
   Save EBP every time a _SEH2_TRY/_SEH2_EXCEPT is entered, instead of only the first time: correctly handles code compiled with -fomit-frame-pointers
   Don't generate a nested function for a _SEH2_EXCEPT() filter expression if the value is a compile-time constant: convert the value to (void *)0, (void *)1 or (void *)-1, and set that as the filter, instead (like Visual C++ does, incidentally)
   If a _SEH2_EXCEPT() filter expression is a compile-time constant evaluating to EXCEPTION_CONTINUE_EXECUTION or EXCEPTION_CONTINUE_SEARCH, allow GCC to optimize out the body of the _SEH2_EXCEPT (because it'd be unreachable). This should really result in a compile-time warning, but #pragma message is unsupported in GCC 4.1.3
   Let _SEH2_EXCEPT() accept a comma expression as filter expression (e.g. _SEH2_EXCEPT(MessageBox(...), EXCEPTION_EXECUTE_HANDLER) instead of _SEH2_EXCEPT((MessageBox(...), EXCEPTION_EXECUTE_HANDLER)))
   Small optimizations in PSEH library
   Clean up GCC hacks
   Remove currently unused PSEH 3 hacks

svn path=/trunk/; revision=38081
2008-12-14 19:49:05 +00:00
Timo Kreuzer 973a6f3ef5 Patch by encoded: update SHARED_CACHE_MAP
svn path=/branches/ros-amd64-bringup/; revision=38080
2008-12-14 17:59:11 +00:00
Dmitry Gorbachev 47b29bf325 Fix winsta.dll rbuild file.
svn path=/trunk/; revision=38079
2008-12-14 13:52:28 +00:00
Eric Kohl 41a958b128 - SEH-protect LsaClose, LsaDelete and LsaOpenPolicy.
- Move the code of LsaOpenPolicy into LsarOpenPolicy and make LsaOpenPolicy call LsarOpenPolicy.

svn path=/trunk/; revision=38078
2008-12-14 13:16:16 +00:00
Michael Martin 1605d036fe - Use volatile with PagesLocked and MdlAddress. Fixes bug #3674.
- For safety may have to declare all variable used in except this way.

svn path=/trunk/; revision=38077
2008-12-14 12:14:00 +00:00
Aleksey Bragin 5e305bbdf6 - Undo one "fix" from 38075. Coverity warned you about possible double check of the same pointer (though in || you probably can't go without it), but one check should definately stay! SpiGetLunExtension can return NULL!
svn path=/trunk/; revision=38076
2008-12-14 11:59:21 +00:00
Stefan Ginsberg a9295e691b - Fix a broken loop
- Remove unnecessary checks
- Fixes CID 171, 172 and 655

svn path=/trunk/; revision=38075
2008-12-14 10:15:49 +00:00
Stefan Ginsberg afa4c210b2 - Get rid off STATIC, DECL_IMPORT and DECL_EXPORT
- Fix FIELD_OFFSET

svn path=/trunk/; revision=38074
2008-12-14 10:02:46 +00:00
Samuel Serapion aa4aedbeca same here.
svn path=/branches/ros-amd64-bringup/; revision=38073
2008-12-14 06:18:50 +00:00