Skip to content

Commit f131a08

Browse files
author
Russell King
committed
ARM: no need for nommu to jump through the hoops that mmu does
nommu can jump directly to __mmap_switched without the absolute address branching which the mmuful kernel does. Acked-by: Greg Ungerer <gerg@uclinux.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 2bfc96a commit f131a08

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎arch/arm/kernel/head-nommu.S‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,6 @@ ENTRY(stext)
4848
movs r8, r5 @ invalid machine (r5=0)?
4949
beq __error_a @ yes, error 'a'
5050

51-
ldr r13, __switch_data @ address to jump to after
52-
@ the initialization is done
5351
adr lr, BSYM(__after_proc_init) @ return (PIC) address
5452
ARM( add pc, r10, #PROCINFO_INITFUNC )
5553
THUMB( add r12, r10, #PROCINFO_INITFUNC )
@@ -87,8 +85,7 @@ __after_proc_init:
8785
mcr p15, 0, r0, c1, c0, 0 @ write control reg
8886
#endif /* CONFIG_CPU_CP15 */
8987

90-
mov r3, r13
91-
mov pc, r3 @ clear the BSS and jump
88+
b __mmap_switched @ clear the BSS and jump
9289
@ to start_kernel
9390
ENDPROC(__after_proc_init)
9491
.ltorg

0 commit comments

Comments
 (0)