Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
e57e8856
Commit
e57e8856
authored
Oct 19, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Export the extended context functions on all platforms.
parent
f13a6dee
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
18 deletions
+27
-18
kernel32.spec
dlls/kernel32/kernel32.spec
+3
-3
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+3
-3
memory.c
dlls/kernelbase/memory.c
+21
-12
No files found.
dlls/kernel32/kernel32.spec
View file @
e57e8856
...
...
@@ -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)
...
...
dlls/kernelbase/kernelbase.spec
View file @
e57e8856
...
...
@@ -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)
...
...
dlls/kernelbase/memory.c
View file @
e57e8856
...
...
@@ -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.@)
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment