From owner-cvs-src-old@FreeBSD.ORG Mon May 30 06:24:03 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4870C10657B0 for ; Mon, 30 May 2011 06:24:03 +0000 (UTC) (envelope-from jchandra@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 366828FC12 for ; Mon, 30 May 2011 06:24:03 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p4U6O3ZV023652 for ; Mon, 30 May 2011 06:24:03 GMT (envelope-from jchandra@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p4U6O3ow023651 for cvs-src-old@freebsd.org; Mon, 30 May 2011 06:24:03 GMT (envelope-from jchandra@repoman.freebsd.org) Message-Id: <201105300624.p4U6O3ow023651@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jchandra@repoman.freebsd.org using -f From: "Jayachandran C." Date: Mon, 30 May 2011 06:23:51 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/mmc mmc.c mmcvar.h src/sys/dev/sdhci sdhci.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 May 2011 06:24:03 -0000 jchandra 2011-05-30 06:23:51 UTC FreeBSD src repository Modified files: sys/dev/mmc mmc.c mmcvar.h sys/dev/sdhci sdhci.c Log: SVN rev 222475 on 2011-05-30 06:23:51Z by jchandra Fix read_ivar implementation for MMC and SD. 1. Both mmc_read_ivar() and sdhci_read_ivar() use the expression '*(int *)result = val' to assign to result which is uintptr_t *. This does not work on big-endian 64 bit systems. 2. The media_size ivar is declared as 'off_t' which does not fit into uintptr_t in 32bit systems, change this to long. Submitted by: kanthms at netlogicmicro com (initial version) Revision Changes Path 1.42 +11 -11 src/sys/dev/mmc/mmc.c 1.10 +1 -1 src/sys/dev/mmc/mmcvar.h 1.10 +14 -14 src/sys/dev/sdhci/sdhci.c