Commit Graph
5882 Commits
Author SHA1 Message Date
Timo Kreuzer fcea4abdca [NTOSKRNL]
Update amd64 kd64 from ros-amd64-bringup

svn path=/trunk/; revision=53498
2011-08-30 14:43:11 +00:00
Timo Kreuzer 79517b3d28 [INTRIN]
- add  __nop()

svn path=/trunk/; revision=53494
2011-08-29 23:10:04 +00:00
Timo Kreuzer b011354030 [INTRIN]
Add missing memory barriers to _enable, _disable and __halt

svn path=/trunk/; revision=53479
2011-08-28 12:40:55 +00:00
Jérôme Gardou abf9566c79 [IDL]
- fix definition of PPCONTEXT_HANDLE

svn path=/trunk/; revision=53477
2011-08-27 22:07:42 +00:00
Amine Khaldi 9a6c1ebd07 [SHELL32]
* Fix Shell_MergeMenus return type.

svn path=/trunk/; revision=53472
2011-08-27 18:23:04 +00:00
Giannis Adamopoulos 1c6b9c7b25 [user32/win32k]
- cleanup internal headers
- remove unused functions and definitions
- move shared definitions to ntuser.h

svn path=/trunk/; revision=53436
2011-08-25 08:51:26 +00:00
Timo Kreuzer 274262f440 [INTRIN] Fix _bittest64 prototype
[STLPORT] Fix amd64 build of modules using these headers

svn path=/trunk/; revision=53428
2011-08-24 22:02:41 +00:00
Thomas Faber c1d210b143 [DDK/XDK]
- Add function types, not only function pointers types for EXPAND_STACK_CALLOUT and KSYNCHRONIZE_ROUTINE

svn path=/trunk/; revision=53418
2011-08-24 14:07:13 +00:00
Timo Kreuzer 83a29c33af [XDK/DDK]
Add KeSaveFloatingPointState as well

svn path=/trunk/; revision=53401
2011-08-23 22:59:23 +00:00
Timo Kreuzer 83d9580f60 [DDK(XDK]
Add inline functionss Ke*FloatingPointState for amd64 and arm, doing nothing. Noticed by Thomas Faber.

svn path=/trunk/; revision=53400
2011-08-23 22:31:20 +00:00
Timo Kreuzer fe7e695657 [VMWINST] Fix amd64 build
[NTDLL] add missing amd64 specific exports
[MSVCRT*] Fix mangled c++ exports for amd64
[OLEAUT32] Add amd64 adm stub for call_method, fix MSVC/amd64 build
[RICHED20] Fix MSVC thiscall wrapper
[RPCRT4] add amd64 specific asm
[KSFILTER] Add c++ aliases, use dummy KeSaveFloatingPointState and KeRestoreFloatingPointState on non-x86 builds
[KMIXER] Fix a broken DPRINT
[PSEH] Priorize native SEH over dummy SEH

svn path=/trunk/; revision=53399
2011-08-23 08:58:15 +00:00
Timo Kreuzer 804256c25d [INTRIN]
- Deconstify most parameters in the intrinsics.
- add __movsq, _bittest64, __umulh

svn path=/trunk/; revision=53397
2011-08-23 08:42:13 +00:00
Timo Kreuzer d86d341a8e [CRT]
Fix definition of __m128d and __m128.

svn path=/trunk/; revision=53388
2011-08-22 21:59:13 +00:00
Timo Kreuzer 6e4670679a [CRT]
add minimal versions of emmintrin.h, mmintrin.h, xmmintrin.h
just enough for libsamplerate

svn path=/trunk/; revision=53377
2011-08-22 16:29:01 +00:00
Timo Kreuzer ecde07a4c7 [STLPORT]
- Fix Interlocked* declarations
- Fix amd64 build

svn path=/trunk/; revision=53369
2011-08-22 13:14:46 +00:00
Eric Kohl bfd0ce90f1 [SERVICES/ADVAPI32]
Rewrite the command packet transfer code between the service control manager (services.exe) and the service control dispatcher (advapi32.dll). The service name is no longer stored in an array of WCHARs at the end of the command packet. The service name is now stored behind the fixed size command packet header using an offset value in the header to determine the start of the string. The same method will be used to store start arguments to the service dispatcher, but it is not fully implemented yet.

svn path=/trunk/; revision=53358
2011-08-21 15:35:19 +00:00
Timo Kreuzer 8bc82e23e6 [PSDK] Simplify definition for YieldProcessor and add DbgRaiseAssertion for amd64 in winnt.h
[ASM] Fix some stuff for amd64

svn path=/trunk/; revision=53340
2011-08-20 15:53:56 +00:00
Timo Kreuzer 1810920919 [CRT]
guard some inline functions from being used in certain cases

svn path=/trunk/; revision=53335
2011-08-20 11:27:49 +00:00
Timo Kreuzer 1490c31014 [ASM]
- prefix labels only on x86
- improve syscall stub code

svn path=/trunk/; revision=53333
2011-08-20 10:39:28 +00:00
Timo Kreuzer 6b166d2a44 [INTRIN]
- Use fixed inlined version of __invlpg only on x86

svn path=/trunk/; revision=53314
2011-08-19 15:00:52 +00:00
Timo Kreuzer 62f7fcc714 [NTOSKRNL/WIN32K/NDK]
- OkToClose procedure (OB_OKAYTOCLOSE_METHOD) returns BOOLEAN, not NTSTATUS
- Check ppi for NULL before dereferencing it in IntWinstaOkToClose (it is NULL, if we do our job of cleaning up the win32 process properly)
- Set the win32 process info to NULL on process cleanup
- Free THREADINFO and PROCESSINFO instead of leaking them
- Set NULL cursor, when the last thread is cleaned up in win32k, so we don't call UserSetCursor() in the process cleanup, when we don't have a THREADINFO anymore. This should hopefully fix a crash of MSVC builds.
- Remove unused UserGetNextHandle function
- Fix some warnings

svn path=/trunk/; revision=53211
2011-08-13 20:10:40 +00:00
Eric Kohl b4fdd97d15 [ADVAPI32]
Fix QueryServiceConfigEx[A/W]:
- If lpServiceConfig is NULL or cbBufSize is less than sizeof(QUERY_SERVICE_CONFIGA/W) pass a pointer to an internal status buffer to RQueryServiceConfigA/W.
- Revert r53153 and r53154. Adding 'in' and 'unique' attributes is NOT an option because this is not compatible with Windows.

svn path=/trunk/; revision=53202
2011-08-13 14:26:55 +00:00
Jérôme Gardou f0bd303530 [TOOLS]
- sync wpp, widl and wrc with wine 1.3.26

svn path=/trunk/; revision=53158
2011-08-09 22:51:55 +00:00
Jérôme Gardou 34f157a953 [SERVICES]
- addendum to r53153 : [unique] and [ptr] can't be applied to [out] only parameters, so mark them as [in] too.
Now MSVC build gets as far as 3rd stage.

svn path=/trunk/; revision=53154
2011-08-09 18:50:00 +00:00
Jérôme Gardou 2e54793dbe [SERVICES]
- mark pointers argument of RQueryServiceConfigA/W as [unique], since they can be NULL.
See http://msdn.microsoft.com/en-us/library/aa367153%28v=VS.85%29.aspx for details.

svn path=/trunk/; revision=53153
2011-08-09 18:39:06 +00:00
Timo Kreuzer bb14fcf0ac [INTRIN]
memory barriers
- implement a fixed version of __invlpg for MSVC, since the intrinsic is broken and can generate wrong instructions, when optimization is enabled
- add MSVC versions of _mm_mfence, _mm_lfence, _mm_sfence and __faststorefence
- add _mm_mfence() for gcc
- give _mm_lfence, _mm_sfence, __invlpg and __wbinvd proper 

svn path=/trunk/; revision=53151
2011-08-09 14:22:29 +00:00
Timo Kreuzer 18d14eb931 [INTRIN]
_mm_pause has an implicit full memory barrier, emulate this on gcc as well

svn path=/trunk/; revision=53133
2011-08-07 23:16:39 +00:00
Jérôme Gardou face9ace47 [IDL]
- set end points of interfaces

svn path=/trunk/; revision=53129
2011-08-07 22:42:51 +00:00
Jérôme Gardou 22227e3f74 [CMAKE]
remove useless file

svn path=/trunk/; revision=53117
2011-08-07 14:26:36 +00:00
Jérôme Gardou 8e004513b0 [CMAKE][CMAKE]
- turn most macros in function 2/x.
- separate rpc server and client stubs, and generate them directly instead of using a library, so they got the flags that the module uses.
- commit forgotten file from r53088
- get rid of winesdk target, it's useless now

svn path=/trunk/; revision=53112
2011-08-07 00:53:19 +00:00
Jérôme Gardou 073e87c6d2 [CMAKE]
- make generated files depend on their generator
It seems stupid, but I removed this quite some time ago, don't ask me why.
Now, you just have to build the tools and do an incremental build each time a tool is updated.

svn path=/trunk/; revision=53088
2011-08-05 20:40:40 +00:00
Jérôme Gardou ef2548095f [PSDK]
- do not redefine UNICODE_STRING and NTSTATUS if wintrnl.h has already been included
- define PNTSTATUS in wintrnl.h
- add RPC_PROTSEC_VECTOR and RPC_MGMT_AUTHORIZATION_FN definitions

svn path=/trunk/; revision=53087
2011-08-05 19:35:54 +00:00
Thomas Faber 9385a7847e [NDK]
- Add RtlCompareMemoryUlong and RtlCopyBytes/RtlFillBytes/RtlZeroBytes

svn path=/trunk/; revision=53081
2011-08-05 09:36:32 +00:00
Thomas Faber 6de4861d8c [DDK/XDK]
- Add function types, not only function pointer types, for splay/avl tree functions
- RTL_SPLAY_LINKS needs to be defined regardless of RTL_USE_AVL_TABLES
[NDK]
- Add missing splay/avl tree function declarations
- Add the function types as well. These are also not in ntifs anymore

svn path=/trunk/; revision=53073
2011-08-05 01:20:28 +00:00
Jérôme Gardou b3526a42af [PSDK]
- mark operators == et != of REFPROPERTYKEY as C++ externs

svn path=/trunk/; revision=53050
2011-08-03 15:20:36 +00:00
Alex Ionescu 326dbd577b [CSRSS]: Hack header to fix build.
svn path=/trunk/; revision=53041
2011-08-03 03:30:56 +00:00
Alex Ionescu 27dfa433c4 [CSRSRV/KERNEL32]: Have CSRSS create a proper shared section (Based on code taken from the CSRSS rewrite in trunk) and attach it to every client.
[CSRSRV/KERNEL32]: Have CSRSS fill out the base server static data. Still a bit of a hack since we should have a basesrv to do this, but it'll fix the "can't install any drivers" bug as well as increase performance since we now cache a bunch of data system-wide.
[KERNEL32]: Remove all related hacks in kernel32.
[CSRSRV]: Only accept the incoming connection if we found CSR process data about it.

svn path=/trunk/; revision=53040
2011-08-03 03:09:02 +00:00
Jérôme Gardou 9d51236a9d [PSDK/WINNT.H]
- add DEFINE_ENUM_FLAG_OPERATORS macro

svn path=/trunk/; revision=53024
2011-08-02 06:10:15 +00:00
Amine Khaldi 219d76ad86 [CMAKE]
Thomas Faber:
- Properly Initialize OUTPUT_VARIABLE.

svn path=/trunk/; revision=52918
2011-07-27 09:18:46 +00:00
Jérôme Gardou 3b76cb24ee [NDK/DDK]
Fix definitions of ZwPowerInformation and ZwInitiatePowerAction

svn path=/trunk/; revision=52890
2011-07-26 08:27:35 +00:00
Olaf Siejka d040534b02 [NDK]
- Remove Resource functions, as they are in wdm.h
- add KeTryToAcquireQueuedSpinLockRaiseToSynch, ExRaiseHardError & enum members
 Patch by Thomas Faber

svn path=/trunk/; revision=52847
2011-07-24 21:02:50 +00:00
Alex Ionescu 1b137b580f [NDK]: ntpoapi.h only includes Nt functions, not Zw, so leave the Zw's in the NDK.
svn path=/trunk/; revision=52844
2011-07-24 17:14:58 +00:00
Alex Ionescu 242c7a190e [NDK]: Fix Po function prototypes. Also guard against _PO_DDK_ which means caller already has ntpoapi.h.
svn path=/trunk/; revision=52843
2011-07-24 17:06:50 +00:00
Alex Ionescu 078cdde168 [NDK]: Add missing native power functions.
[KERNEL32]: Cleanup the power APIs. Fix calculation of battery percentage in GetSystemPowerStatus.

svn path=/trunk/; revision=52841
2011-07-24 16:50:03 +00:00
Alex Ionescu b61bacd753 [WINE]: Fix build.
svn path=/trunk/; revision=52753
2011-07-21 03:19:44 +00:00
Alex Ionescu fcd58d94bb [PSDK]: Add missing RESETDEV define to winbase.
[WINE]: Wrap Wine's get_char_typeW to iswctype in unicode.h, which will allow better sharing of synched code.

svn path=/trunk/; revision=52751
2011-07-21 02:51:50 +00:00
Alex Ionescu 3013167a9d [PSDK]: Add missing QUOTA_LIMITS_EX.
[NDK]: Fix certain SxS functions.
[RTL]: "Implement" RtlActivateActivationContextEx which lets you specify a TEB. RtlActivateActivationContext uses the current TEB. NOTE: All these functions are broken because they copy-paste Win32 wine code into NT Native functions (with different parameters/structures).
[NDK]: Fix pstypes.h -- it was a #define mess, and worked by luck because we are a < Vista OS.
[NDK]: Add RtlInitEmptyAnsiString.

svn path=/trunk/; revision=52736
2011-07-20 14:46:15 +00:00
Timo Kreuzer 4040433bfa [ASM]
Generate MSVC debugging info for KiUserExceptionDispatcher, KiIntSystemCall, KiFastSystemCall, KiFastSystemCallRet, KiSystemService, KiFastCallEntry, all systemcall stubs
Now usermode backtraces look as they should in WinDbg

svn path=/trunk/; revision=52705
2011-07-17 00:38:46 +00:00
Alex Ionescu 3aab9ff5f6 [NDK]: Add RtlReleaseRelativeName.
[RTL]: Re-implement RtlDosSearchPath_U using new path functions from past commits. Uses correct behavior with RtlDoesFileExists (for relative paths, return success when file is locked -- for absolute paths, do not!). Also uses a more optimized path loop that does not alloc/realloc/free heap continously (only one heap allocation is used).

svn path=/trunk/; revision=52699
2011-07-16 18:58:52 +00:00
Alex Ionescu 8045981334 [NDK]: DEPENDENCY TRACKING. GET IT RIGHT. GODDAMN IT RBUILD.
svn path=/trunk/; revision=52688
2011-07-15 13:56:30 +00:00