logo

oasis

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

0001-Use-__asm__-keyword-instead-of-asm.patch (1129B)


  1. From 2d278467c649c814853b0c43c142f6146512a4fc Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Wed, 7 Aug 2024 15:00:01 -0700
  4. Subject: [PATCH] Use __asm__ keyword instead of asm
  5. ---
  6. src/curve25519.c | 2 +-
  7. src/encoding.c | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/src/curve25519.c b/src/curve25519.c
  10. index 7121d1e..d3bc005 100644
  11. --- a/src/curve25519.c
  12. +++ b/src/curve25519.c
  13. @@ -76,7 +76,7 @@ static __always_inline __unused void put_unaligned_le64(u64 s, u8 *d)
  14. static noinline void memzero_explicit(void *s, size_t count)
  15. {
  16. memset(s, 0, count);
  17. - asm volatile("": :"r"(s) : "memory");
  18. + __asm__ volatile("": :"r"(s) : "memory");
  19. }
  20. #ifdef __SIZEOF_INT128__
  21. diff --git a/src/encoding.c b/src/encoding.c
  22. index 9b2cda5..57a7659 100644
  23. --- a/src/encoding.c
  24. +++ b/src/encoding.c
  25. @@ -119,7 +119,7 @@ bool key_is_zero(const uint8_t key[static WG_KEY_LEN])
  26. for (unsigned int i = 0; i < WG_KEY_LEN; ++i) {
  27. acc |= key[i];
  28. - asm volatile("" : "=r"(acc) : "0"(acc));
  29. + __asm__ volatile("" : "=r"(acc) : "0"(acc));
  30. }
  31. return 1 & ((acc - 1) >> 8);
  32. }
  33. --
  34. 2.44.0