misc_64.S 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697
  1. /*
  2. * This file contains miscellaneous low-level functions.
  3. * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
  4. *
  5. * Largely rewritten by Cort Dougan (cort@cs.nmt.edu)
  6. * and Paul Mackerras.
  7. * Adapted for iSeries by Mike Corrigan (mikejc@us.ibm.com)
  8. * PPC64 updates by Dave Engebretsen (engebret@us.ibm.com)
  9. *
  10. * This program is free software; you can redistribute it and/or
  11. * modify it under the terms of the GNU General Public License
  12. * as published by the Free Software Foundation; either version
  13. * 2 of the License, or (at your option) any later version.
  14. *
  15. */
  16. #include <linux/sys.h>
  17. #include <asm/unistd.h>
  18. #include <asm/errno.h>
  19. #include <asm/processor.h>
  20. #include <asm/page.h>
  21. #include <asm/cache.h>
  22. #include <asm/ppc_asm.h>
  23. #include <asm/asm-offsets.h>
  24. #include <asm/cputable.h>
  25. #include <asm/thread_info.h>
  26. .text
  27. _GLOBAL(get_msr)
  28. mfmsr r3
  29. blr
  30. _GLOBAL(get_srr0)
  31. mfsrr0 r3
  32. blr
  33. _GLOBAL(get_srr1)
  34. mfsrr1 r3
  35. blr
  36. #ifdef CONFIG_IRQSTACKS
  37. _GLOBAL(call_do_softirq)
  38. mflr r0
  39. std r0,16(r1)
  40. stdu r1,THREAD_SIZE-112(r3)
  41. mr r1,r3
  42. bl .__do_softirq
  43. ld r1,0(r1)
  44. ld r0,16(r1)
  45. mtlr r0
  46. blr
  47. _GLOBAL(call_handle_irq)
  48. ld r8,0(r6)
  49. mflr r0
  50. std r0,16(r1)
  51. mtctr r8
  52. stdu r1,THREAD_SIZE-112(r5)
  53. mr r1,r5
  54. bctrl
  55. ld r1,0(r1)
  56. ld r0,16(r1)
  57. mtlr r0
  58. blr
  59. #endif /* CONFIG_IRQSTACKS */
  60. .section ".toc","aw"
  61. PPC64_CACHES:
  62. .tc ppc64_caches[TC],ppc64_caches
  63. .section ".text"
  64. /*
  65. * Write any modified data cache blocks out to memory
  66. * and invalidate the corresponding instruction cache blocks.
  67. *
  68. * flush_icache_range(unsigned long start, unsigned long stop)
  69. *
  70. * flush all bytes from start through stop-1 inclusive
  71. */
  72. _KPROBE(__flush_icache_range)
  73. /*
  74. * Flush the data cache to memory
  75. *
  76. * Different systems have different cache line sizes
  77. * and in some cases i-cache and d-cache line sizes differ from
  78. * each other.
  79. */
  80. ld r10,PPC64_CACHES@toc(r2)
  81. lwz r7,DCACHEL1LINESIZE(r10)/* Get cache line size */
  82. addi r5,r7,-1
  83. andc r6,r3,r5 /* round low to line bdy */
  84. subf r8,r6,r4 /* compute length */
  85. add r8,r8,r5 /* ensure we get enough */
  86. lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of cache line size */
  87. srw. r8,r8,r9 /* compute line count */
  88. beqlr /* nothing to do? */
  89. mtctr r8
  90. 1: dcbst 0,r6
  91. add r6,r6,r7
  92. bdnz 1b
  93. sync
  94. /* Now invalidate the instruction cache */
  95. lwz r7,ICACHEL1LINESIZE(r10) /* Get Icache line size */
  96. addi r5,r7,-1
  97. andc r6,r3,r5 /* round low to line bdy */
  98. subf r8,r6,r4 /* compute length */
  99. add r8,r8,r5
  100. lwz r9,ICACHEL1LOGLINESIZE(r10) /* Get log-2 of Icache line size */
  101. srw. r8,r8,r9 /* compute line count */
  102. beqlr /* nothing to do? */
  103. mtctr r8
  104. 2: icbi 0,r6
  105. add r6,r6,r7
  106. bdnz 2b
  107. isync
  108. blr
  109. .previous .text
  110. /*
  111. * Like above, but only do the D-cache.
  112. *
  113. * flush_dcache_range(unsigned long start, unsigned long stop)
  114. *
  115. * flush all bytes from start to stop-1 inclusive
  116. */
  117. _GLOBAL(flush_dcache_range)
  118. /*
  119. * Flush the data cache to memory
  120. *
  121. * Different systems have different cache line sizes
  122. */
  123. ld r10,PPC64_CACHES@toc(r2)
  124. lwz r7,DCACHEL1LINESIZE(r10) /* Get dcache line size */
  125. addi r5,r7,-1
  126. andc r6,r3,r5 /* round low to line bdy */
  127. subf r8,r6,r4 /* compute length */
  128. add r8,r8,r5 /* ensure we get enough */
  129. lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
  130. srw. r8,r8,r9 /* compute line count */
  131. beqlr /* nothing to do? */
  132. mtctr r8
  133. 0: dcbst 0,r6
  134. add r6,r6,r7
  135. bdnz 0b
  136. sync
  137. blr
  138. /*
  139. * Like above, but works on non-mapped physical addresses.
  140. * Use only for non-LPAR setups ! It also assumes real mode
  141. * is cacheable. Used for flushing out the DART before using
  142. * it as uncacheable memory
  143. *
  144. * flush_dcache_phys_range(unsigned long start, unsigned long stop)
  145. *
  146. * flush all bytes from start to stop-1 inclusive
  147. */
  148. _GLOBAL(flush_dcache_phys_range)
  149. ld r10,PPC64_CACHES@toc(r2)
  150. lwz r7,DCACHEL1LINESIZE(r10) /* Get dcache line size */
  151. addi r5,r7,-1
  152. andc r6,r3,r5 /* round low to line bdy */
  153. subf r8,r6,r4 /* compute length */
  154. add r8,r8,r5 /* ensure we get enough */
  155. lwz r9,DCACHEL1LOGLINESIZE(r10) /* Get log-2 of dcache line size */
  156. srw. r8,r8,r9 /* compute line count */
  157. beqlr /* nothing to do? */
  158. mfmsr r5 /* Disable MMU Data Relocation */
  159. ori r0,r5,MSR_DR
  160. xori r0,r0,MSR_DR
  161. sync
  162. mtmsr r0
  163. sync
  164. isync
  165. mtctr r8
  166. 0: dcbst 0,r6
  167. add r6,r6,r7
  168. bdnz 0b
  169. sync
  170. isync
  171. mtmsr r5 /* Re-enable MMU Data Relocation */
  172. sync
  173. isync
  174. blr
  175. _GLOBAL(flush_inval_dcache_range)
  176. ld r10,PPC64_CACHES@toc(r2)
  177. lwz r7,DCACHEL1LINESIZE(r10) /* Get dcache line size */
  178. addi r5,r7,-1
  179. andc r6,r3,r5 /* round low to line bdy */
  180. subf r8,r6,r4 /* compute length */
  181. add r8,r8,r5 /* ensure we get enough */
  182. lwz r9,DCACHEL1LOGLINESIZE(r10)/* Get log-2 of dcache line size */
  183. srw. r8,r8,r9 /* compute line count */
  184. beqlr /* nothing to do? */
  185. sync
  186. isync
  187. mtctr r8
  188. 0: dcbf 0,r6
  189. add r6,r6,r7
  190. bdnz 0b
  191. sync
  192. isync
  193. blr
  194. /*
  195. * Flush a particular page from the data cache to RAM.
  196. * Note: this is necessary because the instruction cache does *not*
  197. * snoop from the data cache.
  198. *
  199. * void __flush_dcache_icache(void *page)
  200. */
  201. _GLOBAL(__flush_dcache_icache)
  202. /*
  203. * Flush the data cache to memory
  204. *
  205. * Different systems have different cache line sizes
  206. */
  207. /* Flush the dcache */
  208. ld r7,PPC64_CACHES@toc(r2)
  209. clrrdi r3,r3,PAGE_SHIFT /* Page align */
  210. lwz r4,DCACHEL1LINESPERPAGE(r7) /* Get # dcache lines per page */
  211. lwz r5,DCACHEL1LINESIZE(r7) /* Get dcache line size */
  212. mr r6,r3
  213. mtctr r4
  214. 0: dcbst 0,r6
  215. add r6,r6,r5
  216. bdnz 0b
  217. sync
  218. /* Now invalidate the icache */
  219. lwz r4,ICACHEL1LINESPERPAGE(r7) /* Get # icache lines per page */
  220. lwz r5,ICACHEL1LINESIZE(r7) /* Get icache line size */
  221. mtctr r4
  222. 1: icbi 0,r3
  223. add r3,r3,r5
  224. bdnz 1b
  225. isync
  226. blr
  227. #if defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_MAPLE)
  228. /*
  229. * Do an IO access in real mode
  230. */
  231. _GLOBAL(real_readb)
  232. mfmsr r7
  233. ori r0,r7,MSR_DR
  234. xori r0,r0,MSR_DR
  235. sync
  236. mtmsrd r0
  237. sync
  238. isync
  239. mfspr r6,SPRN_HID4
  240. rldicl r5,r6,32,0
  241. ori r5,r5,0x100
  242. rldicl r5,r5,32,0
  243. sync
  244. mtspr SPRN_HID4,r5
  245. isync
  246. slbia
  247. isync
  248. lbz r3,0(r3)
  249. sync
  250. mtspr SPRN_HID4,r6
  251. isync
  252. slbia
  253. isync
  254. mtmsrd r7
  255. sync
  256. isync
  257. blr
  258. /*
  259. * Do an IO access in real mode
  260. */
  261. _GLOBAL(real_writeb)
  262. mfmsr r7
  263. ori r0,r7,MSR_DR
  264. xori r0,r0,MSR_DR
  265. sync
  266. mtmsrd r0
  267. sync
  268. isync
  269. mfspr r6,SPRN_HID4
  270. rldicl r5,r6,32,0
  271. ori r5,r5,0x100
  272. rldicl r5,r5,32,0
  273. sync
  274. mtspr SPRN_HID4,r5
  275. isync
  276. slbia
  277. isync
  278. stb r3,0(r4)
  279. sync
  280. mtspr SPRN_HID4,r6
  281. isync
  282. slbia
  283. isync
  284. mtmsrd r7
  285. sync
  286. isync
  287. blr
  288. #endif /* defined(CONFIG_PPC_PMAC) || defined(CONFIG_PPC_MAPLE) */
  289. #ifdef CONFIG_PPC_PASEMI
  290. /* No support in all binutils for these yet, so use defines */
  291. #define LBZCIX(RT,RA,RB) .long (0x7c0006aa|(RT<<21)|(RA<<16)|(RB << 11))
  292. #define STBCIX(RS,RA,RB) .long (0x7c0007aa|(RS<<21)|(RA<<16)|(RB << 11))
  293. _GLOBAL(real_205_readb)
  294. mfmsr r7
  295. ori r0,r7,MSR_DR
  296. xori r0,r0,MSR_DR
  297. sync
  298. mtmsrd r0
  299. sync
  300. isync
  301. LBZCIX(r3,0,r3)
  302. isync
  303. mtmsrd r7
  304. sync
  305. isync
  306. blr
  307. _GLOBAL(real_205_writeb)
  308. mfmsr r7
  309. ori r0,r7,MSR_DR
  310. xori r0,r0,MSR_DR
  311. sync
  312. mtmsrd r0
  313. sync
  314. isync
  315. STBCIX(r3,0,r4)
  316. isync
  317. mtmsrd r7
  318. sync
  319. isync
  320. blr
  321. #endif /* CONFIG_PPC_PASEMI */
  322. #ifdef CONFIG_CPU_FREQ_PMAC64
  323. /*
  324. * SCOM access functions for 970 (FX only for now)
  325. *
  326. * unsigned long scom970_read(unsigned int address);
  327. * void scom970_write(unsigned int address, unsigned long value);
  328. *
  329. * The address passed in is the 24 bits register address. This code
  330. * is 970 specific and will not check the status bits, so you should
  331. * know what you are doing.
  332. */
  333. _GLOBAL(scom970_read)
  334. /* interrupts off */
  335. mfmsr r4
  336. ori r0,r4,MSR_EE
  337. xori r0,r0,MSR_EE
  338. mtmsrd r0,1
  339. /* rotate 24 bits SCOM address 8 bits left and mask out it's low 8 bits
  340. * (including parity). On current CPUs they must be 0'd,
  341. * and finally or in RW bit
  342. */
  343. rlwinm r3,r3,8,0,15
  344. ori r3,r3,0x8000
  345. /* do the actual scom read */
  346. sync
  347. mtspr SPRN_SCOMC,r3
  348. isync
  349. mfspr r3,SPRN_SCOMD
  350. isync
  351. mfspr r0,SPRN_SCOMC
  352. isync
  353. /* XXX: fixup result on some buggy 970's (ouch ! we lost a bit, bah
  354. * that's the best we can do). Not implemented yet as we don't use
  355. * the scom on any of the bogus CPUs yet, but may have to be done
  356. * ultimately
  357. */
  358. /* restore interrupts */
  359. mtmsrd r4,1
  360. blr
  361. _GLOBAL(scom970_write)
  362. /* interrupts off */
  363. mfmsr r5
  364. ori r0,r5,MSR_EE
  365. xori r0,r0,MSR_EE
  366. mtmsrd r0,1
  367. /* rotate 24 bits SCOM address 8 bits left and mask out it's low 8 bits
  368. * (including parity). On current CPUs they must be 0'd.
  369. */
  370. rlwinm r3,r3,8,0,15
  371. sync
  372. mtspr SPRN_SCOMD,r4 /* write data */
  373. isync
  374. mtspr SPRN_SCOMC,r3 /* write command */
  375. isync
  376. mfspr 3,SPRN_SCOMC
  377. isync
  378. /* restore interrupts */
  379. mtmsrd r5,1
  380. blr
  381. #endif /* CONFIG_CPU_FREQ_PMAC64 */
  382. /*
  383. * Create a kernel thread
  384. * kernel_thread(fn, arg, flags)
  385. */
  386. _GLOBAL(kernel_thread)
  387. std r29,-24(r1)
  388. std r30,-16(r1)
  389. stdu r1,-STACK_FRAME_OVERHEAD(r1)
  390. mr r29,r3
  391. mr r30,r4
  392. ori r3,r5,CLONE_VM /* flags */
  393. oris r3,r3,(CLONE_UNTRACED>>16)
  394. li r4,0 /* new sp (unused) */
  395. li r0,__NR_clone
  396. sc
  397. cmpdi 0,r3,0 /* parent or child? */
  398. bne 1f /* return if parent */
  399. li r0,0
  400. stdu r0,-STACK_FRAME_OVERHEAD(r1)
  401. ld r2,8(r29)
  402. ld r29,0(r29)
  403. mtlr r29 /* fn addr in lr */
  404. mr r3,r30 /* load arg and call fn */
  405. blrl
  406. li r0,__NR_exit /* exit after child exits */
  407. li r3,0
  408. sc
  409. 1: addi r1,r1,STACK_FRAME_OVERHEAD
  410. ld r29,-24(r1)
  411. ld r30,-16(r1)
  412. blr
  413. /*
  414. * disable_kernel_fp()
  415. * Disable the FPU.
  416. */
  417. _GLOBAL(disable_kernel_fp)
  418. mfmsr r3
  419. rldicl r0,r3,(63-MSR_FP_LG),1
  420. rldicl r3,r0,(MSR_FP_LG+1),0
  421. mtmsrd r3 /* disable use of fpu now */
  422. isync
  423. blr
  424. #ifdef CONFIG_ALTIVEC
  425. #if 0 /* this has no callers for now */
  426. /*
  427. * disable_kernel_altivec()
  428. * Disable the VMX.
  429. */
  430. _GLOBAL(disable_kernel_altivec)
  431. mfmsr r3
  432. rldicl r0,r3,(63-MSR_VEC_LG),1
  433. rldicl r3,r0,(MSR_VEC_LG+1),0
  434. mtmsrd r3 /* disable use of VMX now */
  435. isync
  436. blr
  437. #endif /* 0 */
  438. /*
  439. * giveup_altivec(tsk)
  440. * Disable VMX for the task given as the argument,
  441. * and save the vector registers in its thread_struct.
  442. * Enables the VMX for use in the kernel on return.
  443. */
  444. _GLOBAL(giveup_altivec)
  445. mfmsr r5
  446. oris r5,r5,MSR_VEC@h
  447. mtmsrd r5 /* enable use of VMX now */
  448. isync
  449. cmpdi 0,r3,0
  450. beqlr- /* if no previous owner, done */
  451. addi r3,r3,THREAD /* want THREAD of task */
  452. ld r5,PT_REGS(r3)
  453. cmpdi 0,r5,0
  454. SAVE_32VRS(0,r4,r3)
  455. mfvscr vr0
  456. li r4,THREAD_VSCR
  457. stvx vr0,r4,r3
  458. beq 1f
  459. ld r4,_MSR-STACK_FRAME_OVERHEAD(r5)
  460. lis r3,MSR_VEC@h
  461. andc r4,r4,r3 /* disable FP for previous task */
  462. std r4,_MSR-STACK_FRAME_OVERHEAD(r5)
  463. 1:
  464. #ifndef CONFIG_SMP
  465. li r5,0
  466. ld r4,last_task_used_altivec@got(r2)
  467. std r5,0(r4)
  468. #endif /* CONFIG_SMP */
  469. blr
  470. #endif /* CONFIG_ALTIVEC */
  471. _GLOBAL(kernel_execve)
  472. li r0,__NR_execve
  473. sc
  474. bnslr
  475. neg r3,r3
  476. blr
  477. /* kexec_wait(phys_cpu)
  478. *
  479. * wait for the flag to change, indicating this kernel is going away but
  480. * the slave code for the next one is at addresses 0 to 100.
  481. *
  482. * This is used by all slaves.
  483. *
  484. * Physical (hardware) cpu id should be in r3.
  485. */
  486. _GLOBAL(kexec_wait)
  487. bl 1f
  488. 1: mflr r5
  489. addi r5,r5,kexec_flag-1b
  490. 99: HMT_LOW
  491. #ifdef CONFIG_KEXEC /* use no memory without kexec */
  492. lwz r4,0(r5)
  493. cmpwi 0,r4,0
  494. bnea 0x60
  495. #endif
  496. b 99b
  497. /* this can be in text because we won't change it until we are
  498. * running in real anyways
  499. */
  500. kexec_flag:
  501. .long 0
  502. #ifdef CONFIG_KEXEC
  503. /* kexec_smp_wait(void)
  504. *
  505. * call with interrupts off
  506. * note: this is a terminal routine, it does not save lr
  507. *
  508. * get phys id from paca
  509. * set paca id to -1 to say we got here
  510. * switch to real mode
  511. * join other cpus in kexec_wait(phys_id)
  512. */
  513. _GLOBAL(kexec_smp_wait)
  514. lhz r3,PACAHWCPUID(r13)
  515. li r4,-1
  516. sth r4,PACAHWCPUID(r13) /* let others know we left */
  517. bl real_mode
  518. b .kexec_wait
  519. /*
  520. * switch to real mode (turn mmu off)
  521. * we use the early kernel trick that the hardware ignores bits
  522. * 0 and 1 (big endian) of the effective address in real mode
  523. *
  524. * don't overwrite r3 here, it is live for kexec_wait above.
  525. */
  526. real_mode: /* assume normal blr return */
  527. 1: li r9,MSR_RI
  528. li r10,MSR_DR|MSR_IR
  529. mflr r11 /* return address to SRR0 */
  530. mfmsr r12
  531. andc r9,r12,r9
  532. andc r10,r12,r10
  533. mtmsrd r9,1
  534. mtspr SPRN_SRR1,r10
  535. mtspr SPRN_SRR0,r11
  536. rfid
  537. /*
  538. * kexec_sequence(newstack, start, image, control, clear_all())
  539. *
  540. * does the grungy work with stack switching and real mode switches
  541. * also does simple calls to other code
  542. */
  543. _GLOBAL(kexec_sequence)
  544. mflr r0
  545. std r0,16(r1)
  546. /* switch stacks to newstack -- &kexec_stack.stack */
  547. stdu r1,THREAD_SIZE-112(r3)
  548. mr r1,r3
  549. li r0,0
  550. std r0,16(r1)
  551. /* save regs for local vars on new stack.
  552. * yes, we won't go back, but ...
  553. */
  554. std r31,-8(r1)
  555. std r30,-16(r1)
  556. std r29,-24(r1)
  557. std r28,-32(r1)
  558. std r27,-40(r1)
  559. std r26,-48(r1)
  560. std r25,-56(r1)
  561. stdu r1,-112-64(r1)
  562. /* save args into preserved regs */
  563. mr r31,r3 /* newstack (both) */
  564. mr r30,r4 /* start (real) */
  565. mr r29,r5 /* image (virt) */
  566. mr r28,r6 /* control, unused */
  567. mr r27,r7 /* clear_all() fn desc */
  568. mr r26,r8 /* spare */
  569. lhz r25,PACAHWCPUID(r13) /* get our phys cpu from paca */
  570. /* disable interrupts, we are overwriting kernel data next */
  571. mfmsr r3
  572. rlwinm r3,r3,0,17,15
  573. mtmsrd r3,1
  574. /* copy dest pages, flush whole dest image */
  575. mr r3,r29
  576. bl .kexec_copy_flush /* (image) */
  577. /* turn off mmu */
  578. bl real_mode
  579. /* copy 0x100 bytes starting at start to 0 */
  580. li r3,0
  581. mr r4,r30 /* start, aka phys mem offset */
  582. li r5,0x100
  583. li r6,0
  584. bl .copy_and_flush /* (dest, src, copy limit, start offset) */
  585. 1: /* assume normal blr return */
  586. /* release other cpus to the new kernel secondary start at 0x60 */
  587. mflr r5
  588. li r6,1
  589. stw r6,kexec_flag-1b(5)
  590. /* clear out hardware hash page table and tlb */
  591. ld r5,0(r27) /* deref function descriptor */
  592. mtctr r5
  593. bctrl /* ppc_md.hpte_clear_all(void); */
  594. /*
  595. * kexec image calling is:
  596. * the first 0x100 bytes of the entry point are copied to 0
  597. *
  598. * all slaves branch to slave = 0x60 (absolute)
  599. * slave(phys_cpu_id);
  600. *
  601. * master goes to start = entry point
  602. * start(phys_cpu_id, start, 0);
  603. *
  604. *
  605. * a wrapper is needed to call existing kernels, here is an approximate
  606. * description of one method:
  607. *
  608. * v2: (2.6.10)
  609. * start will be near the boot_block (maybe 0x100 bytes before it?)
  610. * it will have a 0x60, which will b to boot_block, where it will wait
  611. * and 0 will store phys into struct boot-block and load r3 from there,
  612. * copy kernel 0-0x100 and tell slaves to back down to 0x60 again
  613. *
  614. * v1: (2.6.9)
  615. * boot block will have all cpus scanning device tree to see if they
  616. * are the boot cpu ?????
  617. * other device tree differences (prop sizes, va vs pa, etc)...
  618. */
  619. mr r3,r25 # my phys cpu
  620. mr r4,r30 # start, aka phys mem offset
  621. mtlr 4
  622. li r5,0
  623. blr /* image->start(physid, image->start, 0); */
  624. #endif /* CONFIG_KEXEC */