Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[deliverable/linux.git] / include / asm-sh / entry-macros.S
CommitLineData
b229632a
YS
1! entry.S macro define
2
3 .macro cli
4 stc sr, r0
5 or #0xf0, r0
6 ldc r0, sr
7 .endm
8
9 .macro sti
10 mov #0xf0, r11
11 extu.b r11, r11
12 not r11, r11
13 stc sr, r10
14 and r11, r10
8b1d1654 15#ifdef CONFIG_CPU_HAS_SR_RB
b229632a
YS
16 stc k_g_imask, r11
17 or r11, r10
18#endif
19 ldc r10, sr
20 .endm
21
22 .macro get_current_thread_info, ti, tmp
8b1d1654 23#ifdef CONFIG_CPU_HAS_SR_RB
b229632a
YS
24 stc r7_bank, \ti
25#else
510c72ad 26 mov #((THREAD_SIZE - 1) >> 10) ^ 0xff, \tmp
b229632a 27 shll8 \tmp
510c72ad 28 shll2 \tmp
b229632a
YS
29 mov r15, \ti
30 and \tmp, \ti
31#endif
32 .endm
33
This page took 0.222757 seconds and 5 git commands to generate.