X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/0c549ba1cfe1d2d61c07eccab7f274740b706ed6..HEAD:/relocate_kernel.S diff --git a/relocate_kernel.S b/relocate_kernel.S index 9cf4cbf..f2b7868 100644 --- a/relocate_kernel.S +++ b/relocate_kernel.S @@ -6,6 +6,15 @@ .globl relocate_new_kernel relocate_new_kernel: + /* Disable MMU */ + mov ip, #0 +#ifdef CONFIG_MMU + mcr p15, 0, ip, c8, c7, 0 @ invalidate I & D TLBs +#endif + mrc p15, 0, ip, c1, c0, 0 @ ctrl register + bic ip, ip, #0x000f @ ............wcam + bic ip, ip, #0x1100 @ ...i...s........ + mcr p15, 0, ip, c1, c0, 0 @ ctrl register ldr r0,kexec_indirection_page ldr r1,kexec_start_address