Date: Mon, 3 Apr 2006 00:08:35 GMT From: John-Mark Gurney <jmg@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 94501 for review Message-ID: <200604030008.k3308ZQs014449@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=94501 Change 94501 by jmg@jmg_arlene on 2006/04/03 00:07:36 the hypervisor api does the byte swizzle for us... Affected files ... .. //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#16 edit Differences ... ==== //depot/projects/kmacy_sun4v/src/sys/sun4v/sun4v/hv_pci.c#16 (text+ko) ==== @@ -201,10 +201,10 @@ ret = data & 0xff; break; case 2: - ret = le16toh(data & 0xffff); + ret = data & 0xffff; break; case 4: - ret = le32toh(data); + ret = data; break; default: ret = -1; @@ -233,10 +233,10 @@ data = val; break; case 2: - data = htole16(val); + data = val & 0xffff; break; case 4: - data = htole32(val); + data = val; break; default: panic("unsupported width: %d", width);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604030008.k3308ZQs014449>