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
67949d96
Commit
67949d96
authored
Jun 22, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Make the client cpu constant global.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
9e3893cc
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
16 deletions
+12
-16
process.c
dlls/ntdll/unix/process.c
+2
-4
server.c
dlls/ntdll/unix/server.c
+0
-12
unix_private.h
dlls/ntdll/unix/unix_private.h
+10
-0
No files found.
dlls/ntdll/unix/process.c
View file @
67949d96
...
...
@@ -417,10 +417,8 @@ static NTSTATUS get_pe_file_info( UNICODE_STRING *path, HANDLE *handle, pe_image
/* assume current arch */
#if defined(__i386__) || defined(__x86_64__)
info
->
cpu
=
is_64bit
?
CPU_x86_64
:
CPU_x86
;
#elif defined(__arm__)
info
->
cpu
=
CPU_ARM
;
#elif defined(__aarch64__)
info
->
cpu
=
CPU_ARM64
;
#else
info
->
cpu
=
client_cpu
;
#endif
*
handle
=
0
;
return
STATUS_SUCCESS
;
...
...
dlls/ntdll/unix/server.c
View file @
67949d96
...
...
@@ -100,18 +100,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(server);
#define SOCKETNAME "socket"
/* name of the socket file */
#define LOCKNAME "lock"
/* name of the lock file */
#ifdef __i386__
static
const
enum
cpu_type
client_cpu
=
CPU_x86
;
#elif defined(__x86_64__)
static
const
enum
cpu_type
client_cpu
=
CPU_x86_64
;
#elif defined(__arm__)
static
const
enum
cpu_type
client_cpu
=
CPU_ARM
;
#elif defined(__aarch64__)
static
const
enum
cpu_type
client_cpu
=
CPU_ARM64
;
#else
#error Unsupported CPU
#endif
static
const
BOOL
is_win64
=
(
sizeof
(
void
*
)
>
sizeof
(
int
));
static
const
char
*
server_dir
;
...
...
dlls/ntdll/unix/unix_private.h
View file @
67949d96
...
...
@@ -28,6 +28,16 @@
#define InterlockedCompareExchange64(dest,xchg,cmp) RtlInterlockedCompareExchange64(dest,xchg,cmp)
#endif
#ifdef __i386__
static
const
enum
cpu_type
client_cpu
=
CPU_x86
;
#elif defined(__x86_64__)
static
const
enum
cpu_type
client_cpu
=
CPU_x86_64
;
#elif defined(__arm__)
static
const
enum
cpu_type
client_cpu
=
CPU_ARM
;
#elif defined(__aarch64__)
static
const
enum
cpu_type
client_cpu
=
CPU_ARM64
;
#endif
struct
debug_info
{
unsigned
int
str_pos
;
/* current position in strings buffer */
...
...
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