Lines Matching +full:sync +full:- +full:1
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains miscellaneous low-level functions.
4 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
21 #include <asm/asm-offsets.h>
27 #include <asm/feature-fixups.h>
47 sync
53 sync
58 sync
62 sync
68 sync
73 sync
86 sync
88 sync
94 sync
100 sync
106 sync
117 sync
119 sync
125 sync
131 sync
137 sync
148 sync
150 sync
155 sync
163 sync
165 sync
170 sync
193 mtmsrd r0,1
203 sync
218 mtmsrd r4,1
227 mtmsrd r0,1
235 sync
244 mtmsrd r5,1
260 1: mflr r5
261 addi r5,r5,kexec_flag-1b
271 clrrdi r11,r11,1 /* Clear MSR_LE */
294 * assumes that 1G is enough for kexec.
298 * Invalidate all non-IPROT TLB entries to avoid any TLB conflict.
302 sync
307 subi r10,r10,1 /* Last entry: no conflict with kernel text */
308 lis r9,MAS0_TLBSEL(1)@h
353 * 0 and 1 (big endian) of the effective address in real mode
362 1: li r9,MSR_RI
369 mtmsrd r9,1
388 /* switch stacks to newstack -- &kexec_stack.stack */
389 stdu r1,THREAD_SIZE-STACK_FRAME_MIN_SIZE(r3)
398 std r31,-8(r1)
399 std r30,-16(r1)
400 std r29,-24(r1)
401 std r28,-32(r1)
402 std r27,-40(r1)
403 std r26,-48(r1)
404 std r25,-56(r1)
406 stdu r1,-STACK_FRAME_MIN_SIZE-64(r1)
423 mtmsrd r3,1
430 beq 1f
432 1:
439 bne 1f
443 1: li r3,0
448 1: /* assume normal blr return */
452 li r6,1
453 stw r6,kexec_flag-1b(5)
456 beq 1f
484 * and 0 will store phys into struct boot-block and load r3 from there,
485 * copy kernel 0-0x100 and tell slaves to back down to 0x60 again
492 1: mr r3,r25 # my phys cpu
496 blr /* image->start(physid, image->start, 0); */