Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Plan
Wiki
Bugzilla
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
wine
wine
Commits
a8c22722
Commit
a8c22722
authored
3 weeks ago
by
Alexandre Julliard
Browse files
Options
Downloads
Patches
Plain Diff
wineboot: Fetch the list of supported machines once at startup.
parent
5aa74944
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
programs/wineboot/wineboot.c
+23
-28
23 additions, 28 deletions
programs/wineboot/wineboot.c
with
23 additions
and
28 deletions
programs/wineboot/wineboot.c
+
23
−
28
View file @
a8c22722
...
...
@@ -88,6 +88,7 @@ extern void kill_processes( BOOL kill_desktop );
static
WCHAR
windowsdir
[
MAX_PATH
];
static
const
BOOL
is_64bit
=
sizeof
(
void
*
)
>
sizeof
(
int
);
static
SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION
machines
[
8
];
/* retrieve the path to the wine.inf file */
static
WCHAR
*
get_wine_inf_path
(
void
)
...
...
@@ -385,7 +386,6 @@ static UINT64 read_tsc_frequency(void)
static
void
create_user_shared_data
(
void
)
{
SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION
machines
[
8
];
struct
_KUSER_SHARED_DATA
*
data
;
RTL_OSVERSIONINFOEXW
version
;
SYSTEM_CPU_INFORMATION
sci
;
...
...
@@ -396,7 +396,6 @@ static void create_user_shared_data(void)
NTSTATUS
status
;
HANDLE
handle
;
ULONG
i
;
HANDLE
process
=
0
;
InitializeObjectAttributes
(
&
attr
,
&
name
,
OBJ_OPENIF
,
NULL
,
NULL
);
if
((
status
=
NtOpenSection
(
&
handle
,
SECTION_ALL_ACCESS
,
&
attr
)))
...
...
@@ -489,29 +488,25 @@ static void create_user_shared_data(void)
features
[
PF_NX_ENABLED
]
=
TRUE
;
features
[
PF_FASTFAIL_AVAILABLE
]
=
TRUE
;
/* add features for other architectures supported by wow64 */
if
(
!
NtQuerySystemInformationEx
(
SystemSupportedProcessorArchitectures
,
&
process
,
sizeof
(
process
),
machines
,
sizeof
(
machines
),
NULL
))
for
(
i
=
0
;
machines
[
i
].
Machine
;
i
++
)
{
for
(
i
=
0
;
machines
[
i
].
Machine
;
i
++
)
switch
(
machines
[
i
].
Machine
)
{
switch
(
machines
[
i
].
Machine
)
{
case
IMAGE_FILE_MACHINE_ARMNT
:
features
[
PF_ARM_VFP_32_REGISTERS_AVAILABLE
]
=
TRUE
;
features
[
PF_ARM_NEON_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
break
;
case
IMAGE_FILE_MACHINE_I386
:
features
[
PF_MMX_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
TRUE
;
features
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE3_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_RDTSCP_INSTRUCTION_AVAILABLE
]
=
TRUE
;
features
[
PF_SSSE3_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE4_1_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE4_2_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
break
;
}
case
IMAGE_FILE_MACHINE_ARMNT
:
features
[
PF_ARM_VFP_32_REGISTERS_AVAILABLE
]
=
TRUE
;
features
[
PF_ARM_NEON_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
break
;
case
IMAGE_FILE_MACHINE_I386
:
features
[
PF_MMX_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_XMMI_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_RDTSC_INSTRUCTION_AVAILABLE
]
=
TRUE
;
features
[
PF_XMMI64_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE3_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_RDTSCP_INSTRUCTION_AVAILABLE
]
=
TRUE
;
features
[
PF_SSSE3_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE4_1_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
features
[
PF_SSE4_2_INSTRUCTIONS_AVAILABLE
]
=
TRUE
;
break
;
}
}
break
;
...
...
@@ -1677,13 +1672,9 @@ static void update_wineprefix( BOOL force )
if
(
update_timestamp
(
config_dir
,
st
.
st_mtime
)
||
force
)
{
SYSTEM_SUPPORTED_PROCESSOR_ARCHITECTURES_INFORMATION
machines
[
8
];
HANDLE
process
=
0
;
HANDLE
process
;
DWORD
count
=
0
;
if
(
NtQuerySystemInformationEx
(
SystemSupportedProcessorArchitectures
,
&
process
,
sizeof
(
process
),
machines
,
sizeof
(
machines
),
NULL
))
machines
[
0
].
Machine
=
0
;
if
((
process
=
start_rundll32
(
inf_path
,
L"PreInstall"
,
IMAGE_FILE_MACHINE_TARGET_HOST
)))
{
HWND
hwnd
=
show_wait_window
();
...
...
@@ -1820,6 +1811,7 @@ int __cdecl main( int argc, char *argv[] )
HANDLE
event
;
OBJECT_ATTRIBUTES
attr
;
UNICODE_STRING
nameW
=
RTL_CONSTANT_STRING
(
L"
\\
KernelObjects
\\
__wineboot_event"
);
HANDLE
process
=
0
;
BOOL
is_wow64
;
end_session
=
force
=
init
=
kill
=
restart
=
shutdown
=
update
=
FALSE
;
...
...
@@ -1898,6 +1890,9 @@ int __cdecl main( int argc, char *argv[] )
if
(
shutdown
)
return
0
;
if
(
NtQuerySystemInformationEx
(
SystemSupportedProcessorArchitectures
,
&
process
,
sizeof
(
process
),
machines
,
sizeof
(
machines
),
NULL
))
machines
[
0
].
Machine
=
0
;
/* create event to be inherited by services.exe */
InitializeObjectAttributes
(
&
attr
,
&
nameW
,
OBJ_OPENIF
|
OBJ_INHERIT
,
0
,
NULL
);
NtCreateEvent
(
&
event
,
EVENT_ALL_ACCESS
,
&
attr
,
NotificationEvent
,
0
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment