Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jason Beetham
wine
Commits
ea4f831d
Commit
ea4f831d
authored
25 years ago
by
Patrik Stridvall
Committed by
Alexandre Julliard
25 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed some Solaris specific assembler problems.
parent
ba929411
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/selectors.h
+1
-1
1 addition, 1 deletion
include/selectors.h
memory/selector.c
+8
-8
8 additions, 8 deletions
memory/selector.c
with
9 additions
and
9 deletions
include/selectors.h
+
1
−
1
View file @
ea4f831d
...
...
@@ -23,7 +23,7 @@ extern void SELECTOR_FreeBlock( WORD sel, WORD count );
extern inline unsigned short __get_##seg(void) \
{ unsigned short res; __asm__("movw %%" #seg ",%w0" : "=r"(res)); return res; }
# define __DEFINE_SET_SEG(seg) \
extern inline void __set_##seg(int val) { __asm__("mov
l
%0,%%" #seg : : "r" (val)); }
extern inline void __set_##seg(int val) { __asm__("mov
w
%
w
0,%%" #seg : : "r" (val)); }
# else
/* __GNUC__ */
# define __DEFINE_GET_SEG(seg) extern unsigned short __get_##seg(void);
# define __DEFINE_SET_SEG(seg) extern void __set_##seg(unsigned int);
...
...
This diff is collapsed.
Click to expand it.
memory/selector.c
+
8
−
8
View file @
ea4f831d
...
...
@@ -820,12 +820,12 @@ SEGPTR WINAPI UTLinearToSelectorOffset16(LPVOID lptr)
}
#ifdef __i386__
__ASM_GLOBAL_FUNC
(
__get_cs
,
"mov
l
%cs,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_ds
,
"mov
l
%ds,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_es
,
"mov
l
%es,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_fs
,
"mov
l
%fs,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_gs
,
"mov
l
%gs,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_ss
,
"mov
l
%ss,%
e
ax
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__set_fs
,
"movl 4(%esp),%eax
\n\t
mov
l
%
e
ax,%fs
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__set_gs
,
"movl 4(%esp),%eax
\n\t
mov
l
%
e
ax,%gs
\n\t
ret"
)
;
__ASM_GLOBAL_FUNC
(
__get_cs
,
"mov
w
%cs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_ds
,
"mov
w
%ds,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_es
,
"mov
w
%es,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_fs
,
"mov
w
%fs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_gs
,
"mov
w
%gs,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__get_ss
,
"mov
w
%ss,%ax
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__set_fs
,
"movl 4(%esp),%eax
\n\t
mov
w
%ax,%fs
\n\t
ret"
)
__ASM_GLOBAL_FUNC
(
__set_gs
,
"movl 4(%esp),%eax
\n\t
mov
w
%ax,%gs
\n\t
ret"
)
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment