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
e2fac058
Commit
e2fac058
authored
Jun 02, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use the sysv ABI for the %fs allocation function.
parent
6bcfab4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
signal_x86_64.c
dlls/ntdll/unix/signal_x86_64.c
+8
-8
No files found.
dlls/ntdll/unix/signal_x86_64.c
View file @
e2fac058
...
...
@@ -88,17 +88,17 @@ WINE_DECLARE_DEBUG_CHANNEL(seh);
#include <asm/prctl.h>
static
inline
int
arch_prctl
(
int
func
,
void
*
ptr
)
{
return
syscall
(
__NR_arch_prctl
,
func
,
ptr
);
}
extern
int
CDECL
alloc_fs_sel
(
int
sel
,
void
*
base
)
DECLSPEC_HIDDEN
;
extern
int
alloc_fs_sel
(
int
sel
,
void
*
base
)
DECLSPEC_HIDDEN
;
__ASM_GLOBAL_FUNC
(
alloc_fs_sel
,
/* switch to 32-bit stack */
"pushq %rbx
\n\t
"
"pushq %r
di
\n\t
"
"movq %rsp,%r
di
\n\t
"
"movl 0x4(%r
dx
),%esp
\n\t
"
/* Tib.StackBase */
"pushq %r
12
\n\t
"
"movq %rsp,%r
12
\n\t
"
"movl 0x4(%r
si
),%esp
\n\t
"
/* Tib.StackBase */
"subl $0x20,%esp
\n\t
"
/* setup modify_ldt struct on 32-bit stack */
"movl %e
cx
,(%rsp)
\n\t
"
/* entry_number */
"movl %e
dx
,4(%rsp)
\n\t
"
/* base */
"movl %e
di
,(%rsp)
\n\t
"
/* entry_number */
"movl %e
si
,4(%rsp)
\n\t
"
/* base */
"movl $~0,8(%rsp)
\n\t
"
/* limit */
"movl $0x41,12(%rsp)
\n\t
"
/* seg_32bit | usable */
/* invoke 32-bit syscall */
...
...
@@ -107,8 +107,8 @@ __ASM_GLOBAL_FUNC( alloc_fs_sel,
"int $0x80
\n\t
"
/* restore stack */
"movl (%rsp),%eax
\n\t
"
/* entry_number */
"movq %r
di
,%rsp
\n\t
"
"popq %r
di
\n\t
"
"movq %r
12
,%rsp
\n\t
"
"popq %r
12
\n\t
"
"popq %rbx
\n\t
"
"ret"
);
...
...
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