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
7d96169c
Commit
7d96169c
authored
Aug 08, 2008
by
Paul Mundt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sh: Display CPU information in show_regs().
Signed-off-by:
Paul Mundt
<
lethal@linux-sh.org
>
parent
53c01d2d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
arch/sh/kernel/process_32.c
arch/sh/kernel/process_32.c
+9
-3
No files found.
arch/sh/kernel/process_32.c
View file @
7d96169c
...
...
@@ -111,15 +111,21 @@ void show_regs(struct pt_regs * regs)
{
printk
(
"
\n
"
);
printk
(
"Pid : %d, Comm: %20s
\n
"
,
task_pid_nr
(
current
),
current
->
comm
);
printk
(
"CPU : %d %s (%s %.*s)
\n
"
,
smp_processor_id
(),
print_tainted
(),
init_utsname
()
->
release
,
(
int
)
strcspn
(
init_utsname
()
->
version
,
" "
),
init_utsname
()
->
version
);
print_symbol
(
"PC is at %s
\n
"
,
instruction_pointer
(
regs
));
print_symbol
(
"PR is at %s
\n
"
,
regs
->
pr
);
printk
(
"PC : %08lx SP : %08lx SR : %08lx "
,
regs
->
pc
,
regs
->
regs
[
15
],
regs
->
sr
);
#ifdef CONFIG_MMU
printk
(
"TEA : %08x
"
,
ctrl_inl
(
MMU_TEA
));
printk
(
"TEA : %08x
\n
"
,
ctrl_inl
(
MMU_TEA
));
#else
printk
(
"
"
);
printk
(
"
\n
"
);
#endif
printk
(
"%s
\n
"
,
print_tainted
());
printk
(
"R0 : %08lx R1 : %08lx R2 : %08lx R3 : %08lx
\n
"
,
regs
->
regs
[
0
],
regs
->
regs
[
1
],
...
...
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