Lines 28-38
Link Here
|
28 |
|
28 |
|
29 |
|
29 |
|
30 |
# ifndef PT_EI |
30 |
# ifndef PT_EI |
31 |
# define PT_EI extern inline __attribute__ ((always_inline)) |
31 |
# define PT_EI static inline __attribute__ ((always_inline)) |
32 |
# endif |
32 |
# endif |
33 |
|
33 |
|
34 |
extern long int testandset (int *__spinlock); |
34 |
//extern long int testandset (int *__spinlock); |
35 |
extern int __compare_and_swap (long int *__p, long int __oldval, long int __newval); |
35 |
//extern int __compare_and_swap (long int *__p, long int __oldval, long int __newval); |
36 |
|
36 |
|
37 |
/* Get some notion of the current stack. Need not be exactly the top |
37 |
/* Get some notion of the current stack. Need not be exactly the top |
38 |
of the stack, just something somewhere in the current frame. */ |
38 |
of the stack, just something somewhere in the current frame. */ |