123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef _PT_MACHINE_H
- #define _PT_MACHINE_H 1
- #include <sys/syscall.h>
- #include <asm/unistd.h>
- #ifndef PT_EI
- # define PT_EI __extern_always_inline
- #endif
- #define MEMORY_BARRIER() __asm__ ("memw" : : : "memory")
- PT_EI long int
- testandset (int *spinlock)
- {
- int unused = 0
- return INTERNAL_SYSCALL (xtensa, , 4, SYS_XTENSA_ATOMIC_SET,
- spinlock, 1, unused)
- }
- #define CURRENT_STACK_FRAME __builtin_frame_address (0)
- #endif
|