Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94a98cf5
Commit
94a98cf5
authored
Aug 13, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement setting the thread context on ARM64.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
1c9fdaab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
1 deletion
+19
-1
signal_arm64.c
dlls/ntdll/signal_arm64.c
+19
-1
No files found.
dlls/ntdll/signal_arm64.c
View file @
94a98cf5
...
...
@@ -252,7 +252,8 @@ __ASM_STDCALL_FUNC( RtlCaptureContext, 8,
*/
static
void
set_cpu_context
(
const
CONTEXT
*
context
)
{
FIXME
(
"Not implemented on ARM64
\n
"
);
interlocked_xchg_ptr
(
(
void
**
)
&
arm64_thread_data
()
->
context
,
(
void
*
)
context
);
raise
(
SIGUSR2
);
}
/***********************************************************************
...
...
@@ -861,6 +862,21 @@ static void usr1_handler( int signal, siginfo_t *siginfo, void *sigcontext )
}
/**********************************************************************
* usr2_handler
*
* Handler for SIGUSR2, used to set a thread context.
*/
static
void
usr2_handler
(
int
signal
,
siginfo_t
*
siginfo
,
void
*
sigcontext
)
{
CONTEXT
*
context
=
interlocked_xchg_ptr
(
(
void
**
)
&
arm64_thread_data
()
->
context
,
NULL
);
if
(
!
context
)
return
;
if
((
context
->
ContextFlags
&
~
CONTEXT_ARM64
)
&
CONTEXT_FLOATING_POINT
)
restore_fpu
(
context
,
sigcontext
);
restore_context
(
context
,
sigcontext
);
}
/***********************************************************************
* __wine_set_signal_handler (NTDLL.@)
*/
...
...
@@ -955,6 +971,8 @@ void signal_init_process(void)
if
(
sigaction
(
SIGQUIT
,
&
sig_act
,
NULL
)
==
-
1
)
goto
error
;
sig_act
.
sa_sigaction
=
usr1_handler
;
if
(
sigaction
(
SIGUSR1
,
&
sig_act
,
NULL
)
==
-
1
)
goto
error
;
sig_act
.
sa_sigaction
=
usr2_handler
;
if
(
sigaction
(
SIGUSR2
,
&
sig_act
,
NULL
)
==
-
1
)
goto
error
;
sig_act
.
sa_sigaction
=
segv_handler
;
if
(
sigaction
(
SIGSEGV
,
&
sig_act
,
NULL
)
==
-
1
)
goto
error
;
...
...
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