atomic_32.S 398 B

123456789101112131415161718192021222324
  1. /* atomic.S: Move this stuff here for better ICACHE hit rates.
  2. *
  3. * Copyright (C) 1996 David S. Miller (davem@caipfs.rutgers.edu)
  4. */
  5. #include <asm/ptrace.h>
  6. #include <asm/psr.h>
  7. .text
  8. .align 4
  9. .globl __atomic_begin
  10. __atomic_begin:
  11. #ifndef CONFIG_SMP
  12. .globl ___xchg32_sun4md
  13. ___xchg32_sun4md:
  14. swap [%g1], %g2
  15. jmpl %o7 + 8, %g0
  16. mov %g4, %o7
  17. #endif
  18. .globl __atomic_end
  19. __atomic_end: