diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-07-09 21:40:25 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2007-07-09 21:40:25 +0000 |
commit | bf03162c3486044b14d879369dde07477a140a5e (patch) | |
tree | 1e5eb52f20730c3b42c7789f6ab43d19dba1b6fd | |
parent | ea0a650327b839bb8a376744e4ade14c8dcc0550 (diff) |
change the behaviour of the LED on the O2 so that it's red in user mode
and green when idling.
from Joel Sing <joel at ionix.com.au>
ok miod@
-rw-r--r-- | sys/arch/sgi/localbus/macebus.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sgi/localbus/macebus.c b/sys/arch/sgi/localbus/macebus.c index 555275d380d..f02bafba377 100644 --- a/sys/arch/sgi/localbus/macebus.c +++ b/sys/arch/sgi/localbus/macebus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: macebus.c,v 1.25 2007/06/21 20:17:12 miod Exp $ */ +/* $OpenBSD: macebus.c,v 1.26 2007/07/09 21:40:24 jasper Exp $ */ /* * Copyright (c) 2000-2004 Opsycon AB (www.opsycon.se) @@ -786,13 +786,13 @@ macebus_aux(intrmask_t hwpend, struct trap_frame *cf) mask = bus_space_read_8(&macebus_tag, mace_h, MACE_ISA_MISC_REG); mask |= MACE_ISA_MISC_RLED_OFF | MACE_ISA_MISC_GLED_OFF; - /* GREEN - User mode */ + /* GREEN - Idle */ /* AMBER - System mode */ - /* RED - IDLE */ + /* RED - User Mode */ if (cf->sr & SR_KSU_USER) { - mask &= ~MACE_ISA_MISC_GLED_OFF; - } else if (cf->pc >= (long)idle && cf->pc < (long)e_idle) { mask &= ~MACE_ISA_MISC_RLED_OFF; + } else if (cf->pc >= (long)idle && cf->pc < (long)e_idle) { + mask &= ~MACE_ISA_MISC_GLED_OFF; } else { mask &= ~(MACE_ISA_MISC_RLED_OFF | MACE_ISA_MISC_GLED_OFF); } |