Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcarm/dev Oops, the direction of the shift is oppo...
details: https://anonhg.NetBSD.org/src/rev/3d7342cc3fed
branches: trunk
changeset: 754249:3d7342cc3fed
user: nonaka <nonaka%NetBSD.org@localhost>
date: Sat Apr 24 21:51:56 2010 +0000
description:
Oops, the direction of the shift is opposite.
diffstat:
sys/arch/hpcarm/dev/wzero3_kbd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 77bdbda109b3 -r 3d7342cc3fed sys/arch/hpcarm/dev/wzero3_kbd.c
--- a/sys/arch/hpcarm/dev/wzero3_kbd.c Sat Apr 24 21:34:29 2010 +0000
+++ b/sys/arch/hpcarm/dev/wzero3_kbd.c Sat Apr 24 21:51:56 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wzero3_kbd.c,v 1.2 2010/04/24 21:21:28 nonaka Exp $ */
+/* $NetBSD: wzero3_kbd.c,v 1.3 2010/04/24 21:51:56 nonaka Exp $ */
/*
* Copyright (c) 2008, 2009 NONAKA Kimihiro <nonaka%netbsd.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wzero3_kbd.c,v 1.2 2010/04/24 21:21:28 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wzero3_kbd.c,v 1.3 2010/04/24 21:51:56 nonaka Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -685,7 +685,7 @@
CSR_WRITE1(KBDCHARGE, 0);
/* select scan column# */
- keycol = 1 >> col;
+ keycol = 1 << col;
CSR_WRITE1(KBDCOL_L, keycol & 0xff);
CSR_WRITE1(KBDCOL_U, keycol >> 8);
delay(KEYWAIT);
Home |
Main Index |
Thread Index |
Old Index