History

x86/asm/32: Change all ENTRY+ENDPROC to SYM_FUNC_*

These are all functions which are invoked from elsewhere, so annotate them as global using the new SYM_FUNC_START and their ENDPROC's by SYM_FUNC_END. Now, ENTRY/ENDPROC can be forced to be undefined on X86, so do so.

Jiri Slaby committed 7 years ago

Commit 6d685e51 parent 5e6330626 files · +104 −108Browse files

Unified · Split

26 files
  1. arch/x86/boot/compressed/efi_stub_32.S +2 −2
  2. arch/x86/boot/compressed/head_32.S +6 −6
  3. arch/x86/crypto/serpent-sse2-i586-asm_32.S +4 −4
  4. arch/x86/crypto/twofish-i586-asm_32.S +4 −4
  5. arch/x86/entry/entry_32.S +12 −12
  6. arch/x86/kernel/head_32.S +8 −8
  7. arch/x86/lib/atomic64_386_32.S +2 −2
  8. arch/x86/lib/atomic64_cx8_32.S +16 −16
  9. arch/x86/lib/checksum_32.S +4 −4
  10. arch/x86/math-emu/div_Xsig.S +2 −2
  11. arch/x86/math-emu/div_small.S +2 −2
  12. arch/x86/math-emu/mul_Xsig.S +6 −6
  13. arch/x86/math-emu/polynom_Xsig.S +2 −2
  14. arch/x86/math-emu/reg_norm.S +4 −4
  15. arch/x86/math-emu/reg_round.S +2 −2
  16. arch/x86/math-emu/reg_u_add.S +2 −2
  17. arch/x86/math-emu/reg_u_div.S +2 −2
  18. arch/x86/math-emu/reg_u_mul.S +2 −2
  19. arch/x86/math-emu/reg_u_sub.S +2 −2
  20. arch/x86/math-emu/round_Xsig.S +4 −4
  21. arch/x86/math-emu/shr_Xsig.S +2 −2
  22. arch/x86/math-emu/wm_shrx.S +4 −4
  23. arch/x86/math-emu/wm_sqrt.S +2 −2
  24. arch/x86/platform/efi/efi_stub_32.S +2 −2
  25. arch/x86/power/hibernate_asm_32.S +4 −4
  26. include/linux/linkage.h +2 −6
arch/x86/boot/compressed/efi_stub_32.S+2−2
@@ -24,7 +24,7 @@ · 23 unmodified lines
2424 */
2525
2626 .text
27−ENTRY(efi_call_phys)
27+SYM_FUNC_START(efi_call_phys)
2828 /*
2929 * 0. The function can only be called in Linux kernel. So CS has been
3030 * set to 0x0010, DS and SS have been set to 0x0018. In EFI, I found
@@ -77,7 +77,7 @@ ENTRY(efi_call_phys) · 46 unmodified lines
7777 movl saved_return_addr(%edx), %ecx
7878 pushl %ecx
7979 ret
80−ENDPROC(efi_call_phys)
80+SYM_FUNC_END(efi_call_phys)
8181 .previous
8282
8383 .data
arch/x86/boot/compressed/head_32.S+6−6
@@ -61,7 +61,7 @@ · 60 unmodified lines
6161 .hidden _egot
6262
6363 __HEAD
64−ENTRY(startup_32)
64+SYM_FUNC_START(startup_32)
6565 cld
6666 /*
6767 * Test KEEP_SEGMENTS flag to see if the bootloader is asking
@@ -142,14 +142,14 @@ ENTRY(startup_32) · 74 unmodified lines
142142 */
143143 leal .Lrelocated(%ebx), %eax
144144 jmp *%eax
145−ENDPROC(startup_32)
145+SYM_FUNC_END(startup_32)
146146
147147 #ifdef CONFIG_EFI_STUB
148148 /*
149149 * We don't need the return address, so set up the stack so efi_main() can find
150150 * its arguments.
151151 */
152−ENTRY(efi_pe_entry)
152+SYM_FUNC_START(efi_pe_entry)
153153 add $0x4, %esp
154154
155155 call 1f
@@ -174,9 +174,9 @@ ENTRY(efi_pe_entry) · 18 unmodified lines
174174 pushl %eax
175175 pushl %ecx
176176 jmp 2f /* Skip efi_config initialization */
177−ENDPROC(efi_pe_entry)
177+SYM_FUNC_END(efi_pe_entry)
178178
179−ENTRY(efi32_stub_entry)
179+SYM_FUNC_START(efi32_stub_entry)
180180 add $0x4, %esp
181181 popl %ecx
182182 popl %edx
@@ -205,7 +205,7 @@ fail: · 22 unmodified lines
205205 movl BP_code32_start(%esi), %eax
206206 leal startup_32(%eax), %eax
207207 jmp *%eax
208−ENDPROC(efi32_stub_entry)
208+SYM_FUNC_END(efi32_stub_entry)
209209 #endif
210210
211211 .text
arch/x86/crypto/serpent-sse2-i586-asm_32.S+4−4
@@ -497,7 +497,7 @@ · 496 unmodified lines
497497 pxor t0, x3; \
498498 movdqu x3, (3*4*4)(out);
499499
500−ENTRY(__serpent_enc_blk_4way)
500+SYM_FUNC_START(__serpent_enc_blk_4way)
501501 /* input:
502502 * arg_ctx(%esp): ctx, CTX
503503 * arg_dst(%esp): dst
@@ -559,9 +559,9 @@ ENTRY(__serpent_enc_blk_4way) · 55 unmodified lines
559559 xor_blocks(%eax, RA, RB, RC, RD, RT0, RT1, RE);
560560
561561 ret;
562−ENDPROC(__serpent_enc_blk_4way)
562+SYM_FUNC_END(__serpent_enc_blk_4way)
563563
564−ENTRY(serpent_dec_blk_4way)
564+SYM_FUNC_START(serpent_dec_blk_4way)
565565 /* input:
566566 * arg_ctx(%esp): ctx, CTX
567567 * arg_dst(%esp): dst
@@ -613,4 +613,4 @@ ENTRY(serpent_dec_blk_4way) · 45 unmodified lines
613613 write_blocks(%eax, RC, RD, RB, RE, RT0, RT1, RA);
614614
615615 ret;
616−ENDPROC(serpent_dec_blk_4way)
616+SYM_FUNC_END(serpent_dec_blk_4way)
arch/x86/crypto/twofish-i586-asm_32.S+4−4
@@ -207,7 +207,7 @@ · 206 unmodified lines
207207 xor %esi, d ## D;\
208208 ror $1, d ## D;
209209
210−ENTRY(twofish_enc_blk)
210+SYM_FUNC_START(twofish_enc_blk)
211211 push %ebp /* save registers according to calling convention*/
212212 push %ebx
213213 push %esi
@@ -261,9 +261,9 @@ ENTRY(twofish_enc_blk) · 47 unmodified lines
261261 pop %ebp
262262 mov $1, %eax
263263 ret
264−ENDPROC(twofish_enc_blk)
264+SYM_FUNC_END(twofish_enc_blk)
265265
266−ENTRY(twofish_dec_blk)
266+SYM_FUNC_START(twofish_dec_blk)
267267 push %ebp /* save registers according to calling convention*/
268268 push %ebx
269269 push %esi
@@ -318,4 +318,4 @@ ENTRY(twofish_dec_blk) · 48 unmodified lines
318318 pop %ebp
319319 mov $1, %eax
320320 ret
321−ENDPROC(twofish_dec_blk)
321+SYM_FUNC_END(twofish_dec_blk)
arch/x86/entry/entry_32.S+12−12
@@ -757,7 +757,7 @@ SYM_CODE_END(__switch_to_asm) · 756 unmodified lines
757757 * asmlinkage function so its argument has to be pushed on the stack. This
758758 * wrapper creates a proper "end of stack" frame header before the call.
759759 */
760−ENTRY(schedule_tail_wrapper)
760+SYM_FUNC_START(schedule_tail_wrapper)
761761 FRAME_BEGIN
762762
763763 pushl %eax
@@ -766,7 +766,7 @@ ENTRY(schedule_tail_wrapper) · 2 unmodified lines
766766
767767 FRAME_END
768768 ret
769−ENDPROC(schedule_tail_wrapper)
769+SYM_FUNC_END(schedule_tail_wrapper)
770770 /*
771771 * A newly forked process directly context switches into this address.
772772 *
@@ -885,7 +885,7 @@ SYM_CODE_END(xen_sysenter_target) · 112 unmodified lines
885885 * ebp user stack
886886 * 0(%ebp) arg6
887887 */
888−ENTRY(entry_SYSENTER_32)
888+SYM_FUNC_START(entry_SYSENTER_32)
889889 /*
890890 * On entry-stack with all userspace-regs live - save and
891891 * restore eflags and %eax to use it as scratch-reg for the cr3
@@ -1013,7 +1013,7 @@ ENTRY(entry_SYSENTER_32) · 121 unmodified lines
10131013 popfl
10141014 jmp .Lsysenter_flags_fixed
10151015 SYM_ENTRY(__end_SYSENTER_singlestep_region, SYM_L_GLOBAL, SYM_A_NONE)
1016−ENDPROC(entry_SYSENTER_32)
1016+SYM_FUNC_END(entry_SYSENTER_32)
10171017
10181018 /*
10191019 * 32-bit legacy system call entry.
@@ -1043,7 +1043,7 @@ ENDPROC(entry_SYSENTER_32) · 23 unmodified lines
10431043 * edi arg5
10441044 * ebp arg6
10451045 */
1046−ENTRY(entry_INT80_32)
1046+SYM_FUNC_START(entry_INT80_32)
10471047 ASM_CLAC
10481048 pushl %eax /* pt_regs->orig_ax */
10491049
@@ -1120,7 +1120,7 @@ SYM_CODE_START(iret_exc) · 70 unmodified lines
11201120 SYM_CODE_END(iret_exc)
11211121 .previous
11221122 _ASM_EXTABLE(.Lirq_return, iret_exc)
1123−ENDPROC(entry_INT80_32)
1123+SYM_FUNC_END(entry_INT80_32)
11241124
11251125 .macro FIXUP_ESPFIX_STACK
11261126 /*
@@ -1213,7 +1213,7 @@ SYM_CODE_START_LOCAL(common_interrupt) · 86 unmodified lines
12131213 SYM_CODE_END(common_interrupt)
12141214
12151215 #define BUILD_INTERRUPT3(name, nr, fn) \
1216−ENTRY(name) \
1216+SYM_FUNC_START(name) \
12171217 ASM_CLAC; \
12181218 pushl $~(nr); \
12191219 SAVE_ALL switch_stacks=1; \
@@ -1222,7 +1222,7 @@ ENTRY(name) \ · 2 unmodified lines
12221222 movl %esp, %eax; \
12231223 call fn; \
12241224 jmp ret_from_intr; \
1225−ENDPROC(name)
1225+SYM_FUNC_END(name)
12261226
12271227 #define BUILD_INTERRUPT(name, nr) \
12281228 BUILD_INTERRUPT3(name, nr, smp_##name); \
@@ -1341,7 +1341,7 @@ SYM_CODE_START(spurious_interrupt_bug) · 112 unmodified lines
13411341 SYM_CODE_END(spurious_interrupt_bug)
13421342
13431343 #ifdef CONFIG_XEN_PV
1344−ENTRY(xen_hypervisor_callback)
1344+SYM_FUNC_START(xen_hypervisor_callback)
13451345 pushl $-1 /* orig_ax = -1 => not a system call */
13461346 SAVE_ALL
13471347 ENCODE_FRAME_POINTER
@@ -1369,7 +1369,7 @@ SYM_INNER_LABEL_ALIGN(xen_do_upcall, SYM_L_GLOBAL) · 21 unmodified lines
13691369 call xen_maybe_preempt_hcall
13701370 #endif
13711371 jmp ret_from_intr
1372−ENDPROC(xen_hypervisor_callback)
1372+SYM_FUNC_END(xen_hypervisor_callback)
13731373
13741374 /*
13751375 * Hypervisor uses this for application faults while it executes.
@@ -1383,7 +1383,7 @@ ENDPROC(xen_hypervisor_callback) · 7 unmodified lines
13831383 * to pop the stack frame we end up in an infinite loop of failsafe callbacks.
13841384 * We distinguish between categories by maintaining a status value in EAX.
13851385 */
1386−ENTRY(xen_failsafe_callback)
1386+SYM_FUNC_START(xen_failsafe_callback)
13871387 pushl %eax
13881388 movl $1, %eax
13891389 1: mov 4(%esp), %ds
@@ -1420,7 +1420,7 @@ ENTRY(xen_failsafe_callback) · 30 unmodified lines
14201420 _ASM_EXTABLE(2b, 7b)
14211421 _ASM_EXTABLE(3b, 8b)
14221422 _ASM_EXTABLE(4b, 9b)
1423−ENDPROC(xen_failsafe_callback)
1423+SYM_FUNC_END(xen_failsafe_callback)
14241424 #endif /* CONFIG_XEN_PV */
14251425
14261426 #ifdef CONFIG_XEN_PVHVM
arch/x86/kernel/head_32.S+8−8
@@ -180,12 +180,12 @@ SYM_CODE_END(startup_32) · 179 unmodified lines
180180 * up already except stack. We just set up stack here. Then call
181181 * start_secondary().
182182 */
183−ENTRY(start_cpu0)
183+SYM_FUNC_START(start_cpu0)
184184 movl initial_stack, %ecx
185185 movl %ecx, %esp
186186 call *(initial_code)
187187 1: jmp 1b
188−ENDPROC(start_cpu0)
188+SYM_FUNC_END(start_cpu0)
189189 #endif
190190
191191 /*
@@ -196,7 +196,7 @@ ENDPROC(start_cpu0) · 4 unmodified lines
196196 * If cpu hotplug is not supported then this code can go in init section
197197 * which will be freed later
198198 */
199−ENTRY(startup_32_smp)
199+SYM_FUNC_START(startup_32_smp)
200200 cld
201201 movl $(__BOOT_DS),%eax
202202 movl %eax,%ds
@@ -363,7 +363,7 @@ ENTRY(startup_32_smp) · 160 unmodified lines
363363
364364 call *(initial_code)
365365 1: jmp 1b
366−ENDPROC(startup_32_smp)
366+SYM_FUNC_END(startup_32_smp)
367367
368368 #include "verify_cpu.S"
369369
@@ -393,7 +393,7 @@ setup_once: · 23 unmodified lines
393393 andl $0,setup_once_ref /* Once is enough, thanks */
394394 ret
395395
396−ENTRY(early_idt_handler_array)
396+SYM_FUNC_START(early_idt_handler_array)
397397 # 36(%esp) %eflags
398398 # 32(%esp) %cs
399399 # 28(%esp) %eip
@@ -408,7 +408,7 @@ ENTRY(early_idt_handler_array) · 8 unmodified lines
408408 i = i + 1
409409 .fill early_idt_handler_array + i*EARLY_IDT_HANDLER_SIZE - ., 1, 0xcc
410410 .endr
411−ENDPROC(early_idt_handler_array)
411+SYM_FUNC_END(early_idt_handler_array)
412412
413413 SYM_CODE_START_LOCAL(early_idt_handler_common)
414414 /*
@@ -464,7 +464,7 @@ SYM_CODE_START_LOCAL(early_idt_handler_common) · 49 unmodified lines
464464 SYM_CODE_END(early_idt_handler_common)
465465
466466 /* This is the default interrupt "handler" :-) */
467−ENTRY(early_ignore_irq)
467+SYM_FUNC_START(early_ignore_irq)
468468 cld
469469 #ifdef CONFIG_PRINTK
470470 pushl %eax
@@ -499,7 +499,7 @@ ENTRY(early_ignore_irq) · 28 unmodified lines
499499 hlt_loop:
500500 hlt
501501 jmp hlt_loop
502−ENDPROC(early_ignore_irq)
502+SYM_FUNC_END(early_ignore_irq)
503503
504504 __INITDATA
505505 .align 4
arch/x86/lib/atomic64_386_32.S+2−2
@@ -20,10 +20,10 @@ · 19 unmodified lines
2020
2121 #define BEGIN(op) \
2222 .macro endp; \
23−ENDPROC(atomic64_##op##_386); \
23+SYM_FUNC_END(atomic64_##op##_386); \
2424 .purgem endp; \
2525 .endm; \
26−ENTRY(atomic64_##op##_386); \
26+SYM_FUNC_START(atomic64_##op##_386); \
2727 LOCK v;
2828
2929 #define ENDP endp
arch/x86/lib/atomic64_cx8_32.S+16−16
@@ -16,12 +16,12 @@ · 15 unmodified lines
1616 cmpxchg8b (\reg)
1717 .endm
1818
19−ENTRY(atomic64_read_cx8)
19+SYM_FUNC_START(atomic64_read_cx8)
2020 read64 %ecx
2121 ret
22−ENDPROC(atomic64_read_cx8)
22+SYM_FUNC_END(atomic64_read_cx8)
2323
24−ENTRY(atomic64_set_cx8)
24+SYM_FUNC_START(atomic64_set_cx8)
2525 1:
2626 /* we don't need LOCK_PREFIX since aligned 64-bit writes
2727 * are atomic on 586 and newer */
@@ -29,19 +29,19 @@ ENTRY(atomic64_set_cx8) · 1 unmodified line
2929 jne 1b
3030
3131 ret
32−ENDPROC(atomic64_set_cx8)
32+SYM_FUNC_END(atomic64_set_cx8)
3333
34−ENTRY(atomic64_xchg_cx8)
34+SYM_FUNC_START(atomic64_xchg_cx8)
3535 1:
3636 LOCK_PREFIX
3737 cmpxchg8b (%esi)
3838 jne 1b
3939
4040 ret
41−ENDPROC(atomic64_xchg_cx8)
41+SYM_FUNC_END(atomic64_xchg_cx8)
4242
4343 .macro addsub_return func ins insc
44−ENTRY(atomic64_\func\()_return_cx8)
44+SYM_FUNC_START(atomic64_\func\()_return_cx8)
4545 pushl %ebp
4646 pushl %ebx
4747 pushl %esi
@@ -69,14 +69,14 @@ ENTRY(atomic64_\func\()_return_cx8) · 21 unmodified lines
6969 popl %ebx
7070 popl %ebp
7171 ret
72−ENDPROC(atomic64_\func\()_return_cx8)
72+SYM_FUNC_END(atomic64_\func\()_return_cx8)
7373 .endm
7474
7575 addsub_return add add adc
7676 addsub_return sub sub sbb
7777
7878 .macro incdec_return func ins insc
79−ENTRY(atomic64_\func\()_return_cx8)
79+SYM_FUNC_START(atomic64_\func\()_return_cx8)
8080 pushl %ebx
8181
8282 read64 %esi
@@ -94,13 +94,13 @@ ENTRY(atomic64_\func\()_return_cx8) · 11 unmodified lines
9494 movl %ecx, %edx
9595 popl %ebx
9696 ret
97−ENDPROC(atomic64_\func\()_return_cx8)
97+SYM_FUNC_END(atomic64_\func\()_return_cx8)
9898 .endm
9999
100100 incdec_return inc add adc
101101 incdec_return dec sub sbb
102102
103−ENTRY(atomic64_dec_if_positive_cx8)
103+SYM_FUNC_START(atomic64_dec_if_positive_cx8)
104104 pushl %ebx
105105
106106 read64 %esi
@@ -119,9 +119,9 @@ ENTRY(atomic64_dec_if_positive_cx8) · 12 unmodified lines
119119 movl %ecx, %edx
120120 popl %ebx
121121 ret
122−ENDPROC(atomic64_dec_if_positive_cx8)
122+SYM_FUNC_END(atomic64_dec_if_positive_cx8)
123123
124−ENTRY(atomic64_add_unless_cx8)
124+SYM_FUNC_START(atomic64_add_unless_cx8)
125125 pushl %ebp
126126 pushl %ebx
127127 /* these just push these two parameters on the stack */
@@ -155,9 +155,9 @@ ENTRY(atomic64_add_unless_cx8) · 27 unmodified lines
155155 jne 2b
156156 xorl %eax, %eax
157157 jmp 3b
158−ENDPROC(atomic64_add_unless_cx8)
158+SYM_FUNC_END(atomic64_add_unless_cx8)
159159
160−ENTRY(atomic64_inc_not_zero_cx8)
160+SYM_FUNC_START(atomic64_inc_not_zero_cx8)
161161 pushl %ebx
162162
163163 read64 %esi
@@ -177,4 +177,4 @@ ENTRY(atomic64_inc_not_zero_cx8) · 13 unmodified lines
177177 3:
178178 popl %ebx
179179 ret
180−ENDPROC(atomic64_inc_not_zero_cx8)
180+SYM_FUNC_END(atomic64_inc_not_zero_cx8)
arch/x86/lib/checksum_32.S+4−4
@@ -46,7 +46,7 @@ unsigned int csum_partial(const unsigned char * buff, int len, unsigned int sum) · 45 unmodified lines
4646 * Fortunately, it is easy to convert 2-byte alignment to 4-byte
4747 * alignment for the unrolled loop.
4848 */
49−ENTRY(csum_partial)
49+SYM_FUNC_START(csum_partial)
5050 pushl %esi
5151 pushl %ebx
5252 movl 20(%esp),%eax # Function arg: unsigned int sum
@@ -128,13 +128,13 @@ ENTRY(csum_partial) · 75 unmodified lines
128128 popl %ebx
129129 popl %esi
130130 ret
131−ENDPROC(csum_partial)
131+SYM_FUNC_END(csum_partial)
132132
133133 #else
134134
135135 /* Version for PentiumII/PPro */
136136
137−ENTRY(csum_partial)
137+SYM_FUNC_START(csum_partial)
138138 pushl %esi
139139 pushl %ebx
140140 movl 20(%esp),%eax # Function arg: unsigned int sum
@@ -246,7 +246,7 @@ ENTRY(csum_partial) · 105 unmodified lines
246246 popl %ebx
247247 popl %esi
248248 ret
249−ENDPROC(csum_partial)
249+SYM_FUNC_END(csum_partial)
250250
251251 #endif
252252 EXPORT_SYMBOL(csum_partial)
arch/x86/math-emu/div_Xsig.S+2−2
@@ -75,7 +75,7 @@ FPU_result_1: · 74 unmodified lines
7575
7676
7777 .text
78−ENTRY(div_Xsig)
78+SYM_FUNC_START(div_Xsig)
7979 pushl %ebp
8080 movl %esp,%ebp
8181 #ifndef NON_REENTRANT_FPU
@@ -364,4 +364,4 @@ L_bugged_2: · 282 unmodified lines
364364 pop %ebx
365365 jmp L_exit
366366 #endif /* PARANOID */
367−ENDPROC(div_Xsig)
367+SYM_FUNC_END(div_Xsig)
arch/x86/math-emu/div_small.S+2−2
@@ -19,7 +19,7 @@ · 18 unmodified lines
1919 #include "fpu_emu.h"
2020
2121 .text
22−ENTRY(FPU_div_small)
22+SYM_FUNC_START(FPU_div_small)
2323 pushl %ebp
2424 movl %esp,%ebp
2525
@@ -45,4 +45,4 @@ ENTRY(FPU_div_small) · 19 unmodified lines
4545
4646 leave
4747 ret
48−ENDPROC(FPU_div_small)
48+SYM_FUNC_END(FPU_div_small)
arch/x86/math-emu/mul_Xsig.S+6−6
@@ -25,7 +25,7 @@ · 24 unmodified lines
2525 #include "fpu_emu.h"
2626
2727 .text
28−ENTRY(mul32_Xsig)
28+SYM_FUNC_START(mul32_Xsig)
2929 pushl %ebp
3030 movl %esp,%ebp
3131 subl $16,%esp
@@ -63,10 +63,10 @@ ENTRY(mul32_Xsig) · 31 unmodified lines
6363 popl %esi
6464 leave
6565 ret
66−ENDPROC(mul32_Xsig)
66+SYM_FUNC_END(mul32_Xsig)
6767
6868
69−ENTRY(mul64_Xsig)
69+SYM_FUNC_START(mul64_Xsig)
7070 pushl %ebp
7171 movl %esp,%ebp
7272 subl $16,%esp
@@ -116,11 +116,11 @@ ENTRY(mul64_Xsig) · 43 unmodified lines
116116 popl %esi
117117 leave
118118 ret
119−ENDPROC(mul64_Xsig)
119+SYM_FUNC_END(mul64_Xsig)
120120
121121
122122
123−ENTRY(mul_Xsig_Xsig)
123+SYM_FUNC_START(mul_Xsig_Xsig)
124124 pushl %ebp
125125 movl %esp,%ebp
126126 subl $16,%esp
@@ -176,4 +176,4 @@ ENTRY(mul_Xsig_Xsig) · 49 unmodified lines
176176 popl %esi
177177 leave
178178 ret
179−ENDPROC(mul_Xsig_Xsig)
179+SYM_FUNC_END(mul_Xsig_Xsig)
arch/x86/math-emu/polynom_Xsig.S+2−2
@@ -37,7 +37,7 @@ · 36 unmodified lines
3737 #define OVERFLOWED -16(%ebp) /* addition overflow flag */
3838
3939 .text
40−ENTRY(polynomial_Xsig)
40+SYM_FUNC_START(polynomial_Xsig)
4141 pushl %ebp
4242 movl %esp,%ebp
4343 subl $32,%esp
@@ -134,4 +134,4 @@ L_accum_done: · 90 unmodified lines
134134 popl %esi
135135 leave
136136 ret
137−ENDPROC(polynomial_Xsig)
137+SYM_FUNC_END(polynomial_Xsig)
arch/x86/math-emu/reg_norm.S+4−4
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222
2323
2424 .text
25−ENTRY(FPU_normalize)
25+SYM_FUNC_START(FPU_normalize)
2626 pushl %ebp
2727 movl %esp,%ebp
2828 pushl %ebx
@@ -95,12 +95,12 @@ L_overflow: · 66 unmodified lines
9595 call arith_overflow
9696 pop %ebx
9797 jmp L_exit
98−ENDPROC(FPU_normalize)
98+SYM_FUNC_END(FPU_normalize)
9999
100100
101101
102102 /* Normalise without reporting underflow or overflow */
103−ENTRY(FPU_normalize_nuo)
103+SYM_FUNC_START(FPU_normalize_nuo)
104104 pushl %ebp
105105 movl %esp,%ebp
106106 pushl %ebx
@@ -147,4 +147,4 @@ L_exit_nuo_zero: · 40 unmodified lines
147147 popl %ebx
148148 leave
149149 ret
150−ENDPROC(FPU_normalize_nuo)
150+SYM_FUNC_END(FPU_normalize_nuo)
arch/x86/math-emu/reg_round.S+2−2
@@ -109,7 +109,7 @@ FPU_denormal: · 108 unmodified lines
109109 .globl fpu_Arith_exit
110110
111111 /* Entry point when called from C */
112−ENTRY(FPU_round)
112+SYM_FUNC_START(FPU_round)
113113 pushl %ebp
114114 movl %esp,%ebp
115115 pushl %esi
@@ -708,4 +708,4 @@ L_exception_exit: · 592 unmodified lines
708708 jmp fpu_reg_round_special_exit
709709 #endif /* PARANOID */
710710
711−ENDPROC(FPU_round)
711+SYM_FUNC_END(FPU_round)
arch/x86/math-emu/reg_u_add.S+2−2
@@ -32,7 +32,7 @@ · 31 unmodified lines
3232 #include "control_w.h"
3333
3434 .text
35−ENTRY(FPU_u_add)
35+SYM_FUNC_START(FPU_u_add)
3636 pushl %ebp
3737 movl %esp,%ebp
3838 pushl %esi
@@ -166,4 +166,4 @@ L_exit: · 127 unmodified lines
166166 leave
167167 ret
168168 #endif /* PARANOID */
169−ENDPROC(FPU_u_add)
169+SYM_FUNC_END(FPU_u_add)
arch/x86/math-emu/reg_u_div.S+2−2
@@ -75,7 +75,7 @@ FPU_ovfl_flag: · 74 unmodified lines
7575 #define DEST PARAM3
7676
7777 .text
78−ENTRY(FPU_u_div)
78+SYM_FUNC_START(FPU_u_div)
7979 pushl %ebp
8080 movl %esp,%ebp
8181 #ifndef NON_REENTRANT_FPU
@@ -471,4 +471,4 @@ L_exit: · 389 unmodified lines
471471 ret
472472 #endif /* PARANOID */
473473
474−ENDPROC(FPU_u_div)
474+SYM_FUNC_END(FPU_u_div)
arch/x86/math-emu/reg_u_mul.S+2−2
@@ -45,7 +45,7 @@ FPU_accum_1: · 44 unmodified lines
4545
4646
4747 .text
48−ENTRY(FPU_u_mul)
48+SYM_FUNC_START(FPU_u_mul)
4949 pushl %ebp
5050 movl %esp,%ebp
5151 #ifndef NON_REENTRANT_FPU
@@ -147,4 +147,4 @@ L_exit: · 95 unmodified lines
147147 ret
148148 #endif /* PARANOID */
149149
150−ENDPROC(FPU_u_mul)
150+SYM_FUNC_END(FPU_u_mul)
arch/x86/math-emu/reg_u_sub.S+2−2
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 #include "control_w.h"
3434
3535 .text
36−ENTRY(FPU_u_sub)
36+SYM_FUNC_START(FPU_u_sub)
3737 pushl %ebp
3838 movl %esp,%ebp
3939 pushl %esi
@@ -271,4 +271,4 @@ L_exit: · 231 unmodified lines
271271 popl %esi
272272 leave
273273 ret
274−ENDPROC(FPU_u_sub)
274+SYM_FUNC_END(FPU_u_sub)
arch/x86/math-emu/round_Xsig.S+4−4
@@ -23,7 +23,7 @@ · 22 unmodified lines
2323
2424
2525 .text
26−ENTRY(round_Xsig)
26+SYM_FUNC_START(round_Xsig)
2727 pushl %ebp
2828 movl %esp,%ebp
2929 pushl %ebx /* Reserve some space */
@@ -79,11 +79,11 @@ L_exit: · 49 unmodified lines
7979 popl %ebx
8080 leave
8181 ret
82−ENDPROC(round_Xsig)
82+SYM_FUNC_END(round_Xsig)
8383
8484
8585
86−ENTRY(norm_Xsig)
86+SYM_FUNC_START(norm_Xsig)
8787 pushl %ebp
8888 movl %esp,%ebp
8989 pushl %ebx /* Reserve some space */
@@ -139,4 +139,4 @@ L_n_exit: · 49 unmodified lines
139139 popl %ebx
140140 leave
141141 ret
142−ENDPROC(norm_Xsig)
142+SYM_FUNC_END(norm_Xsig)
arch/x86/math-emu/shr_Xsig.S+2−2
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 #include "fpu_emu.h"
2323
2424 .text
25−ENTRY(shr_Xsig)
25+SYM_FUNC_START(shr_Xsig)
2626 push %ebp
2727 movl %esp,%ebp
2828 pushl %esi
@@ -86,4 +86,4 @@ L_more_than_95: · 57 unmodified lines
8686 popl %esi
8787 leave
8888 ret
89−ENDPROC(shr_Xsig)
89+SYM_FUNC_END(shr_Xsig)
arch/x86/math-emu/wm_shrx.S+4−4
@@ -33,7 +33,7 @@ · 32 unmodified lines
3333 | Results returned in the 64 bit arg and eax. |
3434 +---------------------------------------------------------------------------*/
3535
36−ENTRY(FPU_shrx)
36+SYM_FUNC_START(FPU_shrx)
3737 push %ebp
3838 movl %esp,%ebp
3939 pushl %esi
@@ -93,7 +93,7 @@ L_more_than_95: · 53 unmodified lines
9393 popl %esi
9494 leave
9595 ret
96−ENDPROC(FPU_shrx)
96+SYM_FUNC_END(FPU_shrx)
9797
9898
9999 /*---------------------------------------------------------------------------+
@@ -112,7 +112,7 @@ ENDPROC(FPU_shrx) · 12 unmodified lines
112112 | part which has been shifted out of the arg. |
113113 | Results returned in the 64 bit arg and eax. |
114114 +---------------------------------------------------------------------------*/
115−ENTRY(FPU_shrxs)
115+SYM_FUNC_START(FPU_shrxs)
116116 push %ebp
117117 movl %esp,%ebp
118118 pushl %esi
@@ -204,4 +204,4 @@ Ls_more_than_95: · 85 unmodified lines
204204 popl %esi
205205 leave
206206 ret
207−ENDPROC(FPU_shrxs)
207+SYM_FUNC_END(FPU_shrxs)
arch/x86/math-emu/wm_sqrt.S+2−2
@@ -75,7 +75,7 @@ FPU_fsqrt_arg_0: · 74 unmodified lines
7575
7676
7777 .text
78−ENTRY(wm_sqrt)
78+SYM_FUNC_START(wm_sqrt)
7979 pushl %ebp
8080 movl %esp,%ebp
8181 #ifndef NON_REENTRANT_FPU
@@ -469,4 +469,4 @@ sqrt_more_prec_large: · 387 unmodified lines
469469 /* Our estimate is too large */
470470 movl $0x7fffff00,%eax
471471 jmp sqrt_round_result
472−ENDPROC(wm_sqrt)
472+SYM_FUNC_END(wm_sqrt)
arch/x86/platform/efi/efi_stub_32.S+2−2
@@ -22,7 +22,7 @@ · 21 unmodified lines
2222 */
2323
2424 .text
25−ENTRY(efi_call_phys)
25+SYM_FUNC_START(efi_call_phys)
2626 /*
2727 * 0. The function can only be called in Linux kernel. So CS has been
2828 * set to 0x0010, DS and SS have been set to 0x0018. In EFI, I found
@@ -114,7 +114,7 @@ ENTRY(efi_call_phys) · 85 unmodified lines
114114 movl (%edx), %ecx
115115 pushl %ecx
116116 ret
117−ENDPROC(efi_call_phys)
117+SYM_FUNC_END(efi_call_phys)
118118 .previous
119119
120120 .data
arch/x86/power/hibernate_asm_32.S+4−4
@@ -16,7 +16,7 @@ · 15 unmodified lines
1616
1717 .text
1818
19−ENTRY(swsusp_arch_suspend)
19+SYM_FUNC_START(swsusp_arch_suspend)
2020 movl %esp, saved_context_esp
2121 movl %ebx, saved_context_ebx
2222 movl %ebp, saved_context_ebp
@@ -33,7 +33,7 @@ ENTRY(swsusp_arch_suspend) · 10 unmodified lines
3333 call swsusp_save
3434 FRAME_END
3535 ret
36−ENDPROC(swsusp_arch_suspend)
36+SYM_FUNC_END(swsusp_arch_suspend)
3737
3838 SYM_CODE_START(restore_image)
3939 /* prepare to jump to the image kernel */
@@ -82,7 +82,7 @@ SYM_CODE_END(core_restore_code) · 42 unmodified lines
8282
8383 /* code below belongs to the image kernel */
8484 .align PAGE_SIZE
85−ENTRY(restore_registers)
85+SYM_FUNC_START(restore_registers)
8686 /* go back to the original page tables */
8787 movl %ebp, %cr3
8888 movl mmu_cr4_features, %ecx
@@ -109,4 +109,4 @@ ENTRY(restore_registers) · 20 unmodified lines
109109 movl %eax, in_suspend
110110
111111 ret
112−ENDPROC(restore_registers)
112+SYM_FUNC_END(restore_registers)
include/linux/linkage.h+2−6
@@ -112,15 +112,13 @@ · 111 unmodified lines
112112 .globl name ASM_NL \
113113 name:
114114 #endif
115−#endif
116115
117−#ifndef CONFIG_X86_64
118116 #ifndef ENTRY
119117 /* deprecated, use SYM_FUNC_START */
120118 #define ENTRY(name) \
121119 SYM_FUNC_START(name)
122120 #endif
123−#endif /* CONFIG_X86_64 */
121+#endif /* CONFIG_X86 */
124122 #endif /* LINKER_SCRIPT */
125123
126124 #ifndef WEAK
@@ -135,9 +133,7 @@ · 8 unmodified lines
135133 #define END(name) \
136134 .size name, .-name
137135 #endif
138−#endif /* CONFIG_X86 */
139136
140−#ifndef CONFIG_X86_64
141137 /* If symbol 'name' is treated as a subroutine (gets called, and returns)
142138 * then please use ENDPROC to mark 'name' as STT_FUNC for the benefit of
143139 * static analysis tools such as stack depth analyzer.
@@ -147,7 +143,7 @@ · 3 unmodified lines
147143 #define ENDPROC(name) \
148144 SYM_FUNC_END(name)
149145 #endif
150−#endif /* CONFIG_X86_64 */
146+#endif /* CONFIG_X86 */
151147
152148 /* === generic annotations === */
153149

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t