fedora core 6 1.2949 + vserver 2.2.0
[linux-2.6.git] / arch / sh64 / lib / dbg.c
index 526feda..4310fc8 100644 (file)
@@ -8,7 +8,6 @@
 -- Copyright 2004 Richard Curnow (evt_debug etc)
 --
 --------------------------------------------------------------------------*/
-#include <linux/config.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
@@ -174,7 +173,7 @@ void evt_debug(int evt, int ret_addr, int event, int tra, struct pt_regs *regs)
        struct ring_node *rr;
 
        pid = current->pid;
-       stack_bottom = (unsigned long) current->thread_info;
+       stack_bottom = (unsigned long) task_stack_page(current);
        asm volatile("ori r15, 0, %0" : "=r" (sp));
        rr = event_ring + event_ptr;
        rr->evt = evt;
@@ -384,7 +383,7 @@ void show_excp_regs(char *from, int trapnr, int signr, struct pt_regs *regs)
 /* ======================================================================= */
 
 /*
-** Depending on <base> scan the MMU, Data or Instrction side
+** Depending on <base> scan the MMU, Data or Instruction side
 ** looking for a valid mapping matching Eaddr & asid.
 ** Return -1 if not found or the TLB id entry otherwise.
 ** Note: it works only for 4k pages!