Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
11cc8a3a
Commit
11cc8a3a
authored
Mar 26, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Fix allnoconfig build, ptrace.c missing CONFIG_COMPAT checks.
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
69072f6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
arch/sparc64/kernel/ptrace.c
arch/sparc64/kernel/ptrace.c
+6
-0
No files found.
arch/sparc64/kernel/ptrace.c
View file @
11cc8a3a
...
@@ -385,6 +385,7 @@ static const struct user_regset_view user_sparc64_view = {
...
@@ -385,6 +385,7 @@ static const struct user_regset_view user_sparc64_view = {
.
regsets
=
sparc64_regsets
,
.
n
=
ARRAY_SIZE
(
sparc64_regsets
)
.
regsets
=
sparc64_regsets
,
.
n
=
ARRAY_SIZE
(
sparc64_regsets
)
};
};
#ifdef CONFIG_COMPAT
static
int
genregs32_get
(
struct
task_struct
*
target
,
static
int
genregs32_get
(
struct
task_struct
*
target
,
const
struct
user_regset
*
regset
,
const
struct
user_regset
*
regset
,
unsigned
int
pos
,
unsigned
int
count
,
unsigned
int
pos
,
unsigned
int
count
,
...
@@ -679,14 +680,18 @@ static const struct user_regset_view user_sparc32_view = {
...
@@ -679,14 +680,18 @@ static const struct user_regset_view user_sparc32_view = {
.
name
=
"sparc"
,
.
e_machine
=
EM_SPARC
,
.
name
=
"sparc"
,
.
e_machine
=
EM_SPARC
,
.
regsets
=
sparc32_regsets
,
.
n
=
ARRAY_SIZE
(
sparc32_regsets
)
.
regsets
=
sparc32_regsets
,
.
n
=
ARRAY_SIZE
(
sparc32_regsets
)
};
};
#endif
/* CONFIG_COMPAT */
const
struct
user_regset_view
*
task_user_regset_view
(
struct
task_struct
*
task
)
const
struct
user_regset_view
*
task_user_regset_view
(
struct
task_struct
*
task
)
{
{
#ifdef CONFIG_COMPAT
if
(
test_tsk_thread_flag
(
task
,
TIF_32BIT
))
if
(
test_tsk_thread_flag
(
task
,
TIF_32BIT
))
return
&
user_sparc32_view
;
return
&
user_sparc32_view
;
#endif
return
&
user_sparc64_view
;
return
&
user_sparc64_view
;
}
}
#ifdef CONFIG_COMPAT
struct
compat_fps
{
struct
compat_fps
{
unsigned
int
regs
[
32
];
unsigned
int
regs
[
32
];
unsigned
int
fsr
;
unsigned
int
fsr
;
...
@@ -801,6 +806,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
...
@@ -801,6 +806,7 @@ long compat_arch_ptrace(struct task_struct *child, compat_long_t request,
return
ret
;
return
ret
;
}
}
#endif
/* CONFIG_COMPAT */
struct
fps
{
struct
fps
{
unsigned
int
regs
[
64
];
unsigned
int
regs
[
64
];
...
...
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