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
b61d4255
Commit
b61d4255
authored
Jan 24, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement RtlIsProcessorFeaturePresent().
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7f4e5b1e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
cpu.c
dlls/kernel32/cpu.c
+2
-12
nt.c
dlls/ntdll/nt.c
+8
-0
ntdll.spec
dlls/ntdll/ntdll.spec
+1
-0
winternl.h
include/winternl.h
+1
-0
No files found.
dlls/kernel32/cpu.c
View file @
b61d4255
...
...
@@ -46,8 +46,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
reg
);
#define SHARED_DATA ((KSHARED_USER_DATA*)0x7ffe0000)
/****************************************************************************
* QueryPerformanceCounter (KERNEL32.@)
*
...
...
@@ -200,18 +198,10 @@ VOID WINAPI GetNativeSystemInfo(
* IsProcessorFeaturePresent [KERNEL32.@]
*
* Determine if the cpu supports a given feature.
*
* RETURNS
* TRUE, If the processor supports feature,
* FALSE otherwise.
*/
BOOL
WINAPI
IsProcessorFeaturePresent
(
DWORD
feature
/* [in] Feature number, (PF_ constants from "winnt.h") */
)
BOOL
WINAPI
IsProcessorFeaturePresent
(
DWORD
feature
)
{
if
(
feature
<
PROCESSOR_FEATURE_MAX
)
return
SHARED_DATA
->
ProcessorFeatures
[
feature
];
else
return
FALSE
;
return
RtlIsProcessorFeaturePresent
(
feature
);
}
/***********************************************************************
...
...
dlls/ntdll/nt.c
View file @
b61d4255
...
...
@@ -2230,6 +2230,14 @@ static NTSTATUS get_firmware_info(SYSTEM_FIRMWARE_TABLE_INFORMATION *sfti, ULONG
#endif
/***********************************************************************
* RtlIsProcessorFeaturePresent [NTDLL.@]
*/
BOOLEAN
WINAPI
RtlIsProcessorFeaturePresent
(
UINT
feature
)
{
return
feature
<
PROCESSOR_FEATURE_MAX
&&
user_shared_data
->
ProcessorFeatures
[
feature
];
}
/******************************************************************************
* NtQuerySystemInformation [NTDLL.@]
* ZwQuerySystemInformation [NTDLL.@]
...
...
dlls/ntdll/ntdll.spec
View file @
b61d4255
...
...
@@ -756,6 +756,7 @@
@ stub RtlIsGenericTableEmpty
# @ stub RtlIsGenericTableEmptyAvl
@ stdcall RtlIsNameLegalDOS8Dot3(ptr ptr ptr)
@ stdcall RtlIsProcessorFeaturePresent(long)
# @ stub RtlIsRangeAvailable
@ stdcall RtlIsTextUnicode(ptr long ptr)
# @ stub RtlIsThreadWithinLoaderCallout
...
...
include/winternl.h
View file @
b61d4255
...
...
@@ -2741,6 +2741,7 @@ NTSYSAPI BOOL WINAPI RtlIsCriticalSectionLocked(RTL_CRITICAL_SECTION *);
NTSYSAPI
BOOL
WINAPI
RtlIsCriticalSectionLockedByThread
(
RTL_CRITICAL_SECTION
*
);
NTSYSAPI
ULONG
WINAPI
RtlIsDosDeviceName_U
(
PCWSTR
);
NTSYSAPI
BOOLEAN
WINAPI
RtlIsNameLegalDOS8Dot3
(
const
UNICODE_STRING
*
,
POEM_STRING
,
PBOOLEAN
);
NTSYSAPI
BOOLEAN
WINAPI
RtlIsProcessorFeaturePresent
(
UINT
);
NTSYSAPI
BOOLEAN
WINAPI
RtlIsTextUnicode
(
LPCVOID
,
INT
,
INT
*
);
NTSYSAPI
BOOLEAN
WINAPI
RtlIsValidHandle
(
const
RTL_HANDLE_TABLE
*
,
const
RTL_HANDLE
*
);
NTSYSAPI
BOOLEAN
WINAPI
RtlIsValidIndexHandle
(
const
RTL_HANDLE_TABLE
*
,
ULONG
Index
,
RTL_HANDLE
**
);
...
...
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