Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
64482bd8
Commit
64482bd8
authored
May 20, 2012
by
Al Viro
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parisc: decide whether to go to slow path (tracesys) based on thread flags
Signed-off-by:
Al Viro
<
viro@zeniv.linux.org.uk
>
parent
e3b880c6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
arch/parisc/include/asm/thread_info.h
arch/parisc/include/asm/thread_info.h
+2
-0
arch/parisc/kernel/syscall.S
arch/parisc/kernel/syscall.S
+4
-3
No files found.
arch/parisc/include/asm/thread_info.h
View file @
64482bd8
...
...
@@ -74,6 +74,8 @@ struct thread_info {
#define _TIF_USER_WORK_MASK (_TIF_SIGPENDING | _TIF_NOTIFY_RESUME | \
_TIF_NEED_RESCHED)
#define _TIF_SYSCALL_TRACE_MASK (_TIF_SYSCALL_TRACE | _TIF_SINGLESTEP | \
_TIF_BLOCKSTEP)
#define tsk_is_polling(t) test_tsk_thread_flag(t, TIF_POLLING_NRFLAG)
...
...
arch/parisc/kernel/syscall.S
View file @
64482bd8
...
...
@@ -180,9 +180,10 @@ linux_gateway_entry:
/
*
Are
we
being
ptraced
?
*/
mfctl
%
cr30
,
%
r1
LDREG
TI_TASK
(%
r1
),%
r1
ldw
TASK_PTRACE
(%
r1
),
%
r1
bb
,<,
n
%
r1
,
31
,
.
Ltracesys
LDREG
TI_FLAGS
(%
r1
),%
r1
ldi
_TIF_SYSCALL_TRACE_MASK
,
%
r19
and
,
COND
(=)
%
r1
,
%
r19
,
%
r0
b
,
n
.
Ltracesys
/
*
Note
!
We
cannot
use
the
syscall
table
that
is
mapped
nearby
since
the
gateway
page
is
mapped
execute
-
only
.
*/
...
...
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