diff options
author | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-12 20:15:39 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@centraldogma> | 2011-05-12 20:15:39 +0000 |
commit | 59aaec97ca3fbceeb03477df4f80bf53243f1f6b (patch) | |
tree | 595338c44aa0bd6304dda137995d29a1a9cac5c7 /sys/src/9/port/devcons.c | |
parent | d390eb88846f4a3f094136c764d3384afcf9d13a (diff) |
add rdb message to /dev/reboot
Diffstat (limited to 'sys/src/9/port/devcons.c')
-rw-r--r-- | sys/src/9/port/devcons.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sys/src/9/port/devcons.c b/sys/src/9/port/devcons.c index 5cd736662..e1b7a57f1 100644 --- a/sys/src/9/port/devcons.c +++ b/sys/src/9/port/devcons.c @@ -32,6 +32,7 @@ enum CMhalt, CMreboot, CMpanic, + CMrdb, }; Cmdtab rebootmsg[] = @@ -39,6 +40,7 @@ Cmdtab rebootmsg[] = CMhalt, "halt", 1, CMreboot, "reboot", 0, CMpanic, "panic", 0, + CMrdb, "rdb", 0, }; void @@ -740,6 +742,11 @@ conswrite(Chan *c, void *va, long n, vlong off) case CMpanic: *(ulong*)0=0; panic("/dev/reboot"); + case CMrdb: + if(consdebug == nil) + consdebug = rdb; + consdebug(); + break; } poperror(); free(cb); |