Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 May 2011 06:23:51 +0000 (UTC)
From:      "Jayachandran C." <jchandra@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/mmc mmc.c mmcvar.h src/sys/dev/sdhci sdhci.c
Message-ID:  <201105300624.p4U6O3ow023651@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105300624.p4U6O3ow023651>