2 * ultra.S: Don't expand these all over the place...
4 * Copyright (C) 1997, 2000, 2008 David S. Miller (davem@davemloft.net)
8 #include <asm/pgtable.h>
10 #include <asm/spitfire.h>
11 #include <asm/mmu_context.h>
15 #include <asm/thread_info.h>
16 #include <asm/cacheflush.h>
17 #include <asm/hypervisor.h>
18 #include <asm/cpudata.h>
20 /* Basically, most of the Spitfire vs. Cheetah madness
21 * has to do with the fact that Cheetah does not support
22 * IMMU flushes out of the secondary context. Someone needs
23 * to throw a south lake birthday party for the folks
24 * in Microelectronics who refused to fix this shit.
27 /* This file is meant to be read efficiently by the CPU, not humans.
28 * Staraj sie tego nikomu nie pierdolnac...
33 __flush_tlb_mm: /* 18 insns */
34 /* %o0=(ctx & TAG_CONTEXT_BITS), %o1=SECONDARY_CONTEXT */
35 ldxa [%o1] ASI_DMMU, %g2
37 bne,pn %icc, __spitfire_flush_tlb_mm_slow
39 stxa %g0, [%g3] ASI_DMMU_DEMAP
40 stxa %g0, [%g3] ASI_IMMU_DEMAP
41 sethi %hi(KERNBASE), %g3
56 .globl __flush_tlb_page
57 __flush_tlb_page: /* 22 insns */
58 /* %o0 = context, %o1 = vaddr */
60 andn %g7, PSTATE_IE, %g2
62 mov SECONDARY_CONTEXT, %o4
63 ldxa [%o4] ASI_DMMU, %g2
64 stxa %o0, [%o4] ASI_DMMU
69 stxa %g0, [%o3] ASI_IMMU_DEMAP
70 1: stxa %g0, [%o3] ASI_DMMU_DEMAP
72 stxa %g2, [%o4] ASI_DMMU
73 sethi %hi(KERNBASE), %o4
76 wrpr %g7, 0x0, %pstate
83 .globl __flush_tlb_pending
84 __flush_tlb_pending: /* 26 insns */
85 /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
88 andn %g7, PSTATE_IE, %g2
90 mov SECONDARY_CONTEXT, %o4
91 ldxa [%o4] ASI_DMMU, %g2
92 stxa %o0, [%o4] ASI_DMMU
93 1: sub %o1, (1 << 3), %o1
99 stxa %g0, [%o3] ASI_IMMU_DEMAP
100 2: stxa %g0, [%o3] ASI_DMMU_DEMAP
104 stxa %g2, [%o4] ASI_DMMU
105 sethi %hi(KERNBASE), %o4
108 wrpr %g7, 0x0, %pstate
115 .globl __flush_tlb_kernel_range
116 __flush_tlb_kernel_range: /* 16 insns */
117 /* %o0=start, %o1=end */
120 sethi %hi(PAGE_SIZE), %o4
123 or %o0, 0x20, %o0 ! Nucleus
124 1: stxa %g0, [%o0 + %o3] ASI_DMMU_DEMAP
125 stxa %g0, [%o0 + %o3] ASI_IMMU_DEMAP
129 2: sethi %hi(KERNBASE), %o3
135 __spitfire_flush_tlb_mm_slow:
137 wrpr %g1, PSTATE_IE, %pstate
138 stxa %o0, [%o1] ASI_DMMU
139 stxa %g0, [%g3] ASI_DMMU_DEMAP
140 stxa %g0, [%g3] ASI_IMMU_DEMAP
142 stxa %g2, [%o1] ASI_DMMU
143 sethi %hi(KERNBASE), %o1
149 * The following code flushes one page_size worth.
151 .section .kprobes.text, "ax"
153 .globl __flush_icache_page
154 __flush_icache_page: /* %o0 = phys_page */
155 srlx %o0, PAGE_SHIFT, %o0
156 sethi %hi(PAGE_OFFSET), %g1
157 sllx %o0, PAGE_SHIFT, %o0
158 sethi %hi(PAGE_SIZE), %g2
159 ldx [%g1 + %lo(PAGE_OFFSET)], %g1
161 1: subcc %g2, 32, %g2
167 #ifdef DCACHE_ALIASING_POSSIBLE
169 #if (PAGE_SHIFT != 13)
170 #error only page shift of 13 is supported by dcache flush
173 #define DTAG_MASK 0x3
175 /* This routine is Spitfire specific so the hardcoded
176 * D-cache size and line-size are OK.
179 .globl __flush_dcache_page
180 __flush_dcache_page: /* %o0=kaddr, %o1=flush_icache */
181 sethi %hi(PAGE_OFFSET), %g1
182 ldx [%g1 + %lo(PAGE_OFFSET)], %g1
183 sub %o0, %g1, %o0 ! physical address
184 srlx %o0, 11, %o0 ! make D-cache TAG
185 sethi %hi(1 << 14), %o2 ! D-cache size
186 sub %o2, (1 << 5), %o2 ! D-cache line size
187 1: ldxa [%o2] ASI_DCACHE_TAG, %o3 ! load D-cache TAG
188 andcc %o3, DTAG_MASK, %g0 ! Valid?
189 be,pn %xcc, 2f ! Nope, branch
190 andn %o3, DTAG_MASK, %o3 ! Clear valid bits
191 cmp %o3, %o0 ! TAG match?
192 bne,pt %xcc, 2f ! Nope, branch
194 stxa %g0, [%o2] ASI_DCACHE_TAG ! Invalidate TAG
197 sub %o2, (1 << 5), %o2 ! D-cache line size
199 /* The I-cache does not snoop local stores so we
200 * better flush that too when necessary.
202 brnz,pt %o1, __flush_icache_page
207 #endif /* DCACHE_ALIASING_POSSIBLE */
211 /* Cheetah specific versions, patched at boot time. */
212 __cheetah_flush_tlb_mm: /* 19 insns */
214 andn %g7, PSTATE_IE, %g2
215 wrpr %g2, 0x0, %pstate
217 mov PRIMARY_CONTEXT, %o2
219 ldxa [%o2] ASI_DMMU, %g2
220 srlx %g2, CTX_PGSZ1_NUC_SHIFT, %o1
221 sllx %o1, CTX_PGSZ1_NUC_SHIFT, %o1
222 or %o0, %o1, %o0 /* Preserve nucleus page size fields */
223 stxa %o0, [%o2] ASI_DMMU
224 stxa %g0, [%g3] ASI_DMMU_DEMAP
225 stxa %g0, [%g3] ASI_IMMU_DEMAP
226 stxa %g2, [%o2] ASI_DMMU
227 sethi %hi(KERNBASE), %o2
231 wrpr %g7, 0x0, %pstate
233 __cheetah_flush_tlb_page: /* 22 insns */
234 /* %o0 = context, %o1 = vaddr */
236 andn %g7, PSTATE_IE, %g2
237 wrpr %g2, 0x0, %pstate
239 mov PRIMARY_CONTEXT, %o4
240 ldxa [%o4] ASI_DMMU, %g2
241 srlx %g2, CTX_PGSZ1_NUC_SHIFT, %o3
242 sllx %o3, CTX_PGSZ1_NUC_SHIFT, %o3
243 or %o0, %o3, %o0 /* Preserve nucleus page size fields */
244 stxa %o0, [%o4] ASI_DMMU
248 stxa %g0, [%o3] ASI_IMMU_DEMAP
249 1: stxa %g0, [%o3] ASI_DMMU_DEMAP
251 stxa %g2, [%o4] ASI_DMMU
252 sethi %hi(KERNBASE), %o4
256 wrpr %g7, 0x0, %pstate
258 __cheetah_flush_tlb_pending: /* 27 insns */
259 /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
262 andn %g7, PSTATE_IE, %g2
263 wrpr %g2, 0x0, %pstate
265 mov PRIMARY_CONTEXT, %o4
266 ldxa [%o4] ASI_DMMU, %g2
267 srlx %g2, CTX_PGSZ1_NUC_SHIFT, %o3
268 sllx %o3, CTX_PGSZ1_NUC_SHIFT, %o3
269 or %o0, %o3, %o0 /* Preserve nucleus page size fields */
270 stxa %o0, [%o4] ASI_DMMU
271 1: sub %o1, (1 << 3), %o1
276 stxa %g0, [%o3] ASI_IMMU_DEMAP
277 2: stxa %g0, [%o3] ASI_DMMU_DEMAP
281 stxa %g2, [%o4] ASI_DMMU
282 sethi %hi(KERNBASE), %o4
286 wrpr %g7, 0x0, %pstate
288 #ifdef DCACHE_ALIASING_POSSIBLE
289 __cheetah_flush_dcache_page: /* 11 insns */
290 sethi %hi(PAGE_OFFSET), %g1
291 ldx [%g1 + %lo(PAGE_OFFSET)], %g1
293 sethi %hi(PAGE_SIZE), %o4
294 1: subcc %o4, (1 << 5), %o4
295 stxa %g0, [%o0 + %o4] ASI_DCACHE_INVALIDATE
299 retl /* I-cache flush never needed on Cheetah, see callers. */
301 #endif /* DCACHE_ALIASING_POSSIBLE */
303 /* Hypervisor specific versions, patched at boot time. */
304 __hypervisor_tlb_tl0_error:
307 call hypervisor_tlbop_error
312 __hypervisor_flush_tlb_mm: /* 10 insns */
313 mov %o0, %o2 /* ARG2: mmu context */
314 mov 0, %o0 /* ARG0: CPU lists unimplemented */
315 mov 0, %o1 /* ARG1: CPU lists unimplemented */
316 mov HV_MMU_ALL, %o3 /* ARG3: flags */
317 mov HV_FAST_MMU_DEMAP_CTX, %o5
319 brnz,pn %o0, __hypervisor_tlb_tl0_error
320 mov HV_FAST_MMU_DEMAP_CTX, %o1
324 __hypervisor_flush_tlb_page: /* 11 insns */
325 /* %o0 = context, %o1 = vaddr */
327 mov %o1, %o0 /* ARG0: vaddr + IMMU-bit */
328 mov %g2, %o1 /* ARG1: mmu context */
329 mov HV_MMU_ALL, %o2 /* ARG2: flags */
330 srlx %o0, PAGE_SHIFT, %o0
331 sllx %o0, PAGE_SHIFT, %o0
332 ta HV_MMU_UNMAP_ADDR_TRAP
333 brnz,pn %o0, __hypervisor_tlb_tl0_error
334 mov HV_MMU_UNMAP_ADDR_TRAP, %o1
338 __hypervisor_flush_tlb_pending: /* 16 insns */
339 /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
343 1: sub %g1, (1 << 3), %g1
344 ldx [%g2 + %g1], %o0 /* ARG0: vaddr + IMMU-bit */
345 mov %g3, %o1 /* ARG1: mmu context */
346 mov HV_MMU_ALL, %o2 /* ARG2: flags */
347 srlx %o0, PAGE_SHIFT, %o0
348 sllx %o0, PAGE_SHIFT, %o0
349 ta HV_MMU_UNMAP_ADDR_TRAP
350 brnz,pn %o0, __hypervisor_tlb_tl0_error
351 mov HV_MMU_UNMAP_ADDR_TRAP, %o1
357 __hypervisor_flush_tlb_kernel_range: /* 16 insns */
358 /* %o0=start, %o1=end */
361 sethi %hi(PAGE_SIZE), %g3
365 1: add %g1, %g2, %o0 /* ARG0: virtual address */
366 mov 0, %o1 /* ARG1: mmu context */
367 mov HV_MMU_ALL, %o2 /* ARG2: flags */
368 ta HV_MMU_UNMAP_ADDR_TRAP
369 brnz,pn %o0, __hypervisor_tlb_tl0_error
370 mov HV_MMU_UNMAP_ADDR_TRAP, %o1
376 #ifdef DCACHE_ALIASING_POSSIBLE
377 /* XXX Niagara and friends have an 8K cache, so no aliasing is
378 * XXX possible, but nothing explicit in the Hypervisor API
379 * XXX guarantees this.
381 __hypervisor_flush_dcache_page: /* 2 insns */
397 .globl cheetah_patch_cachetlbops
398 cheetah_patch_cachetlbops:
401 sethi %hi(__flush_tlb_mm), %o0
402 or %o0, %lo(__flush_tlb_mm), %o0
403 sethi %hi(__cheetah_flush_tlb_mm), %o1
404 or %o1, %lo(__cheetah_flush_tlb_mm), %o1
408 sethi %hi(__flush_tlb_page), %o0
409 or %o0, %lo(__flush_tlb_page), %o0
410 sethi %hi(__cheetah_flush_tlb_page), %o1
411 or %o1, %lo(__cheetah_flush_tlb_page), %o1
415 sethi %hi(__flush_tlb_pending), %o0
416 or %o0, %lo(__flush_tlb_pending), %o0
417 sethi %hi(__cheetah_flush_tlb_pending), %o1
418 or %o1, %lo(__cheetah_flush_tlb_pending), %o1
422 #ifdef DCACHE_ALIASING_POSSIBLE
423 sethi %hi(__flush_dcache_page), %o0
424 or %o0, %lo(__flush_dcache_page), %o0
425 sethi %hi(__cheetah_flush_dcache_page), %o1
426 or %o1, %lo(__cheetah_flush_dcache_page), %o1
429 #endif /* DCACHE_ALIASING_POSSIBLE */
435 /* These are all called by the slaves of a cross call, at
436 * trap level 1, with interrupts fully disabled.
439 * %g5 mm->context (all tlb flushes)
440 * %g1 address arg 1 (tlb page and range flushes)
441 * %g7 address arg 2 (tlb range flush only)
449 .globl xcall_flush_tlb_mm
450 xcall_flush_tlb_mm: /* 21 insns */
451 mov PRIMARY_CONTEXT, %g2
452 ldxa [%g2] ASI_DMMU, %g3
453 srlx %g3, CTX_PGSZ1_NUC_SHIFT, %g4
454 sllx %g4, CTX_PGSZ1_NUC_SHIFT, %g4
455 or %g5, %g4, %g5 /* Preserve nucleus page size fields */
456 stxa %g5, [%g2] ASI_DMMU
458 stxa %g0, [%g4] ASI_DMMU_DEMAP
459 stxa %g0, [%g4] ASI_IMMU_DEMAP
460 stxa %g3, [%g2] ASI_DMMU
473 .globl xcall_flush_tlb_page
474 xcall_flush_tlb_page: /* 17 insns */
475 /* %g5=context, %g1=vaddr */
476 mov PRIMARY_CONTEXT, %g4
477 ldxa [%g4] ASI_DMMU, %g2
478 srlx %g2, CTX_PGSZ1_NUC_SHIFT, %g4
479 sllx %g4, CTX_PGSZ1_NUC_SHIFT, %g4
481 mov PRIMARY_CONTEXT, %g4
482 stxa %g5, [%g4] ASI_DMMU
486 stxa %g0, [%g5] ASI_IMMU_DEMAP
487 2: stxa %g0, [%g5] ASI_DMMU_DEMAP
489 stxa %g2, [%g4] ASI_DMMU
494 .globl xcall_flush_tlb_kernel_range
495 xcall_flush_tlb_kernel_range: /* 25 insns */
496 sethi %hi(PAGE_SIZE - 1), %g2
497 or %g2, %lo(PAGE_SIZE - 1), %g2
503 or %g1, 0x20, %g1 ! Nucleus
504 1: stxa %g0, [%g1 + %g3] ASI_DMMU_DEMAP
505 stxa %g0, [%g1 + %g3] ASI_IMMU_DEMAP
522 /* This runs in a very controlled environment, so we do
523 * not need to worry about BH races etc.
525 .globl xcall_sync_tick
528 661: rdpr %pstate, %g2
529 wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
530 .section .sun4v_2insn_patch, "ax"
537 wrpr %g0, PIL_NORMAL_MAX, %pil
540 109: or %g7, %lo(109b), %g7
541 #ifdef CONFIG_TRACE_IRQFLAGS
542 call trace_hardirqs_off
545 call smp_synchronize_tick_client
548 ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1
550 .globl xcall_fetch_glob_regs
551 xcall_fetch_glob_regs:
552 sethi %hi(global_cpu_snapshot), %g1
553 or %g1, %lo(global_cpu_snapshot), %g1
558 stx %g7, [%g1 + GR_SNAP_TSTATE]
560 stx %g7, [%g1 + GR_SNAP_TPC]
562 stx %g7, [%g1 + GR_SNAP_TNPC]
563 stx %o7, [%g1 + GR_SNAP_O7]
564 stx %i7, [%g1 + GR_SNAP_I7]
565 /* Don't try this at home kids... */
571 stx %g7, [%g1 + GR_SNAP_RPC]
572 sethi %hi(trap_block), %g7
573 or %g7, %lo(trap_block), %g7
574 sllx %g2, TRAP_BLOCK_SZ_SHIFT, %g2
576 ldx [%g7 + TRAP_PER_CPU_THREAD], %g3
577 stx %g3, [%g1 + GR_SNAP_THREAD]
580 .globl xcall_fetch_glob_pmu
581 xcall_fetch_glob_pmu:
582 sethi %hi(global_cpu_snapshot), %g1
583 or %g1, %lo(global_cpu_snapshot), %g1
588 stx %g7, [%g1 + (4 * 8)]
590 stx %g7, [%g1 + (0 * 8)]
593 .globl xcall_fetch_glob_pmu_n4
594 xcall_fetch_glob_pmu_n4:
595 sethi %hi(global_cpu_snapshot), %g1
596 or %g1, %lo(global_cpu_snapshot), %g1
601 ldxa [%g0] ASI_PIC, %g7
602 stx %g7, [%g1 + (4 * 8)]
604 ldxa [%g3] ASI_PIC, %g7
605 stx %g7, [%g1 + (5 * 8)]
607 ldxa [%g3] ASI_PIC, %g7
608 stx %g7, [%g1 + (6 * 8)]
610 ldxa [%g3] ASI_PIC, %g7
611 stx %g7, [%g1 + (7 * 8)]
617 mov HV_FAST_VT_GET_PERFREG, %o5
620 stx %o1, [%g1 + (3 * 8)]
621 mov HV_FAST_VT_GET_PERFREG, %o5
624 stx %o1, [%g1 + (2 * 8)]
625 mov HV_FAST_VT_GET_PERFREG, %o5
628 stx %o1, [%g1 + (1 * 8)]
629 mov HV_FAST_VT_GET_PERFREG, %o5
632 stx %o1, [%g1 + (0 * 8)]
640 #ifdef DCACHE_ALIASING_POSSIBLE
642 .globl xcall_flush_dcache_page_cheetah
643 xcall_flush_dcache_page_cheetah: /* %g1 == physical page address */
644 sethi %hi(PAGE_SIZE), %g3
645 1: subcc %g3, (1 << 5), %g3
646 stxa %g0, [%g1 + %g3] ASI_DCACHE_INVALIDATE
652 #endif /* DCACHE_ALIASING_POSSIBLE */
654 .globl xcall_flush_dcache_page_spitfire
655 xcall_flush_dcache_page_spitfire: /* %g1 == physical page address
656 %g7 == kernel page virtual address
657 %g5 == (page->mapping != NULL) */
658 #ifdef DCACHE_ALIASING_POSSIBLE
659 srlx %g1, (13 - 2), %g1 ! Form tag comparitor
660 sethi %hi(L1DCACHE_SIZE), %g3 ! D$ size == 16K
661 sub %g3, (1 << 5), %g3 ! D$ linesize == 32
662 1: ldxa [%g3] ASI_DCACHE_TAG, %g2
670 stxa %g0, [%g3] ASI_DCACHE_TAG
674 sub %g3, (1 << 5), %g3
677 #endif /* DCACHE_ALIASING_POSSIBLE */
678 sethi %hi(PAGE_SIZE), %g3
681 subcc %g3, (1 << 5), %g3
683 add %g7, (1 << 5), %g7
692 __hypervisor_tlb_xcall_error:
698 call hypervisor_tlbop_error_xcall
702 .globl __hypervisor_xcall_flush_tlb_mm
703 __hypervisor_xcall_flush_tlb_mm: /* 21 insns */
704 /* %g5=ctx, g1,g2,g3,g4,g7=scratch, %g6=unusable */
710 clr %o0 /* ARG0: CPU lists unimplemented */
711 clr %o1 /* ARG1: CPU lists unimplemented */
712 mov %g5, %o2 /* ARG2: mmu context */
713 mov HV_MMU_ALL, %o3 /* ARG3: flags */
714 mov HV_FAST_MMU_DEMAP_CTX, %o5
716 mov HV_FAST_MMU_DEMAP_CTX, %g6
717 brnz,pn %o0, __hypervisor_tlb_xcall_error
727 .globl __hypervisor_xcall_flush_tlb_page
728 __hypervisor_xcall_flush_tlb_page: /* 17 insns */
729 /* %g5=ctx, %g1=vaddr */
733 mov %g1, %o0 /* ARG0: virtual address */
734 mov %g5, %o1 /* ARG1: mmu context */
735 mov HV_MMU_ALL, %o2 /* ARG2: flags */
736 srlx %o0, PAGE_SHIFT, %o0
737 sllx %o0, PAGE_SHIFT, %o0
738 ta HV_MMU_UNMAP_ADDR_TRAP
739 mov HV_MMU_UNMAP_ADDR_TRAP, %g6
740 brnz,a,pn %o0, __hypervisor_tlb_xcall_error
748 .globl __hypervisor_xcall_flush_tlb_kernel_range
749 __hypervisor_xcall_flush_tlb_kernel_range: /* 25 insns */
750 /* %g1=start, %g7=end, g2,g3,g4,g5,g6=scratch */
751 sethi %hi(PAGE_SIZE - 1), %g2
752 or %g2, %lo(PAGE_SIZE - 1), %g2
761 1: add %g1, %g3, %o0 /* ARG0: virtual address */
762 mov 0, %o1 /* ARG1: mmu context */
763 mov HV_MMU_ALL, %o2 /* ARG2: flags */
764 ta HV_MMU_UNMAP_ADDR_TRAP
765 mov HV_MMU_UNMAP_ADDR_TRAP, %g6
766 brnz,pn %o0, __hypervisor_tlb_xcall_error
768 sethi %hi(PAGE_SIZE), %o2
777 /* These just get rescheduled to PIL vectors. */
778 .globl xcall_call_function
780 wr %g0, (1 << PIL_SMP_CALL_FUNC), %set_softint
783 .globl xcall_call_function_single
784 xcall_call_function_single:
785 wr %g0, (1 << PIL_SMP_CALL_FUNC_SNGL), %set_softint
788 .globl xcall_receive_signal
789 xcall_receive_signal:
790 wr %g0, (1 << PIL_SMP_RECEIVE_SIGNAL), %set_softint
795 wr %g0, (1 << PIL_SMP_CAPTURE), %set_softint
798 .globl xcall_new_mmu_context_version
799 xcall_new_mmu_context_version:
800 wr %g0, (1 << PIL_SMP_CTX_NEW_VERSION), %set_softint
804 .globl xcall_kgdb_capture
806 wr %g0, (1 << PIL_KGDB_CAPTURE), %set_softint
810 #endif /* CONFIG_SMP */
813 .globl hypervisor_patch_cachetlbops
814 hypervisor_patch_cachetlbops:
817 sethi %hi(__flush_tlb_mm), %o0
818 or %o0, %lo(__flush_tlb_mm), %o0
819 sethi %hi(__hypervisor_flush_tlb_mm), %o1
820 or %o1, %lo(__hypervisor_flush_tlb_mm), %o1
824 sethi %hi(__flush_tlb_page), %o0
825 or %o0, %lo(__flush_tlb_page), %o0
826 sethi %hi(__hypervisor_flush_tlb_page), %o1
827 or %o1, %lo(__hypervisor_flush_tlb_page), %o1
831 sethi %hi(__flush_tlb_pending), %o0
832 or %o0, %lo(__flush_tlb_pending), %o0
833 sethi %hi(__hypervisor_flush_tlb_pending), %o1
834 or %o1, %lo(__hypervisor_flush_tlb_pending), %o1
838 sethi %hi(__flush_tlb_kernel_range), %o0
839 or %o0, %lo(__flush_tlb_kernel_range), %o0
840 sethi %hi(__hypervisor_flush_tlb_kernel_range), %o1
841 or %o1, %lo(__hypervisor_flush_tlb_kernel_range), %o1
845 #ifdef DCACHE_ALIASING_POSSIBLE
846 sethi %hi(__flush_dcache_page), %o0
847 or %o0, %lo(__flush_dcache_page), %o0
848 sethi %hi(__hypervisor_flush_dcache_page), %o1
849 or %o1, %lo(__hypervisor_flush_dcache_page), %o1
852 #endif /* DCACHE_ALIASING_POSSIBLE */
855 sethi %hi(xcall_flush_tlb_mm), %o0
856 or %o0, %lo(xcall_flush_tlb_mm), %o0
857 sethi %hi(__hypervisor_xcall_flush_tlb_mm), %o1
858 or %o1, %lo(__hypervisor_xcall_flush_tlb_mm), %o1
862 sethi %hi(xcall_flush_tlb_page), %o0
863 or %o0, %lo(xcall_flush_tlb_page), %o0
864 sethi %hi(__hypervisor_xcall_flush_tlb_page), %o1
865 or %o1, %lo(__hypervisor_xcall_flush_tlb_page), %o1
869 sethi %hi(xcall_flush_tlb_kernel_range), %o0
870 or %o0, %lo(xcall_flush_tlb_kernel_range), %o0
871 sethi %hi(__hypervisor_xcall_flush_tlb_kernel_range), %o1
872 or %o1, %lo(__hypervisor_xcall_flush_tlb_kernel_range), %o1
875 #endif /* CONFIG_SMP */