aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/asm.h
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-06-24 10:37:57 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-09 03:14:04 -0400
commit40faf463e62de0b29722910eded7dd26cd8b684b (patch)
treeab7a576aec523d750944c53f6c7f340b4a1a3a3a /include/asm-x86/asm.h
parentef8c1a2d0e990d0f4f15e1d45eeb262755e3d4c3 (diff)
x86: introduce __ASM_REG macro.
There are situations in which the architecture wants to use the register that represents its word-size, whatever it is. For those, introduce __ASM_REG in asm.h, along with the first users _ASM_AX and _ASM_DX. They have users waiting for it, namely the getuser functions. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: H. Peter Anvin <hpa@zytor.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/asm.h')
-rw-r--r--include/asm-x86/asm.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/asm-x86/asm.h b/include/asm-x86/asm.h
index 70939820c55f..435402e623e1 100644
--- a/include/asm-x86/asm.h
+++ b/include/asm-x86/asm.h
@@ -14,6 +14,7 @@
14#endif 14#endif
15 15
16#define __ASM_SIZE(inst) __ASM_SEL(inst##l, inst##q) 16#define __ASM_SIZE(inst) __ASM_SEL(inst##l, inst##q)
17#define __ASM_REG(reg) __ASM_SEL(e##reg, r##reg)
17 18
18#define _ASM_PTR __ASM_SEL(.long, .quad) 19#define _ASM_PTR __ASM_SEL(.long, .quad)
19#define _ASM_ALIGN __ASM_SEL(.balign 4, .balign 8) 20#define _ASM_ALIGN __ASM_SEL(.balign 4, .balign 8)
@@ -24,6 +25,8 @@
24#define _ASM_ADD __ASM_SIZE(add) 25#define _ASM_ADD __ASM_SIZE(add)
25#define _ASM_SUB __ASM_SIZE(sub) 26#define _ASM_SUB __ASM_SIZE(sub)
26#define _ASM_XADD __ASM_SIZE(xadd) 27#define _ASM_XADD __ASM_SIZE(xadd)
28#define _ASM_AX __ASM_REG(ax)
29#define _ASM_DX __ASM_REG(dx)
27 30
28/* Exception table entry */ 31/* Exception table entry */
29# define _ASM_EXTABLE(from,to) \ 32# define _ASM_EXTABLE(from,to) \