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
b2131923
Commit
b2131923
authored
Jan 15, 2011
by
Austin English
Committed by
Alexandre Julliard
Jan 17, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Add missing checks for FreeBSD_kernel.
parent
831338df
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ldt.c
libs/wine/ldt.c
+1
-1
mmap.c
libs/wine/mmap.c
+1
-1
No files found.
libs/wine/ldt.c
View file @
b2131923
...
@@ -412,7 +412,7 @@ void wine_ldt_init_fs( unsigned short sel, const LDT_ENTRY *entry )
...
@@ -412,7 +412,7 @@ void wine_ldt_init_fs( unsigned short sel, const LDT_ENTRY *entry )
ldt_info
.
entry_number
=
sel
>>
3
;
ldt_info
.
entry_number
=
sel
>>
3
;
fill_modify_ldt_struct
(
&
ldt_info
,
entry
);
fill_modify_ldt_struct
(
&
ldt_info
,
entry
);
if
((
ret
=
set_thread_area
(
&
ldt_info
)
<
0
))
perror
(
"set_thread_area"
);
if
((
ret
=
set_thread_area
(
&
ldt_info
)
<
0
))
perror
(
"set_thread_area"
);
#elif defined(__FreeBSD__)
#elif defined(__FreeBSD__)
|| defined (__FreeBSD_kernel__)
i386_set_fsbase
(
wine_ldt_get_base
(
entry
));
i386_set_fsbase
(
wine_ldt_get_base
(
entry
));
#endif
#endif
}
}
...
...
libs/wine/mmap.c
View file @
b2131923
...
@@ -372,7 +372,7 @@ void mmap_init(void)
...
@@ -372,7 +372,7 @@ void mmap_init(void)
char
*
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
-
(
granularity_mask
+
1
);
char
*
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
-
(
granularity_mask
+
1
);
if
(
base
>
user_space_limit
)
reserve_area
(
user_space_limit
,
base
);
if
(
base
>
user_space_limit
)
reserve_area
(
user_space_limit
,
base
);
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
+
(
granularity_mask
+
1
);
base
=
stack_ptr
-
((
unsigned
int
)
stack_ptr
&
granularity_mask
)
+
(
granularity_mask
+
1
);
#if defined(linux) || defined(__FreeBSD__)
#if defined(linux) || defined(__FreeBSD__)
|| defined (__FreeBSD_kernel__)
/* Heuristic: assume the stack is near the end of the address */
/* Heuristic: assume the stack is near the end of the address */
/* space, this avoids a lot of futile allocation attempts */
/* space, this avoids a lot of futile allocation attempts */
end
=
(
char
*
)(((
unsigned
long
)
base
+
0x0fffffff
)
&
0xf0000000
);
end
=
(
char
*
)(((
unsigned
long
)
base
+
0x0fffffff
)
&
0xf0000000
);
...
...
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