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
d7b01f78
Commit
d7b01f78
authored
Dec 10, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Enable HAVE_ARCH_TRACEHOOK for all SH, now that SH-5 supports it too.
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
dd76279b
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
arch/sh/Kconfig
arch/sh/Kconfig
+1
-1
arch/sh/include/asm/processor_64.h
arch/sh/include/asm/processor_64.h
+1
-1
arch/sh/include/asm/syscall_64.h
arch/sh/include/asm/syscall_64.h
+2
-2
No files found.
arch/sh/Kconfig
View file @
d7b01f78
...
@@ -13,6 +13,7 @@ config SUPERH
...
@@ -13,6 +13,7 @@ config SUPERH
select HAVE_OPROFILE
select HAVE_OPROFILE
select HAVE_GENERIC_DMA_COHERENT
select HAVE_GENERIC_DMA_COHERENT
select HAVE_IOREMAP_PROT if MMU
select HAVE_IOREMAP_PROT if MMU
select HAVE_ARCH_TRACEHOOK
help
help
The SuperH is a RISC processor targeted for use in embedded systems
The SuperH is a RISC processor targeted for use in embedded systems
and consumer electronics; it was also used in the Sega Dreamcast
and consumer electronics; it was also used in the Sega Dreamcast
...
@@ -23,7 +24,6 @@ config SUPERH32
...
@@ -23,7 +24,6 @@ config SUPERH32
def_bool !SUPERH64
def_bool !SUPERH64
select HAVE_KPROBES
select HAVE_KPROBES
select HAVE_KRETPROBES
select HAVE_KRETPROBES
select HAVE_ARCH_TRACEHOOK
select HAVE_FUNCTION_TRACER
select HAVE_FUNCTION_TRACER
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_FTRACE_MCOUNT_RECORD
select HAVE_DYNAMIC_FTRACE
select HAVE_DYNAMIC_FTRACE
...
...
arch/sh/include/asm/processor_64.h
View file @
d7b01f78
...
@@ -226,7 +226,7 @@ extern unsigned long get_wchan(struct task_struct *p);
...
@@ -226,7 +226,7 @@ extern unsigned long get_wchan(struct task_struct *p);
#define KSTK_EIP(tsk) ((tsk)->thread.pc)
#define KSTK_EIP(tsk) ((tsk)->thread.pc)
#define KSTK_ESP(tsk) ((tsk)->thread.sp)
#define KSTK_ESP(tsk) ((tsk)->thread.sp)
#define user_stack_pointer(regs) ((regs)->
sp
)
#define user_stack_pointer(regs) ((regs)->
regs[15]
)
#endif
/* __ASSEMBLY__ */
#endif
/* __ASSEMBLY__ */
#endif
/* __ASM_SH_PROCESSOR_64_H */
#endif
/* __ASM_SH_PROCESSOR_64_H */
arch/sh/include/asm/syscall_64.h
View file @
d7b01f78
...
@@ -65,7 +65,7 @@ static inline void syscall_get_arguments(struct task_struct *task,
...
@@ -65,7 +65,7 @@ static inline void syscall_get_arguments(struct task_struct *task,
unsigned
long
*
args
)
unsigned
long
*
args
)
{
{
BUG_ON
(
i
+
n
>
6
);
BUG_ON
(
i
+
n
>
6
);
memcpy
(
args
,
&
regs
->
reg
[
2
+
i
],
n
*
sizeof
(
args
[
0
]));
memcpy
(
args
,
&
regs
->
reg
s
[
2
+
i
],
n
*
sizeof
(
args
[
0
]));
}
}
static
inline
void
syscall_set_arguments
(
struct
task_struct
*
task
,
static
inline
void
syscall_set_arguments
(
struct
task_struct
*
task
,
...
@@ -74,7 +74,7 @@ static inline void syscall_set_arguments(struct task_struct *task,
...
@@ -74,7 +74,7 @@ static inline void syscall_set_arguments(struct task_struct *task,
const
unsigned
long
*
args
)
const
unsigned
long
*
args
)
{
{
BUG_ON
(
i
+
n
>
6
);
BUG_ON
(
i
+
n
>
6
);
memcpy
(
&
regs
->
reg
[
2
+
i
],
args
,
n
*
sizeof
(
args
[
0
]));
memcpy
(
&
regs
->
reg
s
[
2
+
i
],
args
,
n
*
sizeof
(
args
[
0
]));
}
}
#endif
/* __ASM_SH_SYSCALL_64_H */
#endif
/* __ASM_SH_SYSCALL_64_H */
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