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
5b1fc819
Commit
5b1fc819
authored
Oct 28, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Hardcode address space limits for ARM platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
2d419b7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+1
-1
virtual.c
dlls/ntdll/virtual.c
+15
-1
No files found.
dlls/ntdll/ntdll_misc.h
View file @
5b1fc819
...
...
@@ -34,7 +34,7 @@
#define MAX_DOS_DRIVES 26
#if defined(__i386__) || defined(__x86_64__)
#if defined(__i386__) || defined(__x86_64__)
|| defined(__arm__) || defined(__aarch64__)
static
const
UINT_PTR
page_size
=
0x1000
;
#else
extern
UINT_PTR
page_size
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/virtual.c
View file @
5b1fc819
...
...
@@ -134,6 +134,20 @@ static void *address_space_limit = (void *)0x7fffffff0000;
static
void
*
user_space_limit
=
(
void
*
)
0x7fffffff0000
;
static
void
*
working_set_limit
=
(
void
*
)
0x7fffffff0000
;
static
void
*
address_space_start
=
(
void
*
)
0x10000
;
#elif defined(__arm__)
static
const
UINT
page_shift
=
12
;
static
const
UINT_PTR
page_mask
=
0xfff
;
static
void
*
address_space_limit
=
(
void
*
)
0xc0000000
;
static
void
*
user_space_limit
=
(
void
*
)
0x7fff0000
;
static
void
*
working_set_limit
=
(
void
*
)
0x7fff0000
;
static
void
*
address_space_start
=
(
void
*
)
0x10000
;
#elif defined(__aarch64__)
static
const
UINT
page_shift
=
12
;
static
const
UINT_PTR
page_mask
=
0xfff
;
static
void
*
address_space_limit
=
(
void
*
)
0xffffffff0000
;
static
void
*
user_space_limit
=
(
void
*
)
0x7fffffff0000
;
static
void
*
working_set_limit
=
(
void
*
)
0x7fffffff0000
;
static
void
*
address_space_start
=
(
void
*
)
0x10000
;
#else
UINT_PTR
page_size
=
0
;
static
UINT
page_shift
;
...
...
@@ -1828,7 +1842,7 @@ void virtual_init(void)
struct
alloc_virtual_heap
alloc_views
;
size_t
size
;
#if !defined(__i386__) && !defined(__x86_64__)
#if !defined(__i386__) && !defined(__x86_64__)
&& !defined(__arm__) && !defined(__aarch64__)
page_size
=
sysconf
(
_SC_PAGESIZE
);
page_mask
=
page_size
-
1
;
/* Make sure we have a power of 2 */
...
...
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