Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/macppc/dev turn on polling using cnpollc
details: https://anonhg.NetBSD.org/src/rev/f697cd9db1d8
branches: trunk
changeset: 522633:f697cd9db1d8
user: dbj <dbj%NetBSD.org@localhost>
date: Sat Feb 23 10:51:50 2002 +0000
description:
turn on polling using cnpollc
diffstat:
sys/arch/macppc/dev/akbd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (31 lines):
diff -r 271d764e7451 -r f697cd9db1d8 sys/arch/macppc/dev/akbd.c
--- a/sys/arch/macppc/dev/akbd.c Sat Feb 23 10:47:16 2002 +0000
+++ b/sys/arch/macppc/dev/akbd.c Sat Feb 23 10:51:50 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: akbd.c,v 1.19 2002/01/02 20:21:12 dbj Exp $ */
+/* $NetBSD: akbd.c,v 1.20 2002/02/23 10:51:50 dbj Exp $ */
/*
* Copyright (C) 1998 Colin Wood
@@ -529,14 +529,13 @@
s = splhigh();
polledkey = -1;
- adb_polling = 1;
+ KASSERT(adb_polling);
while (polledkey == -1) {
adb_intr();
DELAY(10000); /* XXX */
}
- adb_polling = 0;
splx(s);
key = polledkey;
@@ -552,4 +551,5 @@
void *v;
int on;
{
+ adb_polling = on;
}
Home |
Main Index |
Thread Index |
Old Index