Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Nov 2011 19:53:21 +0000 (UTC)
From:      Peter Grehan <grehan@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r227313 - projects/bhyve/sys/dev/bvm
Message-ID:  <201111071953.pA7JrLL3093936@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: grehan
Date: Mon Nov  7 19:53:20 2011
New Revision: 227313
URL: http://svn.freebsd.org/changeset/base/227313

Log:
  Allow the paravirtualized debug port to override others.
  
  Obtained from:	NetApp

Modified:
  projects/bhyve/sys/dev/bvm/bvm_dbg.c

Modified: projects/bhyve/sys/dev/bvm/bvm_dbg.c
==============================================================================
--- projects/bhyve/sys/dev/bvm/bvm_dbg.c	Mon Nov  7 18:26:38 2011	(r227312)
+++ projects/bhyve/sys/dev/bvm/bvm_dbg.c	Mon Nov  7 19:53:20 2011	(r227313)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111071953.pA7JrLL3093936>