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
1b1ea639
Commit
1b1ea639
authored
Jul 17, 2014
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Use a custom signal restorer for Android.
Bionic doesn't provide one, even when vdso has been unmapped by the preloader.
parent
cafb192e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
signal_i386.c
dlls/ntdll/signal_i386.c
+10
-1
No files found.
dlls/ntdll/signal_i386.c
View file @
1b1ea639
...
...
@@ -135,6 +135,12 @@ typedef struct ucontext
#define FPU_sig(context) ((FLOATING_SAVE_AREA*)((context)->uc_mcontext.fpstate))
#define FPUX_sig(context) (FPU_sig(context) && !((context)->uc_mcontext.fpstate->status >> 16) ? (XMM_SAVE_AREA32 *)(FPU_sig(context) + 1) : NULL)
/* custom signal restorer since we may have unmapped the one in vdso, and bionic doesn't check for that */
void
rt_sigreturn
(
void
);
__ASM_GLOBAL_FUNC
(
rt_sigreturn
,
"movl $173,%eax
\n\t
"
/* NR_rt_sigreturn */
"int $0x80"
);
#elif defined (__linux__)
typedef
ucontext_t
SIGCONTEXT
;
...
...
@@ -2327,7 +2333,10 @@ void signal_init_process(void)
#ifdef SA_ONSTACK
sig_act
.
sa_flags
|=
SA_ONSTACK
;
#endif
#ifdef __ANDROID__
sig_act
.
sa_flags
|=
SA_RESTORER
;
sig_act
.
sa_restorer
=
rt_sigreturn
;
#endif
sig_act
.
sa_sigaction
=
int_handler
;
if
(
sigaction
(
SIGINT
,
&
sig_act
,
NULL
)
==
-
1
)
goto
error
;
sig_act
.
sa_sigaction
=
fpe_handler
;
...
...
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