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/9ad32ee4f7de
branches: trunk
changeset: 935054:9ad32ee4f7de
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 ebb5a811cb39 -r 9ad32ee4f7de 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