diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2007-09-13 16:42:35 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-09-14 09:53:36 -0400 |
commit | 748a768384e05c021ea6be221b80c62a83d7b520 (patch) | |
tree | 8789a521471506c1601fff44a446a5e801fe4062 /arch/powerpc/kernel/head_32.S | |
parent | 5e14d21e3f28a4181dacff0336040e30942f4921 (diff) |
[POWERPC] Fix modpost warnings from head*.S on ppc32
We get warnings like the following from the various ppc32 head*.S files:
WARNING: vmlinux.o(.text+0x358): Section mismatch: reference to .init.text:early_init (between 'skpinv' and 'interrupt_base')
WARNING: vmlinux.o(.text+0x380): Section mismatch: reference to .init.text:machine_init (between 'skpinv' and 'interrupt_base')
WARNING: vmlinux.o(.text+0x384): Section mismatch: reference to .init.text:MMU_init (between 'skpinv' and 'interrupt_base')
WARNING: vmlinux.o(.text+0x3aa): Section mismatch: reference to .init.text:start_kernel (between 'skpinv' and 'interrupt_base')
WARNING: vmlinux.o(.text+0x3ae): Section mismatch: reference to .init.text:start_kernel (between 'skpinv' and 'interrupt_base')
Added a .text.head section simliar to what other architectures do since
modpost already excludes this from its warnings.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/kernel/head_32.S')
-rw-r--r-- | arch/powerpc/kernel/head_32.S | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/arch/powerpc/kernel/head_32.S b/arch/powerpc/kernel/head_32.S index 0e3df1f55feb..12febfe43de6 100644 --- a/arch/powerpc/kernel/head_32.S +++ b/arch/powerpc/kernel/head_32.S | |||
@@ -48,20 +48,17 @@ | |||
48 | mtspr SPRN_DBAT##n##L,RB; \ | 48 | mtspr SPRN_DBAT##n##L,RB; \ |
49 | 1: | 49 | 1: |
50 | 50 | ||
51 | .text | 51 | .section .text.head, "ax" |
52 | .stabs "arch/powerpc/kernel/",N_SO,0,0,0f | 52 | .stabs "arch/powerpc/kernel/",N_SO,0,0,0f |
53 | .stabs "head_32.S",N_SO,0,0,0f | 53 | .stabs "head_32.S",N_SO,0,0,0f |
54 | 0: | 54 | 0: |
55 | .globl _stext | 55 | _ENTRY(_stext); |
56 | _stext: | ||
57 | 56 | ||
58 | /* | 57 | /* |
59 | * _start is defined this way because the XCOFF loader in the OpenFirmware | 58 | * _start is defined this way because the XCOFF loader in the OpenFirmware |
60 | * on the powermac expects the entry point to be a procedure descriptor. | 59 | * on the powermac expects the entry point to be a procedure descriptor. |
61 | */ | 60 | */ |
62 | .text | 61 | _ENTRY(_start); |
63 | .globl _start | ||
64 | _start: | ||
65 | /* | 62 | /* |
66 | * These are here for legacy reasons, the kernel used to | 63 | * These are here for legacy reasons, the kernel used to |
67 | * need to look like a coff function entry for the pmac | 64 | * need to look like a coff function entry for the pmac |
@@ -841,7 +838,7 @@ relocate_kernel: | |||
841 | * r3 = dest addr, r4 = source addr, r5 = copy limit, r6 = start offset | 838 | * r3 = dest addr, r4 = source addr, r5 = copy limit, r6 = start offset |
842 | * on exit, r3, r4, r5 are unchanged, r6 is updated to be >= r5. | 839 | * on exit, r3, r4, r5 are unchanged, r6 is updated to be >= r5. |
843 | */ | 840 | */ |
844 | _GLOBAL(copy_and_flush) | 841 | _ENTRY(copy_and_flush) |
845 | addi r5,r5,-4 | 842 | addi r5,r5,-4 |
846 | addi r6,r6,-4 | 843 | addi r6,r6,-4 |
847 | 4: li r0,L1_CACHE_BYTES/4 | 844 | 4: li r0,L1_CACHE_BYTES/4 |
@@ -954,9 +951,9 @@ __secondary_start: | |||
954 | * included in CONFIG_6xx | 951 | * included in CONFIG_6xx |
955 | */ | 952 | */ |
956 | #if !defined(CONFIG_6xx) | 953 | #if !defined(CONFIG_6xx) |
957 | _GLOBAL(__save_cpu_setup) | 954 | _ENTRY(__save_cpu_setup) |
958 | blr | 955 | blr |
959 | _GLOBAL(__restore_cpu_setup) | 956 | _ENTRY(__restore_cpu_setup) |
960 | blr | 957 | blr |
961 | #endif /* !defined(CONFIG_6xx) */ | 958 | #endif /* !defined(CONFIG_6xx) */ |
962 | 959 | ||
@@ -1080,7 +1077,7 @@ start_here: | |||
1080 | /* | 1077 | /* |
1081 | * Set up the segment registers for a new context. | 1078 | * Set up the segment registers for a new context. |
1082 | */ | 1079 | */ |
1083 | _GLOBAL(set_context) | 1080 | _ENTRY(set_context) |
1084 | mulli r3,r3,897 /* multiply context by skew factor */ | 1081 | mulli r3,r3,897 /* multiply context by skew factor */ |
1085 | rlwinm r3,r3,4,8,27 /* VSID = (context & 0xfffff) << 4 */ | 1082 | rlwinm r3,r3,4,8,27 /* VSID = (context & 0xfffff) << 4 */ |
1086 | addis r3,r3,0x6000 /* Set Ks, Ku bits */ | 1083 | addis r3,r3,0x6000 /* Set Ks, Ku bits */ |