aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/entry_64.S
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2014-02-04 00:05:53 -0500
committerAnton Blanchard <anton@samba.org>2014-04-22 20:05:17 -0400
commitc857c43b34ecbfd686d860d4e85281d3750e3b47 (patch)
treed8e69b2bbdb52a7623f8139edfa7e5ee7dc68048 /arch/powerpc/kernel/entry_64.S
parentad0289e4acf2bd6989e745cff3b4f0781a919e30 (diff)
powerpc: Don't use a function descriptor for system call table
There is no need to create a function descriptor for the system call table. By using one we force the system call table into the text section and it really belongs in the rodata section. This also removes another use of dot symbols. Signed-off-by: Anton Blanchard <anton@samba.org>
Diffstat (limited to 'arch/powerpc/kernel/entry_64.S')
-rw-r--r--arch/powerpc/kernel/entry_64.S6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/kernel/entry_64.S b/arch/powerpc/kernel/entry_64.S
index 2d92eeb08b76..2662f02ba6cf 100644
--- a/arch/powerpc/kernel/entry_64.S
+++ b/arch/powerpc/kernel/entry_64.S
@@ -39,8 +39,8 @@
39 * System calls. 39 * System calls.
40 */ 40 */
41 .section ".toc","aw" 41 .section ".toc","aw"
42.SYS_CALL_TABLE: 42SYS_CALL_TABLE:
43 .tc .sys_call_table[TC],.sys_call_table 43 .tc sys_call_table[TC],sys_call_table
44 44
45/* This value is used to mark exception frames on the stack. */ 45/* This value is used to mark exception frames on the stack. */
46exception_marker: 46exception_marker:
@@ -162,7 +162,7 @@ system_call: /* label this so stack traces look sane */
162 * Need to vector to 32 Bit or default sys_call_table here, 162 * Need to vector to 32 Bit or default sys_call_table here,
163 * based on caller's run-mode / personality. 163 * based on caller's run-mode / personality.
164 */ 164 */
165 ld r11,.SYS_CALL_TABLE@toc(2) 165 ld r11,SYS_CALL_TABLE@toc(2)
166 andi. r10,r10,_TIF_32BIT 166 andi. r10,r10,_TIF_32BIT
167 beq 15f 167 beq 15f
168 addi r11,r11,8 /* use 32-bit syscall entries */ 168 addi r11,r11,8 /* use 32-bit syscall entries */