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
6f38489f
Commit
6f38489f
authored
Apr 19, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
loader: Attempt to detect broken vmsplit setups.
parent
dd174c54
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
glibc.c
loader/glibc.c
+17
-0
No files found.
loader/glibc.c
View file @
6f38489f
...
...
@@ -21,8 +21,12 @@
#include "config.h"
#include "wine/port.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#endif
...
...
@@ -81,6 +85,18 @@ static const char *build_new_path( const char *path, const char *name )
return
ret
;
}
static
void
check_vmsplit
(
void
*
stack
)
{
if
(
stack
<
(
void
*
)
0x80000000
)
{
/* if the stack is below 0x80000000, assume we can safely try a munmap there */
if
(
munmap
(
(
void
*
)
0x80000000
,
1
)
==
-
1
&&
errno
==
EINVAL
)
fprintf
(
stderr
,
"Warning: memory above 0x80000000 doesn't seem to be accessible.
\n
"
"Wine requires a 3G/1G user/kernel memory split to work properly.
\n
"
);
}
}
/**********************************************************************
* main
*/
...
...
@@ -103,6 +119,7 @@ int main( int argc, char *argv[] )
loader
=
new_name
;
}
check_vmsplit
(
&
argc
);
wine_exec_wine_binary
(
NULL
,
argv
,
loader
);
fprintf
(
stderr
,
"wine: could not exec %s
\n
"
,
threads
);
exit
(
1
);
...
...
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