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
44162aa2
Commit
44162aa2
authored
Dec 05, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libwine: Don't export the selector functions for the Windows build.
parent
958e73aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
17 deletions
+11
-17
library.h
include/wine/library.h
+10
-2
ldt.c
libs/wine/ldt.c
+1
-4
wine.def
libs/wine/wine.def
+0
-11
No files found.
include/wine/library.h
View file @
44162aa2
...
@@ -93,7 +93,7 @@ extern void *wine_ldt_get_ptr( unsigned short sel, unsigned long offset );
...
@@ -93,7 +93,7 @@ extern void *wine_ldt_get_ptr( unsigned short sel, unsigned long offset );
extern
unsigned
short
wine_ldt_alloc_entries
(
int
count
);
extern
unsigned
short
wine_ldt_alloc_entries
(
int
count
);
extern
unsigned
short
wine_ldt_realloc_entries
(
unsigned
short
sel
,
int
oldcount
,
int
newcount
);
extern
unsigned
short
wine_ldt_realloc_entries
(
unsigned
short
sel
,
int
oldcount
,
int
newcount
);
extern
void
wine_ldt_free_entries
(
unsigned
short
sel
,
int
count
);
extern
void
wine_ldt_free_entries
(
unsigned
short
sel
,
int
count
);
#if
def __i386__
#if
defined(__i386__) && !defined(__MINGW32__) && !defined(_MSC_VER)
extern
unsigned
short
wine_ldt_alloc_fs
(
void
);
extern
unsigned
short
wine_ldt_alloc_fs
(
void
);
extern
void
wine_ldt_init_fs
(
unsigned
short
sel
,
const
LDT_ENTRY
*
entry
);
extern
void
wine_ldt_init_fs
(
unsigned
short
sel
,
const
LDT_ENTRY
*
entry
);
extern
void
wine_ldt_free_fs
(
unsigned
short
sel
);
extern
void
wine_ldt_free_fs
(
unsigned
short
sel
);
...
@@ -178,7 +178,15 @@ static inline int wine_ldt_is_empty( const LDT_ENTRY *ent )
...
@@ -178,7 +178,15 @@ static inline int wine_ldt_is_empty( const LDT_ENTRY *ent )
/* segment register access */
/* segment register access */
#ifdef __i386__
#ifdef __i386__
# ifdef __GNUC__
# ifdef __MINGW32__
# define __DEFINE_GET_SEG(seg) \
static inline unsigned short wine_get_##seg(void); \
static inline unsigned short wine_get_##seg(void) \
{ unsigned short res; __asm__ __volatile__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
# define __DEFINE_SET_SEG(seg) \
static inline void wine_set_##seg(int val); \
static inline void wine_set_##seg(int val) { __asm__("movw %w0,%%" #seg : : "r" (val)); }
# elif defined(__GNUC__)
# define __DEFINE_GET_SEG(seg) \
# define __DEFINE_GET_SEG(seg) \
extern inline unsigned short wine_get_##seg(void); \
extern inline unsigned short wine_get_##seg(void); \
extern inline unsigned short wine_get_##seg(void) \
extern inline unsigned short wine_get_##seg(void) \
...
...
libs/wine/ldt.c
View file @
44162aa2
...
@@ -385,7 +385,7 @@ void wine_ldt_free_entries( unsigned short sel, int count )
...
@@ -385,7 +385,7 @@ void wine_ldt_free_entries( unsigned short sel, int count )
}
}
#if
def __i386__
#if
defined(__i386__) && !defined(__MINGW32__) && !defined(_MSC_VER)
static
int
global_fs_sel
=
-
1
;
/* global selector for %fs shared among all threads */
static
int
global_fs_sel
=
-
1
;
/* global selector for %fs shared among all threads */
...
@@ -477,8 +477,6 @@ void wine_ldt_free_fs( unsigned short sel )
...
@@ -477,8 +477,6 @@ void wine_ldt_free_fs( unsigned short sel )
/***********************************************************************
/***********************************************************************
* selector access functions
* selector access functions
*/
*/
# ifndef _MSC_VER
/* Nothing needs to be done for MS C, it will do with inline versions from the winnt.h */
__ASM_GLOBAL_FUNC
(
wine_get_cs
,
"movw %cs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_cs
,
"movw %cs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_ds
,
"movw %ds,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_ds
,
"movw %ds,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_es
,
"movw %es,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_es
,
"movw %es,%ax
\n\t
ret"
)
...
@@ -487,6 +485,5 @@ __ASM_GLOBAL_FUNC( wine_get_gs, "movw %gs,%ax\n\tret" )
...
@@ -487,6 +485,5 @@ __ASM_GLOBAL_FUNC( wine_get_gs, "movw %gs,%ax\n\tret" )
__ASM_GLOBAL_FUNC
(
wine_get_ss
,
"movw %ss,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_get_ss
,
"movw %ss,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_set_fs
,
"movl 4(%esp),%eax
\n\t
movw %ax,%fs
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_set_fs
,
"movl 4(%esp),%eax
\n\t
movw %ax,%fs
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_set_gs
,
"movl 4(%esp),%eax
\n\t
movw %ax,%gs
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
wine_set_gs
,
"movl 4(%esp),%eax
\n\t
movw %ax,%gs
\n\t
ret"
)
# endif
/* defined(_MSC_VER) */
#endif
/* __i386__ */
#endif
/* __i386__ */
libs/wine/wine.def
View file @
44162aa2
...
@@ -79,28 +79,19 @@ EXPORTS
...
@@ -79,28 +79,19 @@ EXPORTS
wine_get_build_dir
wine_get_build_dir
wine_get_build_id
wine_get_build_id
wine_get_config_dir
wine_get_config_dir
wine_get_cs
wine_get_data_dir
wine_get_data_dir
wine_get_ds
wine_get_es
wine_get_fs
wine_get_gs
wine_get_server_dir
wine_get_server_dir
wine_get_sortkey
wine_get_sortkey
wine_get_ss
wine_get_user_name
wine_get_user_name
wine_get_version
wine_get_version
wine_init
wine_init
wine_init_argv0_path
wine_init_argv0_path
wine_is_dbcs_leadbyte
wine_is_dbcs_leadbyte
wine_ldt_alloc_entries
wine_ldt_alloc_entries
wine_ldt_alloc_fs
wine_ldt_copy
wine_ldt_copy
wine_ldt_free_entries
wine_ldt_free_entries
wine_ldt_free_fs
wine_ldt_get_entry
wine_ldt_get_entry
wine_ldt_get_ptr
wine_ldt_get_ptr
wine_ldt_init_fs
wine_ldt_init_locking
wine_ldt_init_locking
wine_ldt_is_system
wine_ldt_is_system
wine_ldt_realloc_entries
wine_ldt_realloc_entries
...
@@ -111,8 +102,6 @@ EXPORTS
...
@@ -111,8 +102,6 @@ EXPORTS
wine_mmap_remove_reserved_area
wine_mmap_remove_reserved_area
wine_pthread_get_functions
wine_pthread_get_functions
wine_pthread_set_functions
wine_pthread_set_functions
wine_set_fs
wine_set_gs
wine_switch_to_stack
wine_switch_to_stack
wine_utf8_mbstowcs
wine_utf8_mbstowcs
wine_utf8_wcstombs
wine_utf8_wcstombs
...
...
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