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
nexedi
linux
Commits
f243b377
Commit
f243b377
authored
May 11, 2003
by
Pete Zaitcev
Committed by
David S. Miller
May 11, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC]: New compact show_regs format.
parent
7c690925
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
28 deletions
+20
-28
arch/sparc/kernel/process.c
arch/sparc/kernel/process.c
+20
-28
No files found.
arch/sparc/kernel/process.c
View file @
f243b377
...
@@ -186,18 +186,6 @@ void machine_power_off(void)
...
@@ -186,18 +186,6 @@ void machine_power_off(void)
machine_halt
();
machine_halt
();
}
}
void
show_regwindow
(
struct
reg_window
*
rw
)
{
printk
(
"l0: %08lx l1: %08lx l2: %08lx l3: %08lx "
"l4: %08lx l5: %08lx l6: %08lx l7: %08lx
\n
"
,
rw
->
locals
[
0
],
rw
->
locals
[
1
],
rw
->
locals
[
2
],
rw
->
locals
[
3
],
rw
->
locals
[
4
],
rw
->
locals
[
5
],
rw
->
locals
[
6
],
rw
->
locals
[
7
]);
printk
(
"i0: %08lx i1: %08lx i2: %08lx i3: %08lx "
"i4: %08lx i5: %08lx fp: %08lx i7: %08lx
\n
"
,
rw
->
ins
[
0
],
rw
->
ins
[
1
],
rw
->
ins
[
2
],
rw
->
ins
[
3
],
rw
->
ins
[
4
],
rw
->
ins
[
5
],
rw
->
ins
[
6
],
rw
->
ins
[
7
]);
}
static
spinlock_t
sparc_backtrace_lock
=
SPIN_LOCK_UNLOCKED
;
static
spinlock_t
sparc_backtrace_lock
=
SPIN_LOCK_UNLOCKED
;
void
__show_backtrace
(
unsigned
long
fp
)
void
__show_backtrace
(
unsigned
long
fp
)
...
@@ -248,6 +236,7 @@ void smp_show_backtrace_all_cpus(void)
...
@@ -248,6 +236,7 @@ void smp_show_backtrace_all_cpus(void)
}
}
#endif
#endif
#if 0
void show_stackframe(struct sparc_stackf *sf)
void show_stackframe(struct sparc_stackf *sf)
{
{
unsigned long size;
unsigned long size;
...
@@ -275,24 +264,27 @@ void show_stackframe(struct sparc_stackf *sf)
...
@@ -275,24 +264,27 @@ void show_stackframe(struct sparc_stackf *sf)
printk("s%d: %08lx\n", i++, *stk++);
printk("s%d: %08lx\n", i++, *stk++);
} while ((size -= sizeof(unsigned long)));
} while ((size -= sizeof(unsigned long)));
}
}
#endif
void
show_regs
(
struct
pt_regs
*
regs
)
void
show_regs
(
struct
pt_regs
*
r
)
{
{
printk
(
"PSR: %08lx PC: %08lx NPC: %08lx Y: %08lx %s
\n
"
,
regs
->
psr
,
struct
reg_window
*
rw
=
(
struct
reg_window
*
)
r
->
u_regs
[
14
];
regs
->
pc
,
regs
->
npc
,
regs
->
y
,
print_tainted
());
printk
(
"g0: %08lx g1: %08lx g2: %08lx g3: %08lx "
,
printk
(
"PSR: %08lx PC: %08lx NPC: %08lx Y: %08lx %s
\n
"
,
regs
->
u_regs
[
0
],
regs
->
u_regs
[
1
],
regs
->
u_regs
[
2
],
r
->
psr
,
r
->
pc
,
r
->
npc
,
r
->
y
,
print_tainted
());
regs
->
u_regs
[
3
]);
printk
(
"%%G: %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx
\n
"
,
printk
(
"g4: %08lx g5: %08lx g6: %08lx g7: %08lx
\n
"
,
r
->
u_regs
[
0
],
r
->
u_regs
[
1
],
r
->
u_regs
[
2
],
r
->
u_regs
[
3
],
regs
->
u_regs
[
4
],
regs
->
u_regs
[
5
],
regs
->
u_regs
[
6
],
r
->
u_regs
[
4
],
r
->
u_regs
[
5
],
r
->
u_regs
[
6
],
r
->
u_regs
[
7
]);
regs
->
u_regs
[
7
]);
printk
(
"%%O: %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx
\n
"
,
printk
(
"o0: %08lx o1: %08lx o2: %08lx o3: %08lx "
,
r
->
u_regs
[
8
],
r
->
u_regs
[
9
],
r
->
u_regs
[
10
],
r
->
u_regs
[
11
],
regs
->
u_regs
[
8
],
regs
->
u_regs
[
9
],
regs
->
u_regs
[
10
],
r
->
u_regs
[
12
],
r
->
u_regs
[
13
],
r
->
u_regs
[
14
],
r
->
u_regs
[
15
]);
regs
->
u_regs
[
11
]);
printk
(
"o4: %08lx o5: %08lx sp: %08lx o7: %08lx
\n
"
,
printk
(
"%%L: %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx
\n
"
,
regs
->
u_regs
[
12
],
regs
->
u_regs
[
13
],
regs
->
u_regs
[
14
],
rw
->
locals
[
0
],
rw
->
locals
[
1
],
rw
->
locals
[
2
],
rw
->
locals
[
3
],
regs
->
u_regs
[
15
]);
rw
->
locals
[
4
],
rw
->
locals
[
5
],
rw
->
locals
[
6
],
rw
->
locals
[
7
]);
show_regwindow
((
struct
reg_window
*
)
regs
->
u_regs
[
14
]);
printk
(
"%%I: %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx
\n
"
,
rw
->
ins
[
0
],
rw
->
ins
[
1
],
rw
->
ins
[
2
],
rw
->
ins
[
3
],
rw
->
ins
[
4
],
rw
->
ins
[
5
],
rw
->
ins
[
6
],
rw
->
ins
[
7
]);
}
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
void
show_trace_task
(
struct
task_struct
*
tsk
)
...
...
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