git: 9front

Download patch

ref: cd975c01caa5682cabf2139cdb834b1cfc8b8886
parent: bdc762e13c94955822a04748eaeabd1f1c9878c3
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Thu May 12 16:15:39 EDT 2011

add rdb message to /dev/reboot

--- a/sys/src/9/port/devcons.c
+++ b/sys/src/9/port/devcons.c
@@ -32,6 +32,7 @@
 	CMhalt,
 	CMreboot,
 	CMpanic,
+	CMrdb,
 };
 
 Cmdtab rebootmsg[] =
@@ -39,6 +40,7 @@
 	CMhalt,		"halt",		1,
 	CMreboot,	"reboot",	0,
 	CMpanic,	"panic",	0,
+	CMrdb,		"rdb",		0,
 };
 
 void
@@ -740,6 +742,11 @@
 		case CMpanic:
 			*(ulong*)0=0;
 			panic("/dev/reboot");
+		case CMrdb:
+			if(consdebug == nil)
+				consdebug = rdb;
+			consdebug();
+			break;
 		}
 		poperror();
 		free(cb);
--