diff options
author | bde <bde@FreeBSD.org> | 1996-09-14 10:53:48 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1996-09-14 10:53:48 +0000 |
commit | be288921b45d5073bb512818920532b5d6380788 (patch) | |
tree | b1186862e529ef12f30328de53e6db11cc3bf46c /sys/amd64 | |
parent | 6145ccc494dd78b38c63342fcc1fbcd59fd4eff9 (diff) | |
download | FreeBSD-src-be288921b45d5073bb512818920532b5d6380788.zip FreeBSD-src-be288921b45d5073bb512818920532b5d6380788.tar.gz |
Attached simple external ddb commands `show rtc', `show pgrpdump'
and `show cbstat'. The pgrpdump code was previously controlled by
`#ifdef DEBUG'.
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/tsc.c | 12 | ||||
-rw-r--r-- | sys/amd64/isa/clock.c | 12 |
2 files changed, 14 insertions, 10 deletions
diff --git a/sys/amd64/amd64/tsc.c b/sys/amd64/amd64/tsc.c index 3413dca..54a83d05 100644 --- a/sys/amd64/amd64/tsc.c +++ b/sys/amd64/amd64/tsc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.67 1996/08/02 21:16:26 bde Exp $ + * $Id: clock.c,v 1.68 1996/09/14 04:27:39 bde Exp $ */ /* @@ -47,7 +47,7 @@ /* * Primitive clock interrupt routines. */ -#include "opt_ddb.h" + #include "opt_clock.h" #include <sys/param.h> @@ -323,16 +323,18 @@ rtcintr(struct clockframe frame) } } +#include "opt_ddb.h" #ifdef DDB -static void -DDB_printrtc(void) +#include <ddb/ddb.h> + +DB_SHOW_COMMAND(rtc, rtc) { printf("%02x/%02x/%02x %02x:%02x:%02x, A = %02x, B = %02x, C = %02x\n", rtcin(RTC_YEAR), rtcin(RTC_MONTH), rtcin(RTC_DAY), rtcin(RTC_HRS), rtcin(RTC_MIN), rtcin(RTC_SEC), rtcin(RTC_STATUSA), rtcin(RTC_STATUSB), rtcin(RTC_INTR)); } -#endif +#endif /* DDB */ static int getit(void) diff --git a/sys/amd64/isa/clock.c b/sys/amd64/isa/clock.c index 3413dca..54a83d05 100644 --- a/sys/amd64/isa/clock.c +++ b/sys/amd64/isa/clock.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.67 1996/08/02 21:16:26 bde Exp $ + * $Id: clock.c,v 1.68 1996/09/14 04:27:39 bde Exp $ */ /* @@ -47,7 +47,7 @@ /* * Primitive clock interrupt routines. */ -#include "opt_ddb.h" + #include "opt_clock.h" #include <sys/param.h> @@ -323,16 +323,18 @@ rtcintr(struct clockframe frame) } } +#include "opt_ddb.h" #ifdef DDB -static void -DDB_printrtc(void) +#include <ddb/ddb.h> + +DB_SHOW_COMMAND(rtc, rtc) { printf("%02x/%02x/%02x %02x:%02x:%02x, A = %02x, B = %02x, C = %02x\n", rtcin(RTC_YEAR), rtcin(RTC_MONTH), rtcin(RTC_DAY), rtcin(RTC_HRS), rtcin(RTC_MIN), rtcin(RTC_SEC), rtcin(RTC_STATUSA), rtcin(RTC_STATUSB), rtcin(RTC_INTR)); } -#endif +#endif /* DDB */ static int getit(void) |