Commit e57e8856 authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Export the extended context functions on all platforms.

parent f13a6dee
......@@ -256,7 +256,7 @@
@ stdcall -import ConvertThreadToFiber(ptr)
@ stdcall -import ConvertThreadToFiberEx(ptr long)
@ stdcall ConvertToGlobalHandle(long)
@ stdcall -import -arch=i386,x86_64 CopyContext(ptr long ptr)
@ stdcall -import CopyContext(ptr long ptr)
@ stdcall CopyFileA(str str long)
@ stdcall CopyFileExA (str str ptr ptr ptr long)
@ stdcall -import CopyFileExW(wstr wstr ptr ptr ptr long)
......@@ -962,8 +962,8 @@
@ stdcall InitOnceExecuteOnce(ptr ptr ptr ptr) kernelbase.InitOnceExecuteOnce
@ stdcall InitOnceInitialize(ptr) NTDLL.RtlRunOnceInitialize
@ stdcall InitializeConditionVariable(ptr) NTDLL.RtlInitializeConditionVariable
@ stdcall -import -arch=i386,x86_64 InitializeContext(ptr long ptr ptr)
@ stdcall -import -arch=i386,x86_64 InitializeContext2(ptr long ptr ptr int64)
@ stdcall -import InitializeContext(ptr long ptr ptr)
@ stdcall -import InitializeContext2(ptr long ptr ptr int64)
@ stdcall InitializeCriticalSection(ptr) NTDLL.RtlInitializeCriticalSection
@ stdcall -import InitializeCriticalSectionAndSpinCount(ptr long)
@ stdcall -import InitializeCriticalSectionEx(ptr long long)
......
......@@ -167,7 +167,7 @@
@ stdcall ConvertThreadToFiber(ptr)
@ stdcall ConvertThreadToFiberEx(ptr long)
@ stdcall ConvertToAutoInheritPrivateObjectSecurity(ptr ptr ptr ptr long ptr)
@ stdcall -arch=i386,x86_64 CopyContext(ptr long ptr)
@ stdcall CopyContext(ptr long ptr)
# @ stub CopyFile2
@ stdcall CopyFileExW(wstr wstr ptr ptr ptr long)
@ stdcall CopyFileW(wstr wstr long)
......@@ -831,8 +831,8 @@
@ stdcall InitOnceInitialize(ptr) ntdll.RtlRunOnceInitialize
@ stdcall InitializeAcl(ptr long long)
@ stdcall InitializeConditionVariable(ptr) ntdll.RtlInitializeConditionVariable
@ stdcall -arch=i386,x86_64 InitializeContext(ptr long ptr ptr)
@ stdcall -arch=i386,x86_64 InitializeContext2(ptr long ptr ptr int64)
@ stdcall InitializeContext(ptr long ptr ptr)
@ stdcall InitializeContext2(ptr long ptr ptr int64)
@ stdcall InitializeCriticalSection(ptr) ntdll.RtlInitializeCriticalSection
@ stdcall InitializeCriticalSectionAndSpinCount(ptr long)
@ stdcall InitializeCriticalSectionEx(ptr long long)
......
......@@ -1453,17 +1453,6 @@ BOOL WINAPI DECLSPEC_HOTPATCH QueryVirtualMemoryInformation( HANDLE process, con
***********************************************************************/
#if defined(__i386__) || defined(__x86_64__)
/***********************************************************************
* GetEnabledXStateFeatures (kernelbase.@)
*/
DWORD64 WINAPI GetEnabledXStateFeatures(void)
{
TRACE( "\n" );
return RtlGetEnabledExtendedFeatures( ~(ULONG64)0 );
}
/***********************************************************************
* InitializeContext2 (kernelbase.@)
*/
......@@ -1519,10 +1508,19 @@ BOOL WINAPI CopyContext( CONTEXT *dst, DWORD context_flags, CONTEXT *src )
{
return set_ntstatus( RtlCopyContext( dst, context_flags, src ));
}
#endif
#if defined(__x86_64__)
/***********************************************************************
* GetEnabledXStateFeatures (kernelbase.@)
*/
DWORD64 WINAPI GetEnabledXStateFeatures(void)
{
TRACE( "\n" );
return RtlGetEnabledExtendedFeatures( ~(ULONG64)0 );
}
/***********************************************************************
* LocateXStateFeature (kernelbase.@)
*/
......@@ -1583,7 +1581,18 @@ BOOL WINAPI GetXStateFeaturesMask( CONTEXT *context, DWORD64 *feature_mask )
return TRUE;
}
#elif defined(__i386__)
/***********************************************************************
* GetEnabledXStateFeatures (kernelbase.@)
*/
DWORD64 WINAPI GetEnabledXStateFeatures(void)
{
TRACE( "\n" );
return RtlGetEnabledExtendedFeatures( ~(ULONG64)0 );
}
/***********************************************************************
* LocateXStateFeature (kernelbase.@)
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment