From 2d9f11e99924b626ec182b1739fc9ba47b2b770f Mon Sep 17 00:00:00 2001 From: mark Date: Mon, 3 Jun 1996 21:41:09 +0000 Subject: [PATCH] Add visibale debugging info for the RC7500 board. --- sys/arch/arm32/arm32/clock.c | 11 ++++++++++- sys/arch/arm32/iomd/iomd_clock.c | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/sys/arch/arm32/arm32/clock.c b/sys/arch/arm32/arm32/clock.c index 203830aee654..883405c2bd80 100644 --- a/sys/arch/arm32/arm32/clock.c +++ b/sys/arch/arm32/arm32/clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: clock.c,v 1.4 1996/04/19 19:39:17 mark Exp $ */ +/* $NetBSD: clock.c,v 1.5 1996/06/03 21:41:09 mark Exp $ */ /* * Copyright (c) 1994-1996 Mark Brinicombe. @@ -77,6 +77,15 @@ int clockhandler(frame) struct clockframe *frame; { +#ifdef RC7500 + extern void setleds(); + static int leds = 0; + + setleds(1 << leds); + leds++; + if (leds >> 3) + leds = 0; +#endif hardclock(frame); return(1); } diff --git a/sys/arch/arm32/iomd/iomd_clock.c b/sys/arch/arm32/iomd/iomd_clock.c index e22486eed251..9120aa2267e4 100644 --- a/sys/arch/arm32/iomd/iomd_clock.c +++ b/sys/arch/arm32/iomd/iomd_clock.c @@ -1,4 +1,4 @@ -/* $NetBSD: iomd_clock.c,v 1.4 1996/04/19 19:39:17 mark Exp $ */ +/* $NetBSD: iomd_clock.c,v 1.5 1996/06/03 21:41:09 mark Exp $ */ /* * Copyright (c) 1994-1996 Mark Brinicombe. @@ -77,6 +77,15 @@ int clockhandler(frame) struct clockframe *frame; { +#ifdef RC7500 + extern void setleds(); + static int leds = 0; + + setleds(1 << leds); + leds++; + if (leds >> 3) + leds = 0; +#endif hardclock(frame); return(1); }