aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2008-01-30 07:30:41 -0500
committerIngo Molnar <mingo@elte.hu>2008-01-30 07:30:41 -0500
commit108b545137b03ec1d6a5765017d57f86056bf57c (patch)
treeea3e18e6a770e606cba6e56d94ace646846f2a26 /arch/x86/kernel
parentf6b46ebf904f69a73907a5e6b1ed2228e3f03d9e (diff)
x86 vDSO: harmonize asm-offsets
This change harmonizes the asm-offsets macros used in the 32-bit vDSO across 32-bit and 64-bit builds. It's a purely cosmetic change for now, but it paves the way for consolidating the 32-bit vDSO builds. Signed-off-by: Roland McGrath <roland@redhat.com> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r--arch/x86/kernel/asm-offsets_32.c20
-rw-r--r--arch/x86/kernel/vsyscall-sigreturn_32.S54
2 files changed, 37 insertions, 37 deletions
diff --git a/arch/x86/kernel/asm-offsets_32.c b/arch/x86/kernel/asm-offsets_32.c
index c1ccfabb4a9e..4f750ec810f6 100644
--- a/arch/x86/kernel/asm-offsets_32.c
+++ b/arch/x86/kernel/asm-offsets_32.c
@@ -38,15 +38,15 @@ void foo(void);
38 38
39void foo(void) 39void foo(void)
40{ 40{
41 OFFSET(SIGCONTEXT_eax, sigcontext, eax); 41 OFFSET(IA32_SIGCONTEXT_eax, sigcontext, eax);
42 OFFSET(SIGCONTEXT_ebx, sigcontext, ebx); 42 OFFSET(IA32_SIGCONTEXT_ebx, sigcontext, ebx);
43 OFFSET(SIGCONTEXT_ecx, sigcontext, ecx); 43 OFFSET(IA32_SIGCONTEXT_ecx, sigcontext, ecx);
44 OFFSET(SIGCONTEXT_edx, sigcontext, edx); 44 OFFSET(IA32_SIGCONTEXT_edx, sigcontext, edx);
45 OFFSET(SIGCONTEXT_esi, sigcontext, esi); 45 OFFSET(IA32_SIGCONTEXT_esi, sigcontext, esi);
46 OFFSET(SIGCONTEXT_edi, sigcontext, edi); 46 OFFSET(IA32_SIGCONTEXT_edi, sigcontext, edi);
47 OFFSET(SIGCONTEXT_ebp, sigcontext, ebp); 47 OFFSET(IA32_SIGCONTEXT_ebp, sigcontext, ebp);
48 OFFSET(SIGCONTEXT_esp, sigcontext, esp); 48 OFFSET(IA32_SIGCONTEXT_esp, sigcontext, esp);
49 OFFSET(SIGCONTEXT_eip, sigcontext, eip); 49 OFFSET(IA32_SIGCONTEXT_eip, sigcontext, eip);
50 BLANK(); 50 BLANK();
51 51
52 OFFSET(CPUINFO_x86, cpuinfo_x86, x86); 52 OFFSET(CPUINFO_x86, cpuinfo_x86, x86);
@@ -94,7 +94,7 @@ void foo(void)
94 BLANK(); 94 BLANK();
95 95
96 OFFSET(EXEC_DOMAIN_handler, exec_domain, handler); 96 OFFSET(EXEC_DOMAIN_handler, exec_domain, handler);
97 OFFSET(RT_SIGFRAME_sigcontext, rt_sigframe, uc.uc_mcontext); 97 OFFSET(IA32_RT_SIGFRAME_sigcontext, rt_sigframe, uc.uc_mcontext);
98 BLANK(); 98 BLANK();
99 99
100 OFFSET(pbe_address, pbe, address); 100 OFFSET(pbe_address, pbe, address);
diff --git a/arch/x86/kernel/vsyscall-sigreturn_32.S b/arch/x86/kernel/vsyscall-sigreturn_32.S
index a92262f41659..e939253ad654 100644
--- a/arch/x86/kernel/vsyscall-sigreturn_32.S
+++ b/arch/x86/kernel/vsyscall-sigreturn_32.S
@@ -91,27 +91,27 @@ __kernel_rt_sigreturn:
91 .sleb128 offset; /* offset */ \ 91 .sleb128 offset; /* offset */ \
921: 921:
93 93
94 do_cfa_expr(SIGCONTEXT_esp+4) 94 do_cfa_expr(IA32_SIGCONTEXT_esp+4)
95 do_expr(0, SIGCONTEXT_eax+4) 95 do_expr(0, IA32_SIGCONTEXT_eax+4)
96 do_expr(1, SIGCONTEXT_ecx+4) 96 do_expr(1, IA32_SIGCONTEXT_ecx+4)
97 do_expr(2, SIGCONTEXT_edx+4) 97 do_expr(2, IA32_SIGCONTEXT_edx+4)
98 do_expr(3, SIGCONTEXT_ebx+4) 98 do_expr(3, IA32_SIGCONTEXT_ebx+4)
99 do_expr(5, SIGCONTEXT_ebp+4) 99 do_expr(5, IA32_SIGCONTEXT_ebp+4)
100 do_expr(6, SIGCONTEXT_esi+4) 100 do_expr(6, IA32_SIGCONTEXT_esi+4)
101 do_expr(7, SIGCONTEXT_edi+4) 101 do_expr(7, IA32_SIGCONTEXT_edi+4)
102 do_expr(8, SIGCONTEXT_eip+4) 102 do_expr(8, IA32_SIGCONTEXT_eip+4)
103 103
104 .byte 0x42 /* DW_CFA_advance_loc 2 -- nop; popl eax. */ 104 .byte 0x42 /* DW_CFA_advance_loc 2 -- nop; popl eax. */
105 105
106 do_cfa_expr(SIGCONTEXT_esp) 106 do_cfa_expr(IA32_SIGCONTEXT_esp)
107 do_expr(0, SIGCONTEXT_eax) 107 do_expr(0, IA32_SIGCONTEXT_eax)
108 do_expr(1, SIGCONTEXT_ecx) 108 do_expr(1, IA32_SIGCONTEXT_ecx)
109 do_expr(2, SIGCONTEXT_edx) 109 do_expr(2, IA32_SIGCONTEXT_edx)
110 do_expr(3, SIGCONTEXT_ebx) 110 do_expr(3, IA32_SIGCONTEXT_ebx)
111 do_expr(5, SIGCONTEXT_ebp) 111 do_expr(5, IA32_SIGCONTEXT_ebp)
112 do_expr(6, SIGCONTEXT_esi) 112 do_expr(6, IA32_SIGCONTEXT_esi)
113 do_expr(7, SIGCONTEXT_edi) 113 do_expr(7, IA32_SIGCONTEXT_edi)
114 do_expr(8, SIGCONTEXT_eip) 114 do_expr(8, IA32_SIGCONTEXT_eip)
115 115
116 .align 4 116 .align 4
117.LENDFDEDLSI1: 117.LENDFDEDLSI1:
@@ -128,15 +128,15 @@ __kernel_rt_sigreturn:
128 slightly less complicated than the above, since we don't 128 slightly less complicated than the above, since we don't
129 modify the stack pointer in the process. */ 129 modify the stack pointer in the process. */
130 130
131 do_cfa_expr(RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_esp) 131 do_cfa_expr(IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_esp)
132 do_expr(0, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_eax) 132 do_expr(0, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_eax)
133 do_expr(1, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_ecx) 133 do_expr(1, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_ecx)
134 do_expr(2, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_edx) 134 do_expr(2, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_edx)
135 do_expr(3, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_ebx) 135 do_expr(3, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_ebx)
136 do_expr(5, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_ebp) 136 do_expr(5, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_ebp)
137 do_expr(6, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_esi) 137 do_expr(6, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_esi)
138 do_expr(7, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_edi) 138 do_expr(7, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_edi)
139 do_expr(8, RT_SIGFRAME_sigcontext-4 + SIGCONTEXT_eip) 139 do_expr(8, IA32_RT_SIGFRAME_sigcontext-4 + IA32_SIGCONTEXT_eip)
140 140
141 .align 4 141 .align 4
142.LENDFDEDLSI2: 142.LENDFDEDLSI2: