Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/sdmmc Make this work on big endian machines



details:   https://anonhg.NetBSD.org/src/rev/1371f1ed1e3a
branches:  trunk
changeset: 1011223:1371f1ed1e3a
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 23 10:09:33 2020 +0000

description:
Make this work on big endian machines

diffstat:

 sys/dev/sdmmc/if_bwfm_sdio.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f65f611f69d4 -r 1371f1ed1e3a sys/dev/sdmmc/if_bwfm_sdio.c
--- a/sys/dev/sdmmc/if_bwfm_sdio.c      Tue Jun 23 06:28:01 2020 +0000
+++ b/sys/dev/sdmmc/if_bwfm_sdio.c      Tue Jun 23 10:09:33 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_bwfm_sdio.c,v 1.18 2020/05/30 15:55:47 jdolecek Exp $ */
+/* $NetBSD: if_bwfm_sdio.c,v 1.19 2020/06/23 10:09:33 martin Exp $ */
 /* $OpenBSD: if_bwfm_sdio.c,v 1.1 2017/10/11 17:19:50 patrick Exp $ */
 /*
  * Copyright (c) 2010-2016 Broadcom Corporation
@@ -689,7 +689,7 @@
                sf = sc->sc_sf[1];
 
        rv = sdmmc_io_read_4(sf, addr);
-       return rv;
+       return htole32(rv);
 }
 
 static void
@@ -732,7 +732,7 @@
        else
                sf = sc->sc_sf[1];
 
-       sdmmc_io_write_4(sf, addr, data);
+       sdmmc_io_write_4(sf, addr, htole32(data));
 }
 
 static int



Home | Main Index | Thread Index | Old Index