changeset 3720:35ed4f76e395

6523491 system panic with "prtdiag: alignment error:" during sb configure
author schwartz
date Mon, 26 Feb 2007 15:11:52 -0800
parents 0a19a978a89c
children 09a78011e26a
files usr/src/uts/sun4u/io/px/px_tools_4u.c
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/sun4u/io/px/px_tools_4u.c	Mon Feb 26 14:34:33 2007 -0800
+++ b/usr/src/uts/sun4u/io/px/px_tools_4u.c	Mon Feb 26 15:11:52 2007 -0800
@@ -19,7 +19,7 @@
  * CDDL HEADER END
  */
 /*
- * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
@@ -320,13 +320,11 @@
 int
 pxtool_dev_reg_ops_platchk(dev_info_t *dip, pcitool_reg_t *prg_p)
 {
-	int		devi_nodeid = ddi_get_nodeid(dip);
-
 	/*
 	 * Guard against checking a root nexus which is empty.
 	 * On some systems this will result in a Fatal Reset.
 	 */
-	if ((int)prom_childnode((pnode_t)devi_nodeid) == OBP_NONODE) {
+	if (ddi_get_child(dip) == NULL) {
 		DBG(DBG_TOOLS, dip,
 		    "pxtool_dev_reg_ops set/get reg: nexus has no devs!\n");
 		prg_p->status = PCITOOL_IO_ERROR;