Skip to content

Commit 8e9e984

Browse files
hdellerKyle McMartin
authored andcommitted
[PARISC] more ENTRY(), ENDPROC(), END() conversions
Signed-off-by: Helge Deller <deller@gmx.de> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
1 parent b288a8f commit 8e9e984

6 files changed

Lines changed: 99 additions & 125 deletions

File tree

‎arch/parisc/kernel/head.S‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* License. See the file "COPYING" in the main directory of this archive
33
* for more details.
44
*
5-
* Copyright (C) 1999 by Helge Deller
5+
* Copyright (C) 1999-2007 by Helge Deller <deller@gmx.de>
66
* Copyright 1999 SuSE GmbH (Philipp Rumpf)
77
* Copyright 1999 Philipp Rumpf (prumpf@tux.org)
88
* Copyright 2000 Hewlett Packard (Paul Bame, bame@puffin.external.hp.com)
@@ -19,16 +19,17 @@
1919
#include <asm/assembly.h>
2020
#include <asm/pgtable.h>
2121

22+
#include <linux/linkage.h>
23+
2224
.level LEVEL
2325

2426
.data
25-
26-
.export boot_args
27-
boot_args:
27+
ENTRY(boot_args)
2828
.word 0 /* arg0 */
2929
.word 0 /* arg1 */
3030
.word 0 /* arg2 */
3131
.word 0 /* arg3 */
32+
END(boot_args)
3233

3334
.text
3435
.align 4
@@ -38,10 +39,9 @@ boot_args:
3839
.import fault_vector_11,code /* IVA parisc 1.1 32 bit */
3940
.import $global$ /* forward declaration */
4041
#endif /*!CONFIG_64BIT*/
41-
.export stext
4242
.export _stext,data /* Kernel want it this way! */
4343
_stext:
44-
stext:
44+
ENTRY(stext)
4545
.proc
4646
.callinfo
4747

@@ -343,6 +343,9 @@ smp_slave_stext:
343343

344344
.procend
345345
#endif /* CONFIG_SMP */
346+
347+
ENDPROC(stext)
348+
346349
#ifndef CONFIG_64BIT
347350
.data
348351

‎arch/parisc/kernel/hpmc.S‎

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@
4646
#include <asm/assembly.h>
4747
#include <asm/pdc.h>
4848

49+
#include <linux/linkage.h>
50+
4951
/*
5052
* stack for os_hpmc, the HPMC handler.
5153
* buffer for IODC procedures (for the HPMC handler).
@@ -69,17 +71,15 @@ hpmc_raddr:
6971

7072
#define HPMC_PIM_DATA_SIZE 896 /* Enough to hold all architected 2.0 state */
7173

72-
.export hpmc_pim_data, data
7374
.align 8
74-
hpmc_pim_data:
75+
ENTRY(hpmc_pim_data)
7576
.block HPMC_PIM_DATA_SIZE
77+
END(hpmc_pim_data)
7678

7779
.text
7880

79-
.export os_hpmc, code
8081
.import intr_save, code
81-
82-
os_hpmc:
82+
ENTRY(os_hpmc)
8383

8484
/*
8585
* registers modified:
@@ -294,11 +294,9 @@ os_hpmc_6:
294294

295295
b .
296296
nop
297+
ENDPROC(os_hpmc)
297298

298299
/* this label used to compute os_hpmc checksum */
299-
300-
.export os_hpmc_end, code
301-
302-
os_hpmc_end:
300+
ENTRY(os_hpmc_end)
303301

304302
nop

‎arch/parisc/kernel/pacache.S‎

Lines changed: 34 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,12 @@
4545
#include <asm/assembly.h>
4646
#include <asm/pgtable.h>
4747
#include <asm/cache.h>
48+
#include <linux/linkage.h>
4849

4950
.text
5051
.align 128
5152

52-
.export flush_tlb_all_local,code
53-
54-
flush_tlb_all_local:
53+
ENTRY(flush_tlb_all_local)
5554
.proc
5655
.callinfo NO_CALLS
5756
.entry
@@ -200,11 +199,11 @@ fdtdone:
200199

201200
.exit
202201
.procend
202+
ENDPROC(flush_tlb_all_local)
203203

204-
.export flush_instruction_cache_local,code
205204
.import cache_info,data
206205

207-
flush_instruction_cache_local:
206+
ENTRY(flush_instruction_cache_local)
208207
.proc
209208
.callinfo NO_CALLS
210209
.entry
@@ -241,11 +240,11 @@ fisync:
241240
.exit
242241

243242
.procend
243+
ENDPROC(flush_instruction_cache_local)
244244

245-
.export flush_data_cache_local, code
246-
.import cache_info, data
247245

248-
flush_data_cache_local:
246+
.import cache_info, data
247+
ENTRY(flush_data_cache_local)
249248
.proc
250249
.callinfo NO_CALLS
251250
.entry
@@ -283,11 +282,11 @@ fdsync:
283282
.exit
284283

285284
.procend
285+
ENDPROC(flush_data_cache_local)
286286

287-
.export copy_user_page_asm,code
288287
.align 16
289288

290-
copy_user_page_asm:
289+
ENTRY(copy_user_page_asm)
291290
.proc
292291
.callinfo NO_CALLS
293292
.entry
@@ -409,6 +408,7 @@ copy_user_page_asm:
409408
.exit
410409

411410
.procend
411+
ENDPROC(copy_user_page_asm)
412412

413413
/*
414414
* NOTE: Code in clear_user_page has a hard coded dependency on the
@@ -446,9 +446,7 @@ copy_user_page_asm:
446446
* lobby for such a change.
447447
*/
448448

449-
.export copy_user_page_asm,code
450-
451-
copy_user_page_asm:
449+
ENTRY(copy_user_page_asm)
452450
.proc
453451
.callinfo NO_CALLS
454452
.entry
@@ -534,11 +532,10 @@ copy_user_page_asm:
534532
.exit
535533

536534
.procend
535+
ENDPROC(copy_user_page_asm)
537536
#endif
538537

539-
.export __clear_user_page_asm,code
540-
541-
__clear_user_page_asm:
538+
ENTRY(__clear_user_page_asm)
542539
.proc
543540
.callinfo NO_CALLS
544541
.entry
@@ -618,10 +615,9 @@ __clear_user_page_asm:
618615
.exit
619616

620617
.procend
618+
ENDPROC(__clear_user_page_asm)
621619

622-
.export flush_kernel_dcache_page_asm
623-
624-
flush_kernel_dcache_page_asm:
620+
ENTRY(flush_kernel_dcache_page_asm)
625621
.proc
626622
.callinfo NO_CALLS
627623
.entry
@@ -662,10 +658,9 @@ flush_kernel_dcache_page_asm:
662658
.exit
663659

664660
.procend
661+
ENDPROC(flush_kernel_dcache_page_asm)
665662

666-
.export flush_user_dcache_page
667-
668-
flush_user_dcache_page:
663+
ENTRY(flush_user_dcache_page)
669664
.proc
670665
.callinfo NO_CALLS
671666
.entry
@@ -706,10 +701,9 @@ flush_user_dcache_page:
706701
.exit
707702

708703
.procend
704+
ENDPROC(flush_user_dcache_page)
709705

710-
.export flush_user_icache_page
711-
712-
flush_user_icache_page:
706+
ENTRY(flush_user_icache_page)
713707
.proc
714708
.callinfo NO_CALLS
715709
.entry
@@ -750,11 +744,10 @@ flush_user_icache_page:
750744
.exit
751745

752746
.procend
747+
ENDPROC(flush_user_icache_page)
753748

754749

755-
.export purge_kernel_dcache_page
756-
757-
purge_kernel_dcache_page:
750+
ENTRY(purge_kernel_dcache_page)
758751
.proc
759752
.callinfo NO_CALLS
760753
.entry
@@ -794,15 +787,14 @@ purge_kernel_dcache_page:
794787
.exit
795788

796789
.procend
790+
ENDPROC(purge_kernel_dcache_page)
797791

798792
#if 0
799793
/* Currently not used, but it still is a possible alternate
800794
* solution.
801795
*/
802796

803-
.export flush_alias_page
804-
805-
flush_alias_page:
797+
ENTRY(flush_alias_page)
806798
.proc
807799
.callinfo NO_CALLS
808800
.entry
@@ -882,10 +874,9 @@ flush_user_dcache_range_asm:
882874
.exit
883875

884876
.procend
877+
ENDPROC(flush_alias_page)
885878

886-
.export flush_kernel_dcache_range_asm
887-
888-
flush_kernel_dcache_range_asm:
879+
ENTRY(flush_kernel_dcache_range_asm)
889880
.proc
890881
.callinfo NO_CALLS
891882
.entry
@@ -905,10 +896,9 @@ flush_kernel_dcache_range_asm:
905896
.exit
906897

907898
.procend
899+
ENDPROC(flush_kernel_dcache_range_asm)
908900

909-
.export flush_user_icache_range_asm
910-
911-
flush_user_icache_range_asm:
901+
ENTRY(flush_user_icache_range_asm)
912902
.proc
913903
.callinfo NO_CALLS
914904
.entry
@@ -927,10 +917,9 @@ flush_user_icache_range_asm:
927917
.exit
928918

929919
.procend
920+
ENDPROC(flush_user_icache_range_asm)
930921

931-
.export flush_kernel_icache_page
932-
933-
flush_kernel_icache_page:
922+
ENTRY(flush_kernel_icache_page)
934923
.proc
935924
.callinfo NO_CALLS
936925
.entry
@@ -971,10 +960,9 @@ flush_kernel_icache_page:
971960
.exit
972961

973962
.procend
963+
ENDPROC(flush_kernel_icache_page)
974964

975-
.export flush_kernel_icache_range_asm
976-
977-
flush_kernel_icache_range_asm:
965+
ENTRY(flush_kernel_icache_range_asm)
978966
.proc
979967
.callinfo NO_CALLS
980968
.entry
@@ -992,14 +980,13 @@ flush_kernel_icache_range_asm:
992980
nop
993981
.exit
994982
.procend
983+
ENDPROC(flush_kernel_icache_range_asm)
995984

996985
/* align should cover use of rfi in disable_sr_hashing_asm and
997986
* srdis_done.
998987
*/
999988
.align 256
1000-
.export disable_sr_hashing_asm,code
1001-
1002-
disable_sr_hashing_asm:
989+
ENTRY(disable_sr_hashing_asm)
1003990
.proc
1004991
.callinfo NO_CALLS
1005992
.entry
@@ -1088,5 +1075,6 @@ srdis_done:
10881075
.exit
10891076

10901077
.procend
1078+
ENDPROC(disable_sr_hashing_asm)
10911079

10921080
.end

0 commit comments

Comments
 (0)