WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [PATCH] Fix Xen-GDB Stub (smp_sen_stop, E00 on unknown command,

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [PATCH] Fix Xen-GDB Stub (smp_sen_stop, E00 on unknown command, remove printk prefix)
From: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>
Date: Wed, 18 Apr 2007 09:04:08 +0200
Delivery-date: Wed, 18 Apr 2007 00:02:45 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 1.5.0.10 (X11/20070301)
[XEN][POWERPC] Fix Xen-GDB Stub (smp_sen_stop, E00 on unknown command, remove 
printk prefix)
- Remove BUG() from smp_stop_all(), common code changes added a call to this - 
changed to unimplemented().
- remove the printk prefix "(XEN) " when falling into gdb, because gdb tried to parse the 
"(XEN) " response sometimes
- return E00 on unknown command (thx to jimi)

Signed-off-by: Christian Ehrhardt <ehrhardt@xxxxxxxxxxxxxxxxxx>

diff -r 736f2d6d7b09 xen/arch/powerpc/smp.c
--- a/xen/arch/powerpc/smp.c    Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/arch/powerpc/smp.c    Thu Apr 12 14:34:39 2007 +0200
@@ -68,7 +68,7 @@ int smp_call_function(void (*func) (void

void smp_send_stop(void)
{
-    BUG();
+    unimplemented();
}

struct call_data_struct {
diff -r 736f2d6d7b09 xen/common/gdbstub.c
--- a/xen/common/gdbstub.c      Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/common/gdbstub.c      Thu Apr 12 14:34:40 2007 +0200
@@ -472,7 +472,7 @@ process_command(struct cpu_user_regs *re
    }

    default:
-        gdb_send_reply("", ctx);
+        gdb_send_reply("E00", ctx);
        break;
    }
    return resume;
@@ -554,6 +554,7 @@ __trap_to_gdb(struct cpu_user_regs *regs
    /* Shouldn't really do this, but otherwise we stop for no
       obvious reason, which is Bad */
    printk("Waiting for GDB to attach...\n");
+    set_printk_prefix("");

    gdb_arch_enter(regs);
    gdb_ctx->signum = gdb_arch_signal_num(regs, cookie);


--

Grüsse / regards, Christian Ehrhardt

IBM Linux Technology Center, Open Virtualization
+49 7031/16-3385
Ehrhardt@xxxxxxxxxxxxxxxxxxx
Ehrhardt@xxxxxxxxxx

IBM Deutschland Entwicklung GmbH
Vorsitzender des Aufsichtsrats: Johann Weihen Geschäftsführung: Herbert Kircher Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

diff -r 736f2d6d7b09 xen/arch/powerpc/smp.c
--- a/xen/arch/powerpc/smp.c    Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/arch/powerpc/smp.c    Thu Apr 12 14:34:39 2007 +0200
@@ -68,7 +68,7 @@ int smp_call_function(void (*func) (void
 
 void smp_send_stop(void)
 {
-    BUG();
+    unimplemented();
 }
 
 struct call_data_struct {
diff -r 736f2d6d7b09 xen/common/gdbstub.c
--- a/xen/common/gdbstub.c      Fri Mar 02 18:05:38 2007 -0600
+++ b/xen/common/gdbstub.c      Thu Apr 12 14:34:40 2007 +0200
@@ -472,7 +472,7 @@ process_command(struct cpu_user_regs *re
     }
 
     default:
-        gdb_send_reply("", ctx);
+        gdb_send_reply("E00", ctx);
         break;
     }
     return resume;
@@ -554,6 +554,7 @@ __trap_to_gdb(struct cpu_user_regs *regs
     /* Shouldn't really do this, but otherwise we stop for no
        obvious reason, which is Bad */
     printk("Waiting for GDB to attach...\n");
+    set_printk_prefix("");
 
     gdb_arch_enter(regs);
     gdb_ctx->signum = gdb_arch_signal_num(regs, cookie);
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [PATCH] Fix Xen-GDB Stub (smp_sen_stop, E00 on unknown command, remove printk prefix), Christian Ehrhardt <=