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
Kirill Smelkov
linux
Commits
1581e330
Commit
1581e330
authored
May 30, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: add more user annotations to ptrace.c
parent
3cbd4e38
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
arch/ppc64/kernel/ptrace.c
arch/ppc64/kernel/ptrace.c
+6
-6
No files found.
arch/ppc64/kernel/ptrace.c
View file @
1581e330
...
...
@@ -101,7 +101,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
ret
=
-
EIO
;
if
(
copied
!=
sizeof
(
tmp
))
break
;
ret
=
put_user
(
tmp
,(
unsigned
long
*
)
data
);
ret
=
put_user
(
tmp
,(
unsigned
long
__user
*
)
data
);
break
;
}
...
...
@@ -123,7 +123,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
giveup_fpu
(
child
);
tmp
=
((
unsigned
long
*
)
child
->
thread
.
fpr
)[
index
-
PT_FPR0
];
}
ret
=
put_user
(
tmp
,(
unsigned
long
*
)
data
);
ret
=
put_user
(
tmp
,(
unsigned
long
__user
*
)
data
);
break
;
}
...
...
@@ -213,7 +213,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
case
PPC_PTRACE_GETREGS
:
{
/* Get GPRs 0 - 31. */
int
i
;
unsigned
long
*
reg
=
&
((
unsigned
long
*
)
child
->
thread
.
regs
)[
0
];
unsigned
long
*
tmp
=
(
unsigned
long
*
)
addr
;
unsigned
long
__user
*
tmp
=
(
unsigned
long
__user
*
)
addr
;
for
(
i
=
0
;
i
<
32
;
i
++
)
{
ret
=
put_user
(
*
reg
,
tmp
);
...
...
@@ -228,7 +228,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
case
PPC_PTRACE_SETREGS
:
{
/* Set GPRs 0 - 31. */
int
i
;
unsigned
long
*
reg
=
&
((
unsigned
long
*
)
child
->
thread
.
regs
)[
0
];
unsigned
long
*
tmp
=
(
unsigned
long
*
)
addr
;
unsigned
long
__user
*
tmp
=
(
unsigned
long
__user
*
)
addr
;
for
(
i
=
0
;
i
<
32
;
i
++
)
{
ret
=
get_user
(
*
reg
,
tmp
);
...
...
@@ -243,7 +243,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
case
PPC_PTRACE_GETFPREGS
:
{
/* Get FPRs 0 - 31. */
int
i
;
unsigned
long
*
reg
=
&
((
unsigned
long
*
)
child
->
thread
.
fpr
)[
0
];
unsigned
long
*
tmp
=
(
unsigned
long
*
)
addr
;
unsigned
long
__user
*
tmp
=
(
unsigned
long
__user
*
)
addr
;
if
(
child
->
thread
.
regs
->
msr
&
MSR_FP
)
giveup_fpu
(
child
);
...
...
@@ -261,7 +261,7 @@ int sys_ptrace(long request, long pid, long addr, long data)
case
PPC_PTRACE_SETFPREGS
:
{
/* Get FPRs 0 - 31. */
int
i
;
unsigned
long
*
reg
=
&
((
unsigned
long
*
)
child
->
thread
.
fpr
)[
0
];
unsigned
long
*
tmp
=
(
unsigned
long
*
)
addr
;
unsigned
long
__user
*
tmp
=
(
unsigned
long
__user
*
)
addr
;
if
(
child
->
thread
.
regs
->
msr
&
MSR_FP
)
giveup_fpu
(
child
);
...
...
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