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
b195e466
Commit
b195e466
authored
Oct 14, 2009
by
Paul Mundt
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh/stable-updates'
parents
d780613a
457b6461
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
arch/sh/kernel/entry-common.S
arch/sh/kernel/entry-common.S
+1
-1
arch/sh/kernel/setup.c
arch/sh/kernel/setup.c
+2
-0
arch/sh/kernel/signal_32.c
arch/sh/kernel/signal_32.c
+4
-5
arch/sh/kernel/smp.c
arch/sh/kernel/smp.c
+2
-0
No files found.
arch/sh/kernel/entry-common.S
View file @
b195e466
...
...
@@ -121,7 +121,7 @@ noresched:
ENTRY
(
resume_userspace
)
!
r8
:
current_thread_info
cli
TRACE_IRQS_O
f
F
TRACE_IRQS_O
F
F
mov.l
@
(
TI_FLAGS
,
r8
),
r0
!
current_thread_info
->
flags
tst
#(
_TIF_WORK_MASK
&
0xff
),
r0
bt
/
s
__restore_all
...
...
arch/sh/kernel/setup.c
View file @
b195e466
...
...
@@ -553,6 +553,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
if
(
cpu
==
0
)
seq_printf
(
m
,
"machine
\t\t
: %s
\n
"
,
get_system_type
());
else
seq_printf
(
m
,
"
\n
"
);
seq_printf
(
m
,
"processor
\t
: %d
\n
"
,
cpu
);
seq_printf
(
m
,
"cpu family
\t
: %s
\n
"
,
init_utsname
()
->
machine
);
...
...
arch/sh/kernel/signal_32.c
View file @
b195e466
...
...
@@ -145,7 +145,7 @@ static inline int restore_sigcontext_fpu(struct sigcontext __user *sc)
{
struct
task_struct
*
tsk
=
current
;
if
(
!
(
curren
t_cpu_data
.
flags
&
CPU_HAS_FPU
))
if
(
!
(
boo
t_cpu_data
.
flags
&
CPU_HAS_FPU
))
return
0
;
set_used_math
();
...
...
@@ -158,7 +158,7 @@ static inline int save_sigcontext_fpu(struct sigcontext __user *sc,
{
struct
task_struct
*
tsk
=
current
;
if
(
!
(
curren
t_cpu_data
.
flags
&
CPU_HAS_FPU
))
if
(
!
(
boo
t_cpu_data
.
flags
&
CPU_HAS_FPU
))
return
0
;
if
(
!
used_math
())
{
...
...
@@ -199,7 +199,7 @@ restore_sigcontext(struct pt_regs *regs, struct sigcontext __user *sc, int *r0_p
#undef COPY
#ifdef CONFIG_SH_FPU
if
(
curren
t_cpu_data
.
flags
&
CPU_HAS_FPU
)
{
if
(
boo
t_cpu_data
.
flags
&
CPU_HAS_FPU
)
{
int
owned_fp
;
struct
task_struct
*
tsk
=
current
;
...
...
@@ -472,6 +472,7 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
err
|=
__put_user
(
OR_R0_R0
,
&
frame
->
retcode
[
6
]);
err
|=
__put_user
((
__NR_rt_sigreturn
),
&
frame
->
retcode
[
7
]);
regs
->
pr
=
(
unsigned
long
)
frame
->
retcode
;
flush_icache_range
(
regs
->
pr
,
regs
->
pr
+
sizeof
(
frame
->
retcode
));
}
if
(
err
)
...
...
@@ -497,8 +498,6 @@ static int setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,
pr_debug
(
"SIG deliver (%s:%d): sp=%p pc=%08lx pr=%08lx
\n
"
,
current
->
comm
,
task_pid_nr
(
current
),
frame
,
regs
->
pc
,
regs
->
pr
);
flush_icache_range
(
regs
->
pr
,
regs
->
pr
+
sizeof
(
frame
->
retcode
));
return
0
;
give_sigsegv:
...
...
arch/sh/kernel/smp.c
View file @
b195e466
...
...
@@ -35,6 +35,8 @@ static inline void __init smp_store_cpu_info(unsigned int cpu)
{
struct
sh_cpuinfo
*
c
=
cpu_data
+
cpu
;
memcpy
(
c
,
&
boot_cpu_data
,
sizeof
(
struct
sh_cpuinfo
));
c
->
loops_per_jiffy
=
loops_per_jiffy
;
}
...
...
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