]>
Commit | Line | Data |
---|---|---|
1da177e4 LT |
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 | ||
1da177e4 LT |
6 | #include <asm/ptrace.h> |
7 | #include <asm/psr.h> | |
8 | ||
9 | .text | |
10 | .align 4 | |
11 | ||
12 | .globl __atomic_begin | |
13 | __atomic_begin: | |
14 | ||
15 | #ifndef CONFIG_SMP | |
1da177e4 LT |
16 | .globl ___xchg32_sun4md |
17 | ___xchg32_sun4md: | |
18 | swap [%g1], %g2 | |
19 | jmpl %o7 + 8, %g0 | |
20 | mov %g4, %o7 | |
21 | #endif | |
22 | ||
1da177e4 LT |
23 | .globl __atomic_end |
24 | __atomic_end: |