Commit 4b0fece0 authored by Linus Torvalds's avatar Linus Torvalds

ppc64: mark the "regshere" marker with proper type information.

parent 00607614
......@@ -546,7 +546,7 @@ void show_stack(struct task_struct *p, unsigned long *_sp)
* We look for the "regshere" marker in the current frame.
*/
if (validate_sp(sp, p, sizeof(struct pt_regs) + 400)
&& _sp[12] == 0x7265677368657265) {
&& _sp[12] == 0x7265677368657265ul) {
struct pt_regs *regs = (struct pt_regs *)
(sp + STACK_FRAME_OVERHEAD);
printk("--- Exception: %lx", regs->trap);
......
......@@ -1402,7 +1402,7 @@ static void xmon_show_stack(unsigned long sp, unsigned long lr,
/* Look for "regshere" marker to see if this is
an exception frame. */
if (mread(sp + 0x60, &marker, sizeof(unsigned long))
&& marker == 0x7265677368657265) {
&& marker == 0x7265677368657265ul) {
if (mread(sp + 0x70, &regs, sizeof(regs))
!= sizeof(regs)) {
printf("Couldn't read registers at %lx\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment