Lines Matching +full:li +full:-
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains kexec low-level functions.
5 * Copyright (C) 2002-2003 Eric Biederman <ebiederm@xmission.com>
43 li r0, 0
71 * 3) Create a 1:1 mapping for 0-2GiB in chunks of 256M in original TS.
75 * - Based on the kexec support code for FSL BookE
83 li r3, 0
100 li r4,0 /* Start at TLB entry 0 */
101 li r3,0 /* Set PAGEID inval value */
128 li r10, 1 /* r10 will hold PageSize */
129 rlwinm r11, r3, 0, 24, 27 /* bits 24-27 */
156 subi r11, r10, 1 /* PageOffset Mask = PageSize - 1 */
164 addi r8, r8, (2f-1b) /* Find the target offset */
173 li r3, 0
177 li r5, 0
183 li r8, 0 /* PageNumber */
184 li r6, 3 /* TLB Index, start at 3 */
187 rotlwi r3, r8, 28 /* Create EPN (bits 0-3) */
203 li r9,0
209 addi r8, r8, (2f-1b)
219 li r3, 0
232 * Also set the MSR IS->MMUCR STS
234 li r3, 0
254 * of 4k page size in all 4 ways (0-3 in r3).
302 addi r6, r6, (2f-1b)
310 * Create a 1:1 mapping for 0-2GiB in the original TS.
313 li r3, 0
314 li r4, 0 /* TLB Word 0 */
315 li r5, 0 /* TLB Word 1 */
316 li r6, 0
319 li r8, 0 /* PageIndex */
352 li r10, 0x1000 /* r10 = 4k */
362 addi r4, r4, (2f-1b) /* virtual address of 2f */
364 subi r11, r10, 1 /* offsetmask = Pagesize - 1 */
402 li r0, 0
404 li r0, 0
414 addi r8, r4, 1f - relocate_new_kernel
426 addi r1, r4, KEXEC_CONTROL_PAGE_SIZE - 8 /* for LR Save+Back Chain */
430 li r6, 0 /* checksum */
464 li r7, PAGE_SIZE / 4
483 /* To be certain of avoiding problems with self-modifying code
502 .long relocate_new_kernel_end - relocate_new_kernel