diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-05-14 15:22:48 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-05-14 15:22:48 +0100 |
commit | 2e4146ddc277d2ddd861646b8b1ba83182eb84bb (patch) | |
tree | b89c9a44b6681359974a281096dc16f29dc6d304 /xen/common/gdbstub.c | |
parent | 2a814aeaaf1e2fe258ab72fc60bb86b7ca4cb102 (diff) | |
download | xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.gz xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.tar.bz2 xen-2e4146ddc277d2ddd861646b8b1ba83182eb84bb.zip |
x86: Implement cpu hotplug notifiers. Use them.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/gdbstub.c')
-rw-r--r-- | xen/common/gdbstub.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/xen/common/gdbstub.c b/xen/common/gdbstub.c index cf03139d7f..51129206bf 100644 --- a/xen/common/gdbstub.c +++ b/xen/common/gdbstub.c @@ -44,6 +44,7 @@ #include <xen/console.h> #include <xen/errno.h> #include <xen/delay.h> +#include <xen/init.h> #include <asm/byteorder.h> /* Printk isn't particularly safe just after we've trapped to the @@ -639,23 +640,25 @@ __trap_to_gdb(struct cpu_user_regs *regs, unsigned long cookie) return rc; } -void __init -initialise_gdb(void) +static int __init initialise_gdb(void) { if ( *opt_gdb == '\0' ) - return; + return 0; gdb_ctx->serhnd = serial_parse_handle(opt_gdb); if ( gdb_ctx->serhnd == -1 ) { printk("Bad gdb= option '%s'\n", opt_gdb); - return; + return 0; } serial_start_sync(gdb_ctx->serhnd); printk("GDB stub initialised.\n"); + + return 0; } +presmp_initcall(initialise_gdb); static void gdb_pause_this_cpu(void *unused) { |