Commit 6a3bab90 authored by Anton Blanchard's avatar Anton Blanchard

powerpc: Remove some unnecessary uses of _GLOBAL() and _STATIC()

There is no need to create a function descriptor for functions
called locally out of assembly.
Signed-off-by: default avatarAnton Blanchard <anton@samba.org>
parent c857c43b
...@@ -1596,14 +1596,14 @@ _GLOBAL(book3e_secondary_thread_init) ...@@ -1596,14 +1596,14 @@ _GLOBAL(book3e_secondary_thread_init)
mflr r28 mflr r28
b 3b b 3b
_STATIC(init_core_book3e) init_core_book3e:
/* Establish the interrupt vector base */ /* Establish the interrupt vector base */
LOAD_REG_IMMEDIATE(r3, interrupt_base_book3e) LOAD_REG_IMMEDIATE(r3, interrupt_base_book3e)
mtspr SPRN_IVPR,r3 mtspr SPRN_IVPR,r3
sync sync
blr blr
_STATIC(init_thread_book3e) init_thread_book3e:
lis r3,(SPRN_EPCR_ICM | SPRN_EPCR_GICM)@h lis r3,(SPRN_EPCR_ICM | SPRN_EPCR_GICM)@h
mtspr SPRN_EPCR,r3 mtspr SPRN_EPCR,r3
......
...@@ -1536,7 +1536,7 @@ power4_fixup_nap: ...@@ -1536,7 +1536,7 @@ power4_fixup_nap:
* Hash table stuff * Hash table stuff
*/ */
.align 7 .align 7
_STATIC(do_hash_page) do_hash_page:
std r3,_DAR(r1) std r3,_DAR(r1)
std r4,_DSISR(r1) std r4,_DSISR(r1)
......
...@@ -299,7 +299,7 @@ generic_secondary_common_init: ...@@ -299,7 +299,7 @@ generic_secondary_common_init:
* Assumes we're mapped EA == RA if the MMU is on. * Assumes we're mapped EA == RA if the MMU is on.
*/ */
#ifdef CONFIG_PPC_BOOK3S #ifdef CONFIG_PPC_BOOK3S
_STATIC(__mmu_off) __mmu_off:
mfmsr r3 mfmsr r3
andi. r0,r3,MSR_IR|MSR_DR andi. r0,r3,MSR_IR|MSR_DR
beqlr beqlr
...@@ -324,7 +324,7 @@ _STATIC(__mmu_off) ...@@ -324,7 +324,7 @@ _STATIC(__mmu_off)
* DT block, r4 is a physical pointer to the kernel itself * DT block, r4 is a physical pointer to the kernel itself
* *
*/ */
_GLOBAL(__start_initialization_multiplatform) __start_initialization_multiplatform:
/* Make sure we are running in 64 bits mode */ /* Make sure we are running in 64 bits mode */
bl enable_64b_mode bl enable_64b_mode
...@@ -376,7 +376,7 @@ _GLOBAL(__start_initialization_multiplatform) ...@@ -376,7 +376,7 @@ _GLOBAL(__start_initialization_multiplatform)
b __after_prom_start b __after_prom_start
#endif /* CONFIG_PPC_BOOK3E */ #endif /* CONFIG_PPC_BOOK3E */
_INIT_STATIC(__boot_from_prom) __boot_from_prom:
#ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE #ifdef CONFIG_PPC_OF_BOOT_TRAMPOLINE
/* Save parameters */ /* Save parameters */
mr r31,r3 mr r31,r3
...@@ -414,7 +414,7 @@ _INIT_STATIC(__boot_from_prom) ...@@ -414,7 +414,7 @@ _INIT_STATIC(__boot_from_prom)
* from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */ * from OF while CONFIG_PPC_OF_BOOT_TRAMPOLINE isn't selected */
trap trap
_STATIC(__after_prom_start) __after_prom_start:
#ifdef CONFIG_RELOCATABLE #ifdef CONFIG_RELOCATABLE
/* process relocations for the final address of the kernel */ /* process relocations for the final address of the kernel */
lis r25,PAGE_OFFSET@highest /* compute virtual base of kernel */ lis r25,PAGE_OFFSET@highest /* compute virtual base of kernel */
...@@ -674,7 +674,7 @@ _GLOBAL(start_secondary_resume) ...@@ -674,7 +674,7 @@ _GLOBAL(start_secondary_resume)
/* /*
* This subroutine clobbers r11 and r12 * This subroutine clobbers r11 and r12
*/ */
_GLOBAL(enable_64b_mode) enable_64b_mode:
mfmsr r11 /* grab the current MSR */ mfmsr r11 /* grab the current MSR */
#ifdef CONFIG_PPC_BOOK3E #ifdef CONFIG_PPC_BOOK3E
oris r11,r11,0x8000 /* CM bit set, we'll set ICM later */ oris r11,r11,0x8000 /* CM bit set, we'll set ICM later */
...@@ -715,7 +715,7 @@ p_toc: .llong __toc_start + 0x8000 - 0b ...@@ -715,7 +715,7 @@ p_toc: .llong __toc_start + 0x8000 - 0b
/* /*
* This is where the main kernel code starts. * This is where the main kernel code starts.
*/ */
_INIT_STATIC(start_here_multiplatform) start_here_multiplatform:
/* set up the TOC */ /* set up the TOC */
bl relative_toc bl relative_toc
tovirt(r2,r2) tovirt(r2,r2)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment