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
48d150dc
Commit
48d150dc
authored
May 21, 2015
by
André Hentschel
Committed by
Alexandre Julliard
May 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Add hardware registry keys on ARM64.
parent
b4a46dbc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wineboot.c
programs/wineboot/wineboot.c
+6
-2
No files found.
programs/wineboot/wineboot.c
View file @
48d150dc
...
...
@@ -185,7 +185,7 @@ static void create_hardware_registry_keys(void)
static
const
WCHAR
PercentDW
[]
=
{
'%'
,
'd'
,
0
};
static
const
WCHAR
IntelCpuDescrW
[]
=
{
'x'
,
'8'
,
'6'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'%'
,
'd'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'd'
,
' '
,
'S'
,
't'
,
'e'
,
'p'
,
'p'
,
'i'
,
'n'
,
'g'
,
' '
,
'%'
,
'd'
,
0
};
static
const
WCHAR
ARMCpuDescrW
[]
=
{
'A'
,
'R'
,
'M'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'
7'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'X
'
,
static
const
WCHAR
ARMCpuDescrW
[]
=
{
'A'
,
'R'
,
'M'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'
%'
,
'd'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'd
'
,
' '
,
'R'
,
'e'
,
'v'
,
'i'
,
's'
,
'i'
,
'o'
,
'n'
,
' '
,
'%'
,
'd'
,
0
};
static
const
WCHAR
IntelCpuStringW
[]
=
{
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
'('
,
'R'
,
')'
,
' '
,
'P'
,
'e'
,
'n'
,
't'
,
'i'
,
'u'
,
'm'
,
'('
,
'R'
,
')'
,
' '
,
'4'
,
' '
,
'C'
,
'P'
,
'U'
,
' '
,
'2'
,
'.'
,
'4'
,
'0'
,
'G'
,
'H'
,
'z'
,
0
};
...
...
@@ -208,7 +208,8 @@ static void create_hardware_registry_keys(void)
switch
(
sci
.
Architecture
)
{
case
PROCESSOR_ARCHITECTURE_ARM
:
sprintfW
(
idW
,
ARMCpuDescrW
,
sci
.
Level
,
sci
.
Revision
);
case
PROCESSOR_ARCHITECTURE_ARM64
:
sprintfW
(
idW
,
ARMCpuDescrW
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
break
;
default:
case
PROCESSOR_ARCHITECTURE_INTEL
:
...
...
@@ -226,6 +227,7 @@ static void create_hardware_registry_keys(void)
switch
(
sci
.
Architecture
)
{
case
PROCESSOR_ARCHITECTURE_ARM
:
case
PROCESSOR_ARCHITECTURE_ARM64
:
set_reg_value
(
system_key
,
IdentifierW
,
ARMSysidW
);
break
;
default:
...
...
@@ -235,6 +237,7 @@ static void create_hardware_registry_keys(void)
}
if
(
sci
.
Architecture
==
PROCESSOR_ARCHITECTURE_ARM
||
sci
.
Architecture
==
PROCESSOR_ARCHITECTURE_ARM64
||
RegCreateKeyExW
(
system_key
,
fpuW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
fpu_key
,
NULL
))
fpu_key
=
0
;
...
...
@@ -259,6 +262,7 @@ static void create_hardware_registry_keys(void)
RegCloseKey
(
hkey
);
}
if
(
sci
.
Architecture
!=
PROCESSOR_ARCHITECTURE_ARM
&&
sci
.
Architecture
!=
PROCESSOR_ARCHITECTURE_ARM64
&&
!
RegCreateKeyExW
(
fpu_key
,
numW
,
0
,
NULL
,
REG_OPTION_VOLATILE
,
KEY_ALL_ACCESS
,
NULL
,
&
hkey
,
NULL
))
{
...
...
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