ultra.S 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  1. /* $Id: ultra.S,v 1.72 2002/02/09 19:49:31 davem Exp $
  2. * ultra.S: Don't expand these all over the place...
  3. *
  4. * Copyright (C) 1997, 2000 David S. Miller (davem@redhat.com)
  5. */
  6. #include <linux/config.h>
  7. #include <asm/asi.h>
  8. #include <asm/pgtable.h>
  9. #include <asm/page.h>
  10. #include <asm/spitfire.h>
  11. #include <asm/mmu_context.h>
  12. #include <asm/mmu.h>
  13. #include <asm/pil.h>
  14. #include <asm/head.h>
  15. #include <asm/thread_info.h>
  16. #include <asm/cacheflush.h>
  17. /* Basically, most of the Spitfire vs. Cheetah madness
  18. * has to do with the fact that Cheetah does not support
  19. * IMMU flushes out of the secondary context. Someone needs
  20. * to throw a south lake birthday party for the folks
  21. * in Microelectronics who refused to fix this shit.
  22. */
  23. /* This file is meant to be read efficiently by the CPU, not humans.
  24. * Staraj sie tego nikomu nie pierdolnac...
  25. */
  26. .text
  27. .align 32
  28. .globl __flush_tlb_mm
  29. __flush_tlb_mm: /* %o0=(ctx & TAG_CONTEXT_BITS), %o1=SECONDARY_CONTEXT */
  30. ldxa [%o1] ASI_DMMU, %g2
  31. cmp %g2, %o0
  32. bne,pn %icc, __spitfire_flush_tlb_mm_slow
  33. mov 0x50, %g3
  34. stxa %g0, [%g3] ASI_DMMU_DEMAP
  35. stxa %g0, [%g3] ASI_IMMU_DEMAP
  36. retl
  37. flush %g6
  38. nop
  39. nop
  40. nop
  41. nop
  42. nop
  43. nop
  44. nop
  45. nop
  46. nop
  47. nop
  48. .align 32
  49. .globl __flush_tlb_pending
  50. __flush_tlb_pending:
  51. /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
  52. rdpr %pstate, %g7
  53. sllx %o1, 3, %o1
  54. andn %g7, PSTATE_IE, %g2
  55. wrpr %g2, %pstate
  56. mov SECONDARY_CONTEXT, %o4
  57. ldxa [%o4] ASI_DMMU, %g2
  58. stxa %o0, [%o4] ASI_DMMU
  59. 1: sub %o1, (1 << 3), %o1
  60. ldx [%o2 + %o1], %o3
  61. andcc %o3, 1, %g0
  62. andn %o3, 1, %o3
  63. be,pn %icc, 2f
  64. or %o3, 0x10, %o3
  65. stxa %g0, [%o3] ASI_IMMU_DEMAP
  66. 2: stxa %g0, [%o3] ASI_DMMU_DEMAP
  67. membar #Sync
  68. brnz,pt %o1, 1b
  69. nop
  70. stxa %g2, [%o4] ASI_DMMU
  71. flush %g6
  72. retl
  73. wrpr %g7, 0x0, %pstate
  74. nop
  75. nop
  76. nop
  77. nop
  78. .align 32
  79. .globl __flush_tlb_kernel_range
  80. __flush_tlb_kernel_range: /* %o0=start, %o1=end */
  81. cmp %o0, %o1
  82. be,pn %xcc, 2f
  83. sethi %hi(PAGE_SIZE), %o4
  84. sub %o1, %o0, %o3
  85. sub %o3, %o4, %o3
  86. or %o0, 0x20, %o0 ! Nucleus
  87. 1: stxa %g0, [%o0 + %o3] ASI_DMMU_DEMAP
  88. stxa %g0, [%o0 + %o3] ASI_IMMU_DEMAP
  89. membar #Sync
  90. brnz,pt %o3, 1b
  91. sub %o3, %o4, %o3
  92. 2: retl
  93. flush %g6
  94. __spitfire_flush_tlb_mm_slow:
  95. rdpr %pstate, %g1
  96. wrpr %g1, PSTATE_IE, %pstate
  97. stxa %o0, [%o1] ASI_DMMU
  98. stxa %g0, [%g3] ASI_DMMU_DEMAP
  99. stxa %g0, [%g3] ASI_IMMU_DEMAP
  100. flush %g6
  101. stxa %g2, [%o1] ASI_DMMU
  102. flush %g6
  103. retl
  104. wrpr %g1, 0, %pstate
  105. /*
  106. * The following code flushes one page_size worth.
  107. */
  108. #if (PAGE_SHIFT == 13)
  109. #define ITAG_MASK 0xfe
  110. #elif (PAGE_SHIFT == 16)
  111. #define ITAG_MASK 0x7fe
  112. #else
  113. #error unsupported PAGE_SIZE
  114. #endif
  115. .section .kprobes.text, "ax"
  116. .align 32
  117. .globl __flush_icache_page
  118. __flush_icache_page: /* %o0 = phys_page */
  119. membar #StoreStore
  120. srlx %o0, PAGE_SHIFT, %o0
  121. sethi %uhi(PAGE_OFFSET), %g1
  122. sllx %o0, PAGE_SHIFT, %o0
  123. sethi %hi(PAGE_SIZE), %g2
  124. sllx %g1, 32, %g1
  125. add %o0, %g1, %o0
  126. 1: subcc %g2, 32, %g2
  127. bne,pt %icc, 1b
  128. flush %o0 + %g2
  129. retl
  130. nop
  131. #ifdef DCACHE_ALIASING_POSSIBLE
  132. #if (PAGE_SHIFT != 13)
  133. #error only page shift of 13 is supported by dcache flush
  134. #endif
  135. #define DTAG_MASK 0x3
  136. /* This routine is Spitfire specific so the hardcoded
  137. * D-cache size and line-size are OK.
  138. */
  139. .align 64
  140. .globl __flush_dcache_page
  141. __flush_dcache_page: /* %o0=kaddr, %o1=flush_icache */
  142. sethi %uhi(PAGE_OFFSET), %g1
  143. sllx %g1, 32, %g1
  144. sub %o0, %g1, %o0 ! physical address
  145. srlx %o0, 11, %o0 ! make D-cache TAG
  146. sethi %hi(1 << 14), %o2 ! D-cache size
  147. sub %o2, (1 << 5), %o2 ! D-cache line size
  148. 1: ldxa [%o2] ASI_DCACHE_TAG, %o3 ! load D-cache TAG
  149. andcc %o3, DTAG_MASK, %g0 ! Valid?
  150. be,pn %xcc, 2f ! Nope, branch
  151. andn %o3, DTAG_MASK, %o3 ! Clear valid bits
  152. cmp %o3, %o0 ! TAG match?
  153. bne,pt %xcc, 2f ! Nope, branch
  154. nop
  155. stxa %g0, [%o2] ASI_DCACHE_TAG ! Invalidate TAG
  156. membar #Sync
  157. 2: brnz,pt %o2, 1b
  158. sub %o2, (1 << 5), %o2 ! D-cache line size
  159. /* The I-cache does not snoop local stores so we
  160. * better flush that too when necessary.
  161. */
  162. brnz,pt %o1, __flush_icache_page
  163. sllx %o0, 11, %o0
  164. retl
  165. nop
  166. #endif /* DCACHE_ALIASING_POSSIBLE */
  167. .previous
  168. .align 32
  169. __prefill_dtlb:
  170. rdpr %pstate, %g7
  171. wrpr %g7, PSTATE_IE, %pstate
  172. mov TLB_TAG_ACCESS, %g1
  173. stxa %o5, [%g1] ASI_DMMU
  174. stxa %o2, [%g0] ASI_DTLB_DATA_IN
  175. flush %g6
  176. retl
  177. wrpr %g7, %pstate
  178. __prefill_itlb:
  179. rdpr %pstate, %g7
  180. wrpr %g7, PSTATE_IE, %pstate
  181. mov TLB_TAG_ACCESS, %g1
  182. stxa %o5, [%g1] ASI_IMMU
  183. stxa %o2, [%g0] ASI_ITLB_DATA_IN
  184. flush %g6
  185. retl
  186. wrpr %g7, %pstate
  187. .globl __update_mmu_cache
  188. __update_mmu_cache: /* %o0=hw_context, %o1=address, %o2=pte, %o3=fault_code */
  189. srlx %o1, PAGE_SHIFT, %o1
  190. andcc %o3, FAULT_CODE_DTLB, %g0
  191. sllx %o1, PAGE_SHIFT, %o5
  192. bne,pt %xcc, __prefill_dtlb
  193. or %o5, %o0, %o5
  194. ba,a,pt %xcc, __prefill_itlb
  195. /* Cheetah specific versions, patched at boot time. */
  196. __cheetah_flush_tlb_mm: /* 18 insns */
  197. rdpr %pstate, %g7
  198. andn %g7, PSTATE_IE, %g2
  199. wrpr %g2, 0x0, %pstate
  200. wrpr %g0, 1, %tl
  201. mov PRIMARY_CONTEXT, %o2
  202. mov 0x40, %g3
  203. ldxa [%o2] ASI_DMMU, %g2
  204. srlx %g2, CTX_PGSZ1_NUC_SHIFT, %o1
  205. sllx %o1, CTX_PGSZ1_NUC_SHIFT, %o1
  206. or %o0, %o1, %o0 /* Preserve nucleus page size fields */
  207. stxa %o0, [%o2] ASI_DMMU
  208. stxa %g0, [%g3] ASI_DMMU_DEMAP
  209. stxa %g0, [%g3] ASI_IMMU_DEMAP
  210. stxa %g2, [%o2] ASI_DMMU
  211. flush %g6
  212. wrpr %g0, 0, %tl
  213. retl
  214. wrpr %g7, 0x0, %pstate
  215. __cheetah_flush_tlb_pending: /* 26 insns */
  216. /* %o0 = context, %o1 = nr, %o2 = vaddrs[] */
  217. rdpr %pstate, %g7
  218. sllx %o1, 3, %o1
  219. andn %g7, PSTATE_IE, %g2
  220. wrpr %g2, 0x0, %pstate
  221. wrpr %g0, 1, %tl
  222. mov PRIMARY_CONTEXT, %o4
  223. ldxa [%o4] ASI_DMMU, %g2
  224. srlx %g2, CTX_PGSZ1_NUC_SHIFT, %o3
  225. sllx %o3, CTX_PGSZ1_NUC_SHIFT, %o3
  226. or %o0, %o3, %o0 /* Preserve nucleus page size fields */
  227. stxa %o0, [%o4] ASI_DMMU
  228. 1: sub %o1, (1 << 3), %o1
  229. ldx [%o2 + %o1], %o3
  230. andcc %o3, 1, %g0
  231. be,pn %icc, 2f
  232. andn %o3, 1, %o3
  233. stxa %g0, [%o3] ASI_IMMU_DEMAP
  234. 2: stxa %g0, [%o3] ASI_DMMU_DEMAP
  235. membar #Sync
  236. brnz,pt %o1, 1b
  237. nop
  238. stxa %g2, [%o4] ASI_DMMU
  239. flush %g6
  240. wrpr %g0, 0, %tl
  241. retl
  242. wrpr %g7, 0x0, %pstate
  243. #ifdef DCACHE_ALIASING_POSSIBLE
  244. __cheetah_flush_dcache_page: /* 11 insns */
  245. sethi %uhi(PAGE_OFFSET), %g1
  246. sllx %g1, 32, %g1
  247. sub %o0, %g1, %o0
  248. sethi %hi(PAGE_SIZE), %o4
  249. 1: subcc %o4, (1 << 5), %o4
  250. stxa %g0, [%o0 + %o4] ASI_DCACHE_INVALIDATE
  251. membar #Sync
  252. bne,pt %icc, 1b
  253. nop
  254. retl /* I-cache flush never needed on Cheetah, see callers. */
  255. nop
  256. #endif /* DCACHE_ALIASING_POSSIBLE */
  257. cheetah_patch_one:
  258. 1: lduw [%o1], %g1
  259. stw %g1, [%o0]
  260. flush %o0
  261. subcc %o2, 1, %o2
  262. add %o1, 4, %o1
  263. bne,pt %icc, 1b
  264. add %o0, 4, %o0
  265. retl
  266. nop
  267. .globl cheetah_patch_cachetlbops
  268. cheetah_patch_cachetlbops:
  269. save %sp, -128, %sp
  270. sethi %hi(__flush_tlb_mm), %o0
  271. or %o0, %lo(__flush_tlb_mm), %o0
  272. sethi %hi(__cheetah_flush_tlb_mm), %o1
  273. or %o1, %lo(__cheetah_flush_tlb_mm), %o1
  274. call cheetah_patch_one
  275. mov 18, %o2
  276. sethi %hi(__flush_tlb_pending), %o0
  277. or %o0, %lo(__flush_tlb_pending), %o0
  278. sethi %hi(__cheetah_flush_tlb_pending), %o1
  279. or %o1, %lo(__cheetah_flush_tlb_pending), %o1
  280. call cheetah_patch_one
  281. mov 26, %o2
  282. #ifdef DCACHE_ALIASING_POSSIBLE
  283. sethi %hi(__flush_dcache_page), %o0
  284. or %o0, %lo(__flush_dcache_page), %o0
  285. sethi %hi(__cheetah_flush_dcache_page), %o1
  286. or %o1, %lo(__cheetah_flush_dcache_page), %o1
  287. call cheetah_patch_one
  288. mov 11, %o2
  289. #endif /* DCACHE_ALIASING_POSSIBLE */
  290. ret
  291. restore
  292. #ifdef CONFIG_SMP
  293. /* These are all called by the slaves of a cross call, at
  294. * trap level 1, with interrupts fully disabled.
  295. *
  296. * Register usage:
  297. * %g5 mm->context (all tlb flushes)
  298. * %g1 address arg 1 (tlb page and range flushes)
  299. * %g7 address arg 2 (tlb range flush only)
  300. *
  301. * %g6 ivector table, don't touch
  302. * %g2 scratch 1
  303. * %g3 scratch 2
  304. * %g4 scratch 3
  305. *
  306. * TODO: Make xcall TLB range flushes use the tricks above... -DaveM
  307. */
  308. .align 32
  309. .globl xcall_flush_tlb_mm
  310. xcall_flush_tlb_mm:
  311. mov PRIMARY_CONTEXT, %g2
  312. ldxa [%g2] ASI_DMMU, %g3
  313. srlx %g3, CTX_PGSZ1_NUC_SHIFT, %g4
  314. sllx %g4, CTX_PGSZ1_NUC_SHIFT, %g4
  315. or %g5, %g4, %g5 /* Preserve nucleus page size fields */
  316. stxa %g5, [%g2] ASI_DMMU
  317. mov 0x40, %g4
  318. stxa %g0, [%g4] ASI_DMMU_DEMAP
  319. stxa %g0, [%g4] ASI_IMMU_DEMAP
  320. stxa %g3, [%g2] ASI_DMMU
  321. retry
  322. .globl xcall_flush_tlb_pending
  323. xcall_flush_tlb_pending:
  324. /* %g5=context, %g1=nr, %g7=vaddrs[] */
  325. sllx %g1, 3, %g1
  326. mov PRIMARY_CONTEXT, %g4
  327. ldxa [%g4] ASI_DMMU, %g2
  328. srlx %g2, CTX_PGSZ1_NUC_SHIFT, %g4
  329. sllx %g4, CTX_PGSZ1_NUC_SHIFT, %g4
  330. or %g5, %g4, %g5
  331. mov PRIMARY_CONTEXT, %g4
  332. stxa %g5, [%g4] ASI_DMMU
  333. 1: sub %g1, (1 << 3), %g1
  334. ldx [%g7 + %g1], %g5
  335. andcc %g5, 0x1, %g0
  336. be,pn %icc, 2f
  337. andn %g5, 0x1, %g5
  338. stxa %g0, [%g5] ASI_IMMU_DEMAP
  339. 2: stxa %g0, [%g5] ASI_DMMU_DEMAP
  340. membar #Sync
  341. brnz,pt %g1, 1b
  342. nop
  343. stxa %g2, [%g4] ASI_DMMU
  344. retry
  345. .globl xcall_flush_tlb_kernel_range
  346. xcall_flush_tlb_kernel_range:
  347. sethi %hi(PAGE_SIZE - 1), %g2
  348. or %g2, %lo(PAGE_SIZE - 1), %g2
  349. andn %g1, %g2, %g1
  350. andn %g7, %g2, %g7
  351. sub %g7, %g1, %g3
  352. add %g2, 1, %g2
  353. sub %g3, %g2, %g3
  354. or %g1, 0x20, %g1 ! Nucleus
  355. 1: stxa %g0, [%g1 + %g3] ASI_DMMU_DEMAP
  356. stxa %g0, [%g1 + %g3] ASI_IMMU_DEMAP
  357. membar #Sync
  358. brnz,pt %g3, 1b
  359. sub %g3, %g2, %g3
  360. retry
  361. nop
  362. nop
  363. /* This runs in a very controlled environment, so we do
  364. * not need to worry about BH races etc.
  365. */
  366. .globl xcall_sync_tick
  367. xcall_sync_tick:
  368. rdpr %pstate, %g2
  369. wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
  370. rdpr %pil, %g2
  371. wrpr %g0, 15, %pil
  372. sethi %hi(109f), %g7
  373. b,pt %xcc, etrap_irq
  374. 109: or %g7, %lo(109b), %g7
  375. call smp_synchronize_tick_client
  376. nop
  377. clr %l6
  378. b rtrap_xcall
  379. ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1
  380. /* NOTE: This is SPECIAL!! We do etrap/rtrap however
  381. * we choose to deal with the "BH's run with
  382. * %pil==15" problem (described in asm/pil.h)
  383. * by just invoking rtrap directly past where
  384. * BH's are checked for.
  385. *
  386. * We do it like this because we do not want %pil==15
  387. * lockups to prevent regs being reported.
  388. */
  389. .globl xcall_report_regs
  390. xcall_report_regs:
  391. rdpr %pstate, %g2
  392. wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
  393. rdpr %pil, %g2
  394. wrpr %g0, 15, %pil
  395. sethi %hi(109f), %g7
  396. b,pt %xcc, etrap_irq
  397. 109: or %g7, %lo(109b), %g7
  398. call __show_regs
  399. add %sp, PTREGS_OFF, %o0
  400. clr %l6
  401. /* Has to be a non-v9 branch due to the large distance. */
  402. b rtrap_xcall
  403. ldx [%sp + PTREGS_OFF + PT_V9_TSTATE], %l1
  404. #ifdef DCACHE_ALIASING_POSSIBLE
  405. .align 32
  406. .globl xcall_flush_dcache_page_cheetah
  407. xcall_flush_dcache_page_cheetah: /* %g1 == physical page address */
  408. sethi %hi(PAGE_SIZE), %g3
  409. 1: subcc %g3, (1 << 5), %g3
  410. stxa %g0, [%g1 + %g3] ASI_DCACHE_INVALIDATE
  411. membar #Sync
  412. bne,pt %icc, 1b
  413. nop
  414. retry
  415. nop
  416. #endif /* DCACHE_ALIASING_POSSIBLE */
  417. .globl xcall_flush_dcache_page_spitfire
  418. xcall_flush_dcache_page_spitfire: /* %g1 == physical page address
  419. %g7 == kernel page virtual address
  420. %g5 == (page->mapping != NULL) */
  421. #ifdef DCACHE_ALIASING_POSSIBLE
  422. srlx %g1, (13 - 2), %g1 ! Form tag comparitor
  423. sethi %hi(L1DCACHE_SIZE), %g3 ! D$ size == 16K
  424. sub %g3, (1 << 5), %g3 ! D$ linesize == 32
  425. 1: ldxa [%g3] ASI_DCACHE_TAG, %g2
  426. andcc %g2, 0x3, %g0
  427. be,pn %xcc, 2f
  428. andn %g2, 0x3, %g2
  429. cmp %g2, %g1
  430. bne,pt %xcc, 2f
  431. nop
  432. stxa %g0, [%g3] ASI_DCACHE_TAG
  433. membar #Sync
  434. 2: cmp %g3, 0
  435. bne,pt %xcc, 1b
  436. sub %g3, (1 << 5), %g3
  437. brz,pn %g5, 2f
  438. #endif /* DCACHE_ALIASING_POSSIBLE */
  439. sethi %hi(PAGE_SIZE), %g3
  440. 1: flush %g7
  441. subcc %g3, (1 << 5), %g3
  442. bne,pt %icc, 1b
  443. add %g7, (1 << 5), %g7
  444. 2: retry
  445. nop
  446. nop
  447. .globl xcall_promstop
  448. xcall_promstop:
  449. rdpr %pstate, %g2
  450. wrpr %g2, PSTATE_IG | PSTATE_AG, %pstate
  451. rdpr %pil, %g2
  452. wrpr %g0, 15, %pil
  453. sethi %hi(109f), %g7
  454. b,pt %xcc, etrap_irq
  455. 109: or %g7, %lo(109b), %g7
  456. flushw
  457. call prom_stopself
  458. nop
  459. /* We should not return, just spin if we do... */
  460. 1: b,a,pt %xcc, 1b
  461. nop
  462. .data
  463. errata32_hwbug:
  464. .xword 0
  465. .text
  466. /* These two are not performance critical... */
  467. .globl xcall_flush_tlb_all_spitfire
  468. xcall_flush_tlb_all_spitfire:
  469. /* Spitfire Errata #32 workaround. */
  470. sethi %hi(errata32_hwbug), %g4
  471. stx %g0, [%g4 + %lo(errata32_hwbug)]
  472. clr %g2
  473. clr %g3
  474. 1: ldxa [%g3] ASI_DTLB_DATA_ACCESS, %g4
  475. and %g4, _PAGE_L, %g5
  476. brnz,pn %g5, 2f
  477. mov TLB_TAG_ACCESS, %g7
  478. stxa %g0, [%g7] ASI_DMMU
  479. membar #Sync
  480. stxa %g0, [%g3] ASI_DTLB_DATA_ACCESS
  481. membar #Sync
  482. /* Spitfire Errata #32 workaround. */
  483. sethi %hi(errata32_hwbug), %g4
  484. stx %g0, [%g4 + %lo(errata32_hwbug)]
  485. 2: ldxa [%g3] ASI_ITLB_DATA_ACCESS, %g4
  486. and %g4, _PAGE_L, %g5
  487. brnz,pn %g5, 2f
  488. mov TLB_TAG_ACCESS, %g7
  489. stxa %g0, [%g7] ASI_IMMU
  490. membar #Sync
  491. stxa %g0, [%g3] ASI_ITLB_DATA_ACCESS
  492. membar #Sync
  493. /* Spitfire Errata #32 workaround. */
  494. sethi %hi(errata32_hwbug), %g4
  495. stx %g0, [%g4 + %lo(errata32_hwbug)]
  496. 2: add %g2, 1, %g2
  497. cmp %g2, SPITFIRE_HIGHEST_LOCKED_TLBENT
  498. ble,pt %icc, 1b
  499. sll %g2, 3, %g3
  500. flush %g6
  501. retry
  502. .globl xcall_flush_tlb_all_cheetah
  503. xcall_flush_tlb_all_cheetah:
  504. mov 0x80, %g2
  505. stxa %g0, [%g2] ASI_DMMU_DEMAP
  506. stxa %g0, [%g2] ASI_IMMU_DEMAP
  507. retry
  508. /* These just get rescheduled to PIL vectors. */
  509. .globl xcall_call_function
  510. xcall_call_function:
  511. wr %g0, (1 << PIL_SMP_CALL_FUNC), %set_softint
  512. retry
  513. .globl xcall_receive_signal
  514. xcall_receive_signal:
  515. wr %g0, (1 << PIL_SMP_RECEIVE_SIGNAL), %set_softint
  516. retry
  517. .globl xcall_capture
  518. xcall_capture:
  519. wr %g0, (1 << PIL_SMP_CAPTURE), %set_softint
  520. retry
  521. #endif /* CONFIG_SMP */