Lines Matching +full:sync +full:- +full:2
1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
13 * 2. Redistributions in binary form must reproduce the above copyright
76 mtspr(SPR_HID4, bsp_state[2]); powerpc_sync(); isync(); in cpudep_ap_early_bootstrap()
79 __asm __volatile("ld %0, 16(%2); sync; isync; \ in cpudep_ap_early_bootstrap()
80 mtspr %1, %0; sync; isync;" in cpudep_ap_early_bootstrap()
82 __asm __volatile("ld %0, 24(%2); sync; isync; \ in cpudep_ap_early_bootstrap()
83 mtspr %1, %0; sync; isync;" in cpudep_ap_early_bootstrap()
106 * Nuke FSCR, to be managed on a per-process basis in cpudep_ap_early_bootstrap()
127 pcpup->pc_curthread = pcpup->pc_idlethread; in cpudep_ap_bootstrap()
129 __asm __volatile("mr 13,%0" :: "r"(pcpup->pc_curthread)); in cpudep_ap_bootstrap()
131 __asm __volatile("mr 2,%0" :: "r"(pcpup->pc_curthread)); in cpudep_ap_bootstrap()
133 pcpup->pc_curpcb = pcpup->pc_curthread->td_pcb; in cpudep_ap_bootstrap()
134 sp = pcpup->pc_curpcb->pcb_sp; in cpudep_ap_bootstrap()
215 /* Enable L1 D-cache */ in mpc74xx_l1d_enable()
233 /* Enable L1 I-cache */ in mpc74xx_l1i_enable()
256 bsp_state[2] = mfspr(SPR_HID4); in cpudep_save_config()
259 __asm __volatile ("mfspr %0,%2; mr %1,%0; srdi %0,%0,32" in cpudep_save_config()
261 __asm __volatile ("mfspr %0,%2; mr %1,%0; srdi %0,%0,32" in cpudep_save_config()
262 : "=r" (bsp_state[2]),"=r" (bsp_state[3]) : "K" (SPR_HID1)); in cpudep_save_config()
263 __asm __volatile ("mfspr %0,%2; mr %1,%0; srdi %0,%0,32" in cpudep_save_config()
265 __asm __volatile ("mfspr %0,%2; mr %1,%0; srdi %0,%0,32" in cpudep_save_config()
277 bsp_state[2] = mfspr(SPR_HID4); in cpudep_save_config()
298 bsp_state[2] = mfspr(SPR_L2CR); in cpudep_save_config()
321 * See Table 2-3, 970MP manual in cpudep_ap_setup()
327 __asm __volatile("mtasr %0; sync" :: "r"(0)); in cpudep_ap_setup()
330 sync; isync; \ in cpudep_ap_setup()
334 sync; isync" in cpudep_ap_setup()
336 __asm __volatile("sync; isync; \ in cpudep_ap_setup()
337 mtspr %1, %0; mtspr %1, %0; sync; isync" in cpudep_ap_setup()
341 ld %0,0(%2); \ in cpudep_ap_setup()
342 sync; isync; \ in cpudep_ap_setup()
346 sync; isync" in cpudep_ap_setup()
348 __asm __volatile("ld %0, 8(%2); sync; isync; \ in cpudep_ap_setup()
349 mtspr %1, %0; mtspr %1, %0; sync; isync" in cpudep_ap_setup()
360 mtspr(SPR_HID4, bsp_state[2]); in cpudep_ap_setup()
397 mpc74xx_l2_enable(bsp_state[2]); in cpudep_ap_setup()