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
877f06d1
Commit
877f06d1
authored
Feb 15, 2021
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 17, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Remove no longer needed stack alignment in x86_64 syscall dispatcher.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8f50dde9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
import.c
tools/winebuild/import.c
+7
-9
No files found.
tools/winebuild/import.c
View file @
877f06d1
...
@@ -1528,25 +1528,23 @@ void output_syscalls( DLLSPEC *spec )
...
@@ -1528,25 +1528,23 @@ void output_syscalls( DLLSPEC *spec )
output
(
"
\t
leaq -0x38(%%rbp),%%rbx
\n
"
);
output
(
"
\t
leaq -0x38(%%rbp),%%rbx
\n
"
);
output
(
"
\t
movq %%rbx,0x328(%%rcx)
\n
"
);
/* amd64_thread_data()->syscall_frame */
output
(
"
\t
movq %%rbx,0x328(%%rcx)
\n
"
);
/* amd64_thread_data()->syscall_frame */
output
(
"
\t
cmpq $%u,%%rax
\n
"
,
count
);
output
(
"
\t
cmpq $%u,%%rax
\n
"
,
count
);
output
(
"
\t
jae
4
f
\n
"
);
output
(
"
\t
jae
3
f
\n
"
);
output
(
"
\t
leaq .Lsyscall_args(%%rip),%%rcx
\n
"
);
output
(
"
\t
leaq .Lsyscall_args(%%rip),%%rcx
\n
"
);
output
(
"
\t
movzbl (%%rcx,%%rax),%%ecx
\n
"
);
output
(
"
\t
movzbl (%%rcx,%%rax),%%ecx
\n
"
);
output
(
"
\t
subq $0x20,%%rcx
\n
"
);
output
(
"
\t
subq $0x20,%%rcx
\n
"
);
output
(
"
\t
ja 1f
\n
"
);
output
(
"
\t
jbe 1f
\n
"
);
output
(
"
\t
andq $~15,%%rsp
\n\t
"
);
output
(
"
\t
subq %%rcx,%%rsp
\n
"
);
output
(
"
\t
jmp 2f
\n
"
);
output
(
"1:
\t
subq %%rcx,%%rsp
\n
"
);
output
(
"
\t
shrq $3,%%rcx
\n
"
);
output
(
"
\t
shrq $3,%%rcx
\n
"
);
output
(
"
\t
leaq 0x38(%%rbp),%%rsi
\n
"
);
output
(
"
\t
leaq 0x38(%%rbp),%%rsi
\n
"
);
output
(
"
\t
andq $~15,%%rsp
\n\t
"
);
output
(
"
\t
andq $~15,%%rsp
\n\t
"
);
output
(
"
\t
movq %%rsp,%%rdi
\n
"
);
output
(
"
\t
movq %%rsp,%%rdi
\n
"
);
output
(
"
\t
cld
\n
"
);
output
(
"
\t
cld
\n
"
);
output
(
"
\t
rep; movsq
\n
"
);
output
(
"
\t
rep; movsq
\n
"
);
output
(
"
2
:
\t
movq %%r10,%%rcx
\n
"
);
output
(
"
1
:
\t
movq %%r10,%%rcx
\n
"
);
output
(
"
\t
subq $0x20,%%rsp
\n
"
);
output
(
"
\t
subq $0x20,%%rsp
\n
"
);
output
(
"
\t
leaq .Lsyscall_table(%%rip),%%r10
\n
"
);
output
(
"
\t
leaq .Lsyscall_table(%%rip),%%r10
\n
"
);
output
(
"
\t
callq *(%%r10,%%rax,8)
\n
"
);
output
(
"
\t
callq *(%%r10,%%rax,8)
\n
"
);
output
(
"
3
:
\t
movq %%gs:0x30,%%rcx
\n
"
);
output
(
"
2
:
\t
movq %%gs:0x30,%%rcx
\n
"
);
output
(
"
\t
movq $0,0x328(%%rcx)
\n
"
);
output
(
"
\t
movq $0,0x328(%%rcx)
\n
"
);
output
(
"
\t
movq -0x18(%%rbp),%%rdi
\n
"
);
output
(
"
\t
movq -0x18(%%rbp),%%rdi
\n
"
);
output_cfi
(
".cfi_same_value %%rdi"
);
output_cfi
(
".cfi_same_value %%rdi"
);
...
@@ -1559,8 +1557,8 @@ void output_syscalls( DLLSPEC *spec )
...
@@ -1559,8 +1557,8 @@ void output_syscalls( DLLSPEC *spec )
output_cfi
(
".cfi_adjust_cfa_offset -8"
);
output_cfi
(
".cfi_adjust_cfa_offset -8"
);
output_cfi
(
".cfi_same_value %%rbp"
);
output_cfi
(
".cfi_same_value %%rbp"
);
output
(
"
\t
ret
\n
"
);
output
(
"
\t
ret
\n
"
);
output
(
"
4
:
\t
movl $0x%x,%%eax
\n
"
,
invalid_param
);
output
(
"
3
:
\t
movl $0x%x,%%eax
\n
"
,
invalid_param
);
output
(
"
\t
jmp
3
b
\n
"
);
output
(
"
\t
jmp
2
b
\n
"
);
break
;
break
;
case
CPU_ARM
:
case
CPU_ARM
:
output
(
"
\t
push {r5-r11,lr}
\n
"
);
output
(
"
\t
push {r5-r11,lr}
\n
"
);
...
...
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