Message ID | alpine.DEB.2.00.1105271549220.6109@localhost6.localdomain6 (mailing list archive) |
---|---|
State | RFC, archived |
Headers | show |
diff --git a/arch/arm/kernel/sleep.S b/arch/arm/kernel/sleep.S index 6398ead..d83123a 100644 --- a/arch/arm/kernel/sleep.S +++ b/arch/arm/kernel/sleep.S @@ -71,10 +71,13 @@ ENDPROC(cpu_suspend) /* * r0 = control register value * r1 = v:p offset (preserved by cpu_do_resume) + * if this is zero, do not reenable MMU (it's on) * r2 = phys page table base * r3 = L1 section flags */ ENTRY(cpu_resume_mmu) + teq r1, #0 + moveq pc, lr @ return if MMU already on adr r4, cpu_resume_turn_mmu_on mov r4, r4, lsr #20 orr r3, r3, r4, lsl #20