Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sandpoint/sandpoint A temporary solution to have KU...
details: https://anonhg.NetBSD.org/src/rev/690b9da0a9e7
branches: trunk
changeset: 779225:690b9da0a9e7
user: nisimura <nisimura%NetBSD.org@localhost>
date: Fri May 11 21:40:49 2012 +0000
description:
A temporary solution to have KURO-BOX/T4 two way "dialogue" style
sat protocol. Need more work for robustness. Unbreak the previous
commit made by accident.
diffstat:
sys/arch/sandpoint/sandpoint/satmgr.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (28 lines):
diff -r d1c609fb43f1 -r 690b9da0a9e7 sys/arch/sandpoint/sandpoint/satmgr.c
--- a/sys/arch/sandpoint/sandpoint/satmgr.c Fri May 11 21:22:10 2012 +0000
+++ b/sys/arch/sandpoint/sandpoint/satmgr.c Fri May 11 21:40:49 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: satmgr.c,v 1.21 2012/05/11 21:12:34 nisimura Exp $ */
+/* $NetBSD: satmgr.c,v 1.22 2012/05/11 21:40:49 nisimura Exp $ */
/*-
* Copyright (c) 2010 The NetBSD Foundation, Inc.
@@ -695,9 +695,6 @@
int n;
mutex_enter(&sc->sc_replk);
- mutex_exit(&sc->sc_replk);
- return;
- }
n = min(sc->sc_wr_cnt, 16);
while (n-- > 0) {
CSR_WRITE(sc, THR, *sc->sc_wr_ptr);
@@ -1039,7 +1036,7 @@
send_sat(sc, "\x80\x36"); /* query button state */
mutex_enter(&sc->sc_replk);
sc->sc_btn_cnt = 0;
- mutex_exit(sc->sc_replk);
+ mutex_exit(&sc->sc_replk);
return 1;
}
Home |
Main Index |
Thread Index |
Old Index