Guest User

Untitled

a guest
May 14th, 2025
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. #include <stddef.h>
  2. #include <stdint.h>
  3.  
  4. /*
  5. /data/software/venus-master/build/tmp/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/nodejs/22.15.0/recipe-sysroot-native/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-gcc -mfpu=neon-vfpv4 -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/data/software/venus-master/build/tmp/work/cortexa7hf-neon-vfpv4-oe-linux-gnueabi/nodejs/22.15.0/recipe-sysroot -O2 -c -o ldrd.o ldrd.c
  6. */
  7.  
  8. void *ToWaitLocation(uint8_t *array_buffer, size_t addr)
  9. {
  10. return array_buffer + addr;
  11. }
  12.  
  13. void WaitSync(void *isolate, uint8_t *array_buffer, size_t addr, int64_t value)
  14. {
  15. int64_t *wait_location = (int64_t *) ToWaitLocation(array_buffer, addr);
  16. value = __atomic_load_n(wait_location, __ATOMIC_SEQ_CST);
  17. }
  18.  
  19. ----------------------------------------------------------------------------------------------------------
  20.  
  21. Disassembly of section .text:
  22.  
  23. 00000000 <ToWaitLocation>:
  24. 0: e0800001 add r0, r0, r1
  25. 4: e12fff1e bx lr
  26.  
  27. 00000008 <WaitSync>:
  28. 8: f57ff05b dmb ish
  29. c: e18120d2 ldrd r2, [r1, r2]
  30. 10: f57ff05b dmb ish
  31. 14: e12fff1e bx lr
  32.  
Advertisement
Add Comment
Please, Sign In to add comment