diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-31 12:22:39 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2010-08-31 12:22:39 +0000 |
commit | dfee673f1ea71a533536379dfa7303abcf75e9be (patch) | |
tree | 3f6741bf35edfcdac7a265089885a81f50179c02 /sys | |
parent | b7d7ad1eba8cc5d3a33da1372036c3cc489d724c (diff) |
Correctly enable wakeup interrupts after splhigh().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/loongson/dev/kb3310.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/loongson/dev/kb3310.c b/sys/arch/loongson/dev/kb3310.c index 2cf28c8d6d7..e986d6e7298 100644 --- a/sys/arch/loongson/dev/kb3310.c +++ b/sys/arch/loongson/dev/kb3310.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kb3310.c,v 1.12 2010/08/31 10:24:46 pirofti Exp $ */ +/* $OpenBSD: kb3310.c,v 1.13 2010/08/31 12:22:38 miod Exp $ */ /* * Copyright (c) 2010 Otto Moerbeek <otto@drijf.net> * @@ -450,7 +450,7 @@ ykbec_suspend() DPRINTF(("IRQ\n")); ykbec_apmspl = splhigh(); /* enable isa irq 1 and 12 (PS/2 input devices) */ - loongson_set_isa_imr(0xffff & ~(1 << 1) & ~(1 << 12)); + loongson_set_isa_imr((1 << 1) | (1 << 12)); /* USB */ DPRINTF(("USB\n")); |