Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Add missed byteswap ops for BE machines in block...
details: https://anonhg.NetBSD.org/src/rev/ab3cafefcf5b
branches: trunk
changeset: 784520:ab3cafefcf5b
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Wed Jan 30 16:01:45 2013 +0000
description:
Add missed byteswap ops for BE machines in block added in rev 1.223.
diffstat:
sys/dev/usb/uhci.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 05e45bff4a6f -r ab3cafefcf5b sys/dev/usb/uhci.c
--- a/sys/dev/usb/uhci.c Wed Jan 30 15:55:27 2013 +0000
+++ b/sys/dev/usb/uhci.c Wed Jan 30 16:01:45 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uhci.c,v 1.254 2013/01/29 19:27:36 christos Exp $ */
+/* $NetBSD: uhci.c,v 1.255 2013/01/30 16:01:45 tsutsui Exp $ */
/*
* Copyright (c) 1998, 2004, 2011, 2012 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.254 2013/01/29 19:27:36 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhci.c,v 1.255 2013/01/30 16:01:45 tsutsui Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1865,8 +1865,8 @@
p->offs + offsetof(uhci_td_t, td_link),
sizeof(p->td.td_link),
BUS_DMASYNC_POSTWRITE | BUS_DMASYNC_POSTREAD);
- if ((p->td.td_link & UHCI_PTR_T) == 0) {
- p->td.td_link = UHCI_PTR_T;
+ if ((le32toh(p->td.td_link) & UHCI_PTR_T) == 0) {
+ p->td.td_link = htole32(UHCI_PTR_T);
usb_syncmem(&p->dma,
p->offs + offsetof(uhci_td_t, td_link),
sizeof(p->td.td_link),
Home |
Main Index |
Thread Index |
Old Index