Module Name:    src
Committed By:   martin
Date:           Tue Dec  1 18:51:20 UTC 2009

Modified Files:
        src/sys/arch/sparc64/sparc64: db_interface.c

Log Message:
Remove restriction of "mach prom" to cpu0 - it does not make sense now
that cpu0 is not always the bootstrap cpu, and in the majority of cases
the prom abort will just work fine on any cpu.


To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 src/sys/arch/sparc64/sparc64/db_interface.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/sparc64/sparc64/db_interface.c
diff -u src/sys/arch/sparc64/sparc64/db_interface.c:1.118 src/sys/arch/sparc64/sparc64/db_interface.c:1.119
--- src/sys/arch/sparc64/sparc64/db_interface.c:1.118	Sat Nov 21 04:16:52 2009
+++ src/sys/arch/sparc64/sparc64/db_interface.c	Tue Dec  1 18:51:20 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: db_interface.c,v 1.118 2009/11/21 04:16:52 rmind Exp $ */
+/*	$NetBSD: db_interface.c,v 1.119 2009/12/01 18:51:20 martin Exp $ */
 
 /*
  * Copyright (c) 1996-2002 Eduardo Horvath.  All rights reserved.
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.118 2009/11/21 04:16:52 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.119 2009/12/01 18:51:20 martin Exp $");
 
 #include "opt_ddb.h"
 #include "opt_multiprocessor.h"
@@ -568,12 +568,6 @@
 void
 db_prom_cmd(db_expr_t addr, bool have_addr, db_expr_t count, const char *modif)
 {
-
-	if (cpu_number()) {
-		printf("this command is not safe while running on another "
-		    "CPU, please do\n\"mach cpu 0\" and then try again\n");
-		return;
-	}
 	prom_abort();
 }
 

Reply via email to