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
d9084455
Commit
d9084455
authored
Jun 25, 2003
by
Paul Mackerras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Implement 2-argument show_stack().
parent
4d4f47fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
14 deletions
+13
-14
arch/ppc/kernel/process.c
arch/ppc/kernel/process.c
+13
-12
include/asm-ppc/hardirq.h
include/asm-ppc/hardirq.h
+0
-2
No files found.
arch/ppc/kernel/process.c
View file @
d9084455
...
@@ -69,8 +69,6 @@ struct task_struct init_task = INIT_TASK(init_task);
...
@@ -69,8 +69,6 @@ struct task_struct init_task = INIT_TASK(init_task);
/* only used to get secondary processor up */
/* only used to get secondary processor up */
struct
task_struct
*
current_set
[
NR_CPUS
]
=
{
&
init_task
,
};
struct
task_struct
*
current_set
[
NR_CPUS
]
=
{
&
init_task
,
};
static
void
show_tsk_stack
(
struct
task_struct
*
tsk
,
unsigned
long
sp
);
#undef SHOW_TASK_SWITCHES
#undef SHOW_TASK_SWITCHES
#undef CHECK_STACK
#undef CHECK_STACK
...
@@ -296,7 +294,7 @@ void show_regs(struct pt_regs * regs)
...
@@ -296,7 +294,7 @@ void show_regs(struct pt_regs * regs)
break
;
break
;
}
}
printk
(
"
\n
"
);
printk
(
"
\n
"
);
show_
tsk_stack
(
current
,
regs
->
gpr
[
1
]);
show_
stack
(
current
,
(
unsigned
long
*
)
regs
->
gpr
[
1
]);
}
}
void
exit_thread
(
void
)
void
exit_thread
(
void
)
...
@@ -494,26 +492,29 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
...
@@ -494,26 +492,29 @@ int sys_execve(unsigned long a0, unsigned long a1, unsigned long a2,
return
error
;
return
error
;
}
}
void
show_trace_task
(
struct
task_struct
*
tsk
)
{
show_tsk_stack
(
tsk
,
tsk
->
thread
.
ksp
);
}
void
dump_stack
(
void
)
void
dump_stack
(
void
)
{
{
show_
tsk_stack
(
current
,
_get_SP
()
);
show_
stack
(
current
,
NULL
);
}
}
static
void
show_tsk_stack
(
struct
task_struct
*
tsk
,
unsigned
long
sp
)
void
show_stack
(
struct
task_struct
*
tsk
,
unsigned
long
*
stack
)
{
{
unsigned
long
stack_top
,
prev_sp
,
ret
;
unsigned
long
s
p
,
s
tack_top
,
prev_sp
,
ret
;
int
count
=
0
;
int
count
=
0
;
unsigned
long
next_exc
=
0
;
unsigned
long
next_exc
=
0
;
struct
pt_regs
*
regs
;
struct
pt_regs
*
regs
;
extern
char
ret_from_except
,
ret_from_except_full
,
ret_from_syscall
;
extern
char
ret_from_except
,
ret_from_except_full
,
ret_from_syscall
;
sp
=
(
unsigned
long
)
stack
;
if
(
tsk
==
NULL
)
if
(
tsk
==
NULL
)
return
;
tsk
=
current
;
if
(
sp
==
0
)
{
if
(
tsk
==
current
)
asm
(
"mr %0,1"
:
"=r"
(
sp
));
else
sp
=
tsk
->
thread
.
ksp
;
}
prev_sp
=
(
unsigned
long
)
(
tsk
->
thread_info
+
1
);
prev_sp
=
(
unsigned
long
)
(
tsk
->
thread_info
+
1
);
stack_top
=
(
unsigned
long
)
tsk
->
thread_info
+
THREAD_SIZE
;
stack_top
=
(
unsigned
long
)
tsk
->
thread_info
+
THREAD_SIZE
;
while
(
count
<
16
&&
sp
>
prev_sp
&&
sp
<
stack_top
&&
(
sp
&
3
)
==
0
)
{
while
(
count
<
16
&&
sp
>
prev_sp
&&
sp
<
stack_top
&&
(
sp
&
3
)
==
0
)
{
...
...
include/asm-ppc/hardirq.h
View file @
d9084455
...
@@ -104,7 +104,5 @@ do { \
...
@@ -104,7 +104,5 @@ do { \
extern
void
synchronize_irq
(
unsigned
int
irq
);
extern
void
synchronize_irq
(
unsigned
int
irq
);
#endif
/* CONFIG_SMP */
#endif
/* CONFIG_SMP */
extern
void
show_stack
(
unsigned
long
*
sp
);
#endif
/* __ASM_HARDIRQ_H */
#endif
/* __ASM_HARDIRQ_H */
#endif
/* __KERNEL__ */
#endif
/* __KERNEL__ */
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