ref: 59aaec97ca3fbceeb03477df4f80bf53243f1f6b
parent: d390eb88846f4a3f094136c764d3384afcf9d13a
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);