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
87fa906a
Commit
87fa906a
authored
Jun 01, 2020
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Properly reset the stack environment at thread exit on ARM64.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=49301
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c0319e0e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
signal_arm64.c
dlls/ntdll/unix/signal_arm64.c
+3
-1
No files found.
dlls/ntdll/unix/signal_arm64.c
View file @
87fa906a
...
@@ -238,11 +238,13 @@ void signal_init_thread( TEB *teb )
...
@@ -238,11 +238,13 @@ void signal_init_thread( TEB *teb )
extern
void
DECLSPEC_NORETURN
call_thread_exit_func
(
int
status
,
void
(
*
func
)(
int
),
TEB
*
teb
);
extern
void
DECLSPEC_NORETURN
call_thread_exit_func
(
int
status
,
void
(
*
func
)(
int
),
TEB
*
teb
);
__ASM_GLOBAL_FUNC
(
call_thread_exit_func
,
__ASM_GLOBAL_FUNC
(
call_thread_exit_func
,
"stp x29, x30, [sp,#-16]!
\n\t
"
"ldr x3, [x2, #0x300]
\n\t
"
/* arm64_thread_data()->exit_frame */
"ldr x3, [x2, #0x300]
\n\t
"
/* arm64_thread_data()->exit_frame */
"str xzr, [x2, #0x300]
\n\t
"
"str xzr, [x2, #0x300]
\n\t
"
"cbz x3, 1f
\n\t
"
"cbz x3, 1f
\n\t
"
"mov sp, x3
\n
"
"mov sp, x3
\n
"
"1:
\t
blr x1"
)
"1:
\t
ldp x29, x30, [sp], #16
\n\t
"
"br x1"
)
/***********************************************************************
/***********************************************************************
* signal_exit_thread
* signal_exit_thread
...
...
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