diff options
Diffstat (limited to 'arch/powerpc/kernel/head_44x.S')
-rw-r--r-- | arch/powerpc/kernel/head_44x.S | 48 |
1 files changed, 15 insertions, 33 deletions
diff --git a/arch/powerpc/kernel/head_44x.S b/arch/powerpc/kernel/head_44x.S index a15d4b8cce48..88695963f587 100644 --- a/arch/powerpc/kernel/head_44x.S +++ b/arch/powerpc/kernel/head_44x.S | |||
@@ -120,8 +120,8 @@ skpinv: addi r4,r4,1 /* Increment */ | |||
120 | * Configure and load pinned entry into TLB slot 63. | 120 | * Configure and load pinned entry into TLB slot 63. |
121 | */ | 121 | */ |
122 | 122 | ||
123 | lis r3,KERNELBASE@h /* Load the kernel virtual address */ | 123 | lis r3,PAGE_OFFSET@h |
124 | ori r3,r3,KERNELBASE@l | 124 | ori r3,r3,PAGE_OFFSET@l |
125 | 125 | ||
126 | /* Kernel is at the base of RAM */ | 126 | /* Kernel is at the base of RAM */ |
127 | li r4, 0 /* Load the kernel physical address */ | 127 | li r4, 0 /* Load the kernel physical address */ |
@@ -172,36 +172,28 @@ skpinv: addi r4,r4,1 /* Increment */ | |||
172 | isync | 172 | isync |
173 | 173 | ||
174 | 4: | 174 | 4: |
175 | #ifdef CONFIG_SERIAL_TEXT_DEBUG | 175 | #ifdef CONFIG_PPC_EARLY_DEBUG_44x |
176 | /* | 176 | /* Add UART mapping for early debug. */ |
177 | * Add temporary UART mapping for early debug. | 177 | |
178 | * We can map UART registers wherever we want as long as they don't | ||
179 | * interfere with other system mappings (e.g. with pinned entries). | ||
180 | * For an example of how we handle this - see ocotea.h. --ebs | ||
181 | */ | ||
182 | /* pageid fields */ | 178 | /* pageid fields */ |
183 | lis r3,UART0_IO_BASE@h | 179 | lis r3,PPC44x_EARLY_DEBUG_VIRTADDR@h |
184 | ori r3,r3,PPC44x_TLB_VALID | PPC44x_TLB_4K | 180 | ori r3,r3,PPC44x_TLB_VALID|PPC44x_TLB_TS|PPC44x_TLB_64K |
185 | 181 | ||
186 | /* xlat fields */ | 182 | /* xlat fields */ |
187 | lis r4,UART0_PHYS_IO_BASE@h /* RPN depends on SoC */ | 183 | lis r4,CONFIG_PPC_EARLY_DEBUG_44x_PHYSLOW@h |
188 | #ifndef CONFIG_440EP | 184 | ori r4,r4,CONFIG_PPC_EARLY_DEBUG_44x_PHYSHIGH |
189 | ori r4,r4,0x0001 /* ERPN is 1 for second 4GB page */ | ||
190 | #endif | ||
191 | 185 | ||
192 | /* attrib fields */ | 186 | /* attrib fields */ |
193 | li r5,0 | 187 | li r5,(PPC44x_TLB_SW|PPC44x_TLB_SR|PPC44x_TLB_I|PPC44x_TLB_G) |
194 | ori r5,r5,(PPC44x_TLB_SW | PPC44x_TLB_SR | PPC44x_TLB_I | PPC44x_TLB_G) | 188 | li r0,62 /* TLB slot 0 */ |
195 | 189 | ||
196 | li r0,0 /* TLB slot 0 */ | 190 | tlbwe r3,r0,PPC44x_TLB_PAGEID |
197 | 191 | tlbwe r4,r0,PPC44x_TLB_XLAT | |
198 | tlbwe r3,r0,PPC44x_TLB_PAGEID /* Load the pageid fields */ | 192 | tlbwe r5,r0,PPC44x_TLB_ATTRIB |
199 | tlbwe r4,r0,PPC44x_TLB_XLAT /* Load the translation fields */ | ||
200 | tlbwe r5,r0,PPC44x_TLB_ATTRIB /* Load the attrib/access fields */ | ||
201 | 193 | ||
202 | /* Force context change */ | 194 | /* Force context change */ |
203 | isync | 195 | isync |
204 | #endif /* CONFIG_SERIAL_TEXT_DEBUG */ | 196 | #endif /* CONFIG_PPC_EARLY_DEBUG_44x */ |
205 | 197 | ||
206 | /* Establish the interrupt vector offsets */ | 198 | /* Establish the interrupt vector offsets */ |
207 | SET_IVOR(0, CriticalInput); | 199 | SET_IVOR(0, CriticalInput); |
@@ -709,16 +701,6 @@ _GLOBAL(giveup_fpu) | |||
709 | blr | 701 | blr |
710 | #endif | 702 | #endif |
711 | 703 | ||
712 | /* | ||
713 | * extern void abort(void) | ||
714 | * | ||
715 | * At present, this routine just applies a system reset. | ||
716 | */ | ||
717 | _GLOBAL(abort) | ||
718 | mfspr r13,SPRN_DBCR0 | ||
719 | oris r13,r13,DBCR0_RST_SYSTEM@h | ||
720 | mtspr SPRN_DBCR0,r13 | ||
721 | |||
722 | _GLOBAL(set_context) | 704 | _GLOBAL(set_context) |
723 | 705 | ||
724 | #ifdef CONFIG_BDI_SWITCH | 706 | #ifdef CONFIG_BDI_SWITCH |