summaryrefslogtreecommitdiff
path: root/pkg/u-boot/patch/0004-Use-__bswap32-instead-of-__builtin_bswap32.patch
blob: 1c693b680d02a1437f2b21c46a607c9026a71561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 65a767fb096d5cc125c2981dfbc298458091567f Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Sat, 1 May 2021 01:39:26 -0700
Subject: [PATCH] Use __bswap32 instead of __builtin_bswap32

---
 tools/zynqmpbif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c
index 4d529ed785..233464cb47 100644
--- a/tools/zynqmpbif.c
+++ b/tools/zynqmpbif.c
@@ -517,7 +517,7 @@ static int bif_add_bit(struct bif_entry *bf)
 	debug("Bitstream Length: 0x%x\n", bitlen);
 	for (i = 0; i < bitlen; i += sizeof(uint32_t)) {
 		uint32_t *bitbin32 = (uint32_t *)&bitbin[i];
-		*bitbin32 = __builtin_bswap32(*bitbin32);
+		*bitbin32 = __bswap32(*bitbin32);
 	}
 
 	if (!bf->dest_dev)
-- 
2.31.1