Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
6e0b8800
Commit
6e0b8800
authored
Nov 10, 2013
by
André Hentschel
Committed by
Alexandre Julliard
Nov 11, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineboot: Add environment registry keys on ARM.
parent
eef5e45e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
wineboot.c
programs/wineboot/wineboot.c
+14
-2
No files found.
programs/wineboot/wineboot.c
View file @
6e0b8800
...
...
@@ -276,6 +276,7 @@ static void create_environment_registry_keys( void )
static
const
WCHAR
NumProcW
[]
=
{
'N'
,
'U'
,
'M'
,
'B'
,
'E'
,
'R'
,
'_'
,
'O'
,
'F'
,
'_'
,
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'S'
,
0
};
static
const
WCHAR
ProcArchW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'A'
,
'R'
,
'C'
,
'H'
,
'I'
,
'T'
,
'E'
,
'C'
,
'T'
,
'U'
,
'R'
,
'E'
,
0
};
static
const
WCHAR
x86W
[]
=
{
'x'
,
'8'
,
'6'
,
0
};
static
const
WCHAR
armW
[]
=
{
'A'
,
'R'
,
'M'
,
0
};
static
const
WCHAR
IA64W
[]
=
{
'I'
,
'A'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
AMD64W
[]
=
{
'A'
,
'M'
,
'D'
,
'6'
,
'4'
,
0
};
static
const
WCHAR
ProcIdW
[]
=
{
'P'
,
'R'
,
'O'
,
'C'
,
'E'
,
'S'
,
'S'
,
'O'
,
'R'
,
'_'
,
'I'
,
'D'
,
'E'
,
'N'
,
'T'
,
'I'
,
'F'
,
'I'
,
'E'
,
'R'
,
0
};
...
...
@@ -285,6 +286,8 @@ static void create_environment_registry_keys( void )
static
const
WCHAR
Percent04XW
[]
=
{
'%'
,
'0'
,
'4'
,
'x'
,
0
};
static
const
WCHAR
IntelCpuDescrW
[]
=
{
'%'
,
's'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'%'
,
'd'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'd'
,
' '
,
'S'
,
't'
,
'e'
,
'p'
,
'p'
,
'i'
,
'n'
,
'g'
,
' '
,
'%'
,
'd'
,
','
,
' '
,
'G'
,
'e'
,
'n'
,
'u'
,
'i'
,
'n'
,
'e'
,
'I'
,
'n'
,
't'
,
'e'
,
'l'
,
0
};
static
const
WCHAR
ARMCpuDescrW
[]
=
{
'A'
,
'R'
,
'M'
,
' '
,
'F'
,
'a'
,
'm'
,
'i'
,
'l'
,
'y'
,
' '
,
'7'
,
' '
,
'M'
,
'o'
,
'd'
,
'e'
,
'l'
,
' '
,
'%'
,
'X'
,
' '
,
'R'
,
'e'
,
'v'
,
'i'
,
's'
,
'i'
,
'o'
,
'n'
,
' '
,
'%'
,
'd'
,
0
};
HKEY
env_key
;
SYSTEM_CPU_INFORMATION
sci
;
...
...
@@ -301,14 +304,23 @@ static void create_environment_registry_keys( void )
switch
(
sci
.
Architecture
)
{
case
PROCESSOR_ARCHITECTURE_AMD64
:
arch
=
AMD64W
;
break
;
case
PROCESSOR_ARCHITECTURE_ARM
:
arch
=
armW
;
break
;
case
PROCESSOR_ARCHITECTURE_IA64
:
arch
=
IA64W
;
break
;
default:
case
PROCESSOR_ARCHITECTURE_INTEL
:
arch
=
x86W
;
break
;
}
set_reg_value
(
env_key
,
ProcArchW
,
arch
);
/* TODO: currently hardcoded Intel, add different processors */
sprintfW
(
buffer
,
IntelCpuDescrW
,
arch
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
switch
(
sci
.
Architecture
)
{
case
PROCESSOR_ARCHITECTURE_ARM
:
sprintfW
(
buffer
,
ARMCpuDescrW
,
sci
.
Level
,
sci
.
Revision
);
break
;
default:
case
PROCESSOR_ARCHITECTURE_INTEL
:
sprintfW
(
buffer
,
IntelCpuDescrW
,
arch
,
sci
.
Level
,
HIBYTE
(
sci
.
Revision
),
LOBYTE
(
sci
.
Revision
)
);
break
;
}
set_reg_value
(
env_key
,
ProcIdW
,
buffer
);
sprintfW
(
buffer
,
PercentDW
,
sci
.
Level
);
...
...
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