logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0004-Use-__bswap32-instead-of-__builtin_bswap32.patch (755B)


  1. From 65a767fb096d5cc125c2981dfbc298458091567f Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Sat, 1 May 2021 01:39:26 -0700
  4. Subject: [PATCH] Use __bswap32 instead of __builtin_bswap32
  5. ---
  6. tools/zynqmpbif.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/tools/zynqmpbif.c b/tools/zynqmpbif.c
  9. index 4d529ed785..233464cb47 100644
  10. --- a/tools/zynqmpbif.c
  11. +++ b/tools/zynqmpbif.c
  12. @@ -517,7 +517,7 @@ static int bif_add_bit(struct bif_entry *bf)
  13. debug("Bitstream Length: 0x%x\n", bitlen);
  14. for (i = 0; i < bitlen; i += sizeof(uint32_t)) {
  15. uint32_t *bitbin32 = (uint32_t *)&bitbin[i];
  16. - *bitbin32 = __builtin_bswap32(*bitbin32);
  17. + *bitbin32 = __bswap32(*bitbin32);
  18. }
  19. if (!bf->dest_dev)
  20. --
  21. 2.31.1