From cdc4639328546d2b0ad5a90dd2d4e4534e874c26 Mon Sep 17 00:00:00 2001 From: grehan Date: Mon, 7 Nov 2011 19:53:20 +0000 Subject: [PATCH] Allow the paravirtualized debug port to override others. Obtained from: NetApp --- sys/dev/bvm/bvm_dbg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys/dev/bvm/bvm_dbg.c b/sys/dev/bvm/bvm_dbg.c index 67f533ebd9a4..6ae935711a6d 100644 --- a/sys/dev/bvm/bvm_dbg.c +++ b/sys/dev/bvm/bvm_dbg.c @@ -62,7 +62,11 @@ bvm_dbg_probe(void) if (resource_int_value("bvmdbg", 0, "port", &port) == 0) bvm_dbg_port = port; - return (0); + /* + * Return a higher priority than 0 to override other + * gdb dbgport providers that may be present (e.g. uart) + */ + return (1); } static void