This change was dropped accidentally.  Now it is back in the linux2_6_21_uprev 
branch and committed to x86_64-lite.patch in the linux2_6_21_uprev branch.


Jason.

-- 

Change calls from hard_smp_processor_id to smp_processor_id to
obtain the correct behavior for thread lists on X86

Signed-off-by: Jason Wessel <[EMAIL PROTECTED]>

diff -u linux-2.6.21-rc3/arch/x86_64/kernel/kgdb.c 
linux-2.6.21-rc3/arch/x86_64/kernel/kgdb.c
--- linux-2.6.21-rc3/arch/x86_64/kernel/kgdb.c
+++ linux-2.6.21-rc3/arch/x86_64/kernel/kgdb.c
 <at>  <at>  -379,7 +379,7  <at>  <at> 
        static char intr_desc[] = "Stack at interrupt entrypoint";
        static char exc_desc[] = "Stack at exception entrypoint";
        struct pt_regs *stregs;
-       int cpu = hard_smp_processor_id();
+       int cpu = smp_processor_id();

        if ((stregs = in_interrupt_stack(regs->rsp, cpu)))
                kgdb_mem2hex(intr_desc, buffer, strlen(intr_desc));
 <at>  <at>  -390,7 +390,7  <at>  <at> 
 struct task_struct *kgdb_get_shadow_thread(struct pt_regs *regs, int threadid)
 {
        struct pt_regs *stregs;
-       int cpu = hard_smp_processor_id();
+       int cpu = smp_processor_id();

        if ((stregs = in_interrupt_stack(regs->rsp, cpu)))
                return current;
 <at>  <at>  -403,7 +403,7  <at>  <at> 
 struct pt_regs *kgdb_shadow_regs(struct pt_regs *regs, int threadid)
 {
        struct pt_regs *stregs;
-       int cpu = hard_smp_processor_id();
+       int cpu = smp_processor_id();

        if ((stregs = in_interrupt_stack(regs->rsp, cpu)))
                return stregs;


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Kgdb-bugreport mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kgdb-bugreport

Reply via email to