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
f1fcf80a
Commit
f1fcf80a
authored
Aug 25, 2007
by
Tijl Coosemans
Committed by
Alexandre Julliard
Aug 27, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Use GDT entry for %fs segment on FreeBSD.
parent
9f5c69c9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
ldt.c
libs/wine/ldt.c
+5
-3
No files found.
libs/wine/ldt.c
View file @
f1fcf80a
...
...
@@ -112,9 +112,7 @@ static inline int set_thread_area( struct modify_ldt_s *ptr )
#if defined(__NetBSD__) || defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__OpenBSD__)
#include <machine/segments.h>
extern
int
i386_get_ldt
(
int
,
union
descriptor
*
,
int
);
extern
int
i386_set_ldt
(
int
,
union
descriptor
*
,
int
);
#include <machine/sysarch.h>
#endif
/* __NetBSD__ || __FreeBSD__ || __OpenBSD__ */
#ifdef __APPLE__
...
...
@@ -417,6 +415,8 @@ unsigned short wine_ldt_alloc_fs(void)
if
(
errno
!=
ENOSYS
)
perror
(
"set_thread_area"
);
}
else
global_fs_sel
=
(
ldt_info
.
entry_number
<<
3
)
|
3
;
#elif defined(__FreeBSD__)
global_fs_sel
=
GSEL
(
GUFS_SEL
,
SEL_UPL
);
#endif
}
if
(
global_fs_sel
>
0
)
return
global_fs_sel
;
...
...
@@ -443,6 +443,8 @@ void wine_ldt_init_fs( unsigned short sel, const LDT_ENTRY *entry )
ldt_info
.
entry_number
=
sel
>>
3
;
fill_modify_ldt_struct
(
&
ldt_info
,
entry
);
if
((
ret
=
set_thread_area
(
&
ldt_info
)
<
0
))
perror
(
"set_thread_area"
);
#elif defined(__FreeBSD__)
i386_set_fsbase
(
wine_ldt_get_base
(
entry
));
#endif
}
else
/* LDT selector */
...
...
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