setup_64.c 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. /*
  2. *
  3. * Common boot and setup code.
  4. *
  5. * Copyright (C) 2001 PPC64 Team, IBM Corp
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License
  9. * as published by the Free Software Foundation; either version
  10. * 2 of the License, or (at your option) any later version.
  11. */
  12. #undef DEBUG
  13. #include <linux/config.h>
  14. #include <linux/module.h>
  15. #include <linux/string.h>
  16. #include <linux/sched.h>
  17. #include <linux/init.h>
  18. #include <linux/kernel.h>
  19. #include <linux/reboot.h>
  20. #include <linux/delay.h>
  21. #include <linux/initrd.h>
  22. #include <linux/ide.h>
  23. #include <linux/seq_file.h>
  24. #include <linux/ioport.h>
  25. #include <linux/console.h>
  26. #include <linux/utsname.h>
  27. #include <linux/tty.h>
  28. #include <linux/root_dev.h>
  29. #include <linux/notifier.h>
  30. #include <linux/cpu.h>
  31. #include <linux/unistd.h>
  32. #include <linux/serial.h>
  33. #include <linux/serial_8250.h>
  34. #include <asm/io.h>
  35. #include <asm/kdump.h>
  36. #include <asm/prom.h>
  37. #include <asm/processor.h>
  38. #include <asm/pgtable.h>
  39. #include <asm/smp.h>
  40. #include <asm/elf.h>
  41. #include <asm/machdep.h>
  42. #include <asm/paca.h>
  43. #include <asm/time.h>
  44. #include <asm/cputable.h>
  45. #include <asm/sections.h>
  46. #include <asm/btext.h>
  47. #include <asm/nvram.h>
  48. #include <asm/setup.h>
  49. #include <asm/system.h>
  50. #include <asm/rtas.h>
  51. #include <asm/iommu.h>
  52. #include <asm/serial.h>
  53. #include <asm/cache.h>
  54. #include <asm/page.h>
  55. #include <asm/mmu.h>
  56. #include <asm/lmb.h>
  57. #include <asm/iseries/it_lp_naca.h>
  58. #include <asm/firmware.h>
  59. #include <asm/xmon.h>
  60. #include <asm/udbg.h>
  61. #include <asm/kexec.h>
  62. #include "setup.h"
  63. #ifdef DEBUG
  64. #define DBG(fmt...) udbg_printf(fmt)
  65. #else
  66. #define DBG(fmt...)
  67. #endif
  68. /*
  69. * Here are some early debugging facilities. You can enable one
  70. * but your kernel will not boot on anything else if you do so
  71. */
  72. /* This one is for use on LPAR machines that support an HVC console
  73. * on vterm 0
  74. */
  75. extern void udbg_init_debug_lpar(void);
  76. /* This one is for use on Apple G5 machines
  77. */
  78. extern void udbg_init_pmac_realmode(void);
  79. /* That's RTAS panel debug */
  80. extern void call_rtas_display_status_delay(unsigned char c);
  81. /* Here's maple real mode debug */
  82. extern void udbg_init_maple_realmode(void);
  83. #define EARLY_DEBUG_INIT() do {} while(0)
  84. #if 0
  85. #define EARLY_DEBUG_INIT() udbg_init_debug_lpar()
  86. #define EARLY_DEBUG_INIT() udbg_init_maple_realmode()
  87. #define EARLY_DEBUG_INIT() udbg_init_pmac_realmode()
  88. #define EARLY_DEBUG_INIT() \
  89. do { udbg_putc = call_rtas_display_status_delay; } while(0)
  90. #endif
  91. int have_of = 1;
  92. int boot_cpuid = 0;
  93. int boot_cpuid_phys = 0;
  94. dev_t boot_dev;
  95. u64 ppc64_pft_size;
  96. /* Pick defaults since we might want to patch instructions
  97. * before we've read this from the device tree.
  98. */
  99. struct ppc64_caches ppc64_caches = {
  100. .dline_size = 0x80,
  101. .log_dline_size = 7,
  102. .iline_size = 0x80,
  103. .log_iline_size = 7
  104. };
  105. EXPORT_SYMBOL_GPL(ppc64_caches);
  106. /*
  107. * These are used in binfmt_elf.c to put aux entries on the stack
  108. * for each elf executable being started.
  109. */
  110. int dcache_bsize;
  111. int icache_bsize;
  112. int ucache_bsize;
  113. /* The main machine-dep calls structure
  114. */
  115. struct machdep_calls ppc_md;
  116. EXPORT_SYMBOL(ppc_md);
  117. #ifdef CONFIG_MAGIC_SYSRQ
  118. unsigned long SYSRQ_KEY;
  119. #endif /* CONFIG_MAGIC_SYSRQ */
  120. static int ppc64_panic_event(struct notifier_block *, unsigned long, void *);
  121. static struct notifier_block ppc64_panic_block = {
  122. .notifier_call = ppc64_panic_event,
  123. .priority = INT_MIN /* may not return; must be done last */
  124. };
  125. #ifdef CONFIG_SMP
  126. static int smt_enabled_cmdline;
  127. /* Look for ibm,smt-enabled OF option */
  128. static void check_smt_enabled(void)
  129. {
  130. struct device_node *dn;
  131. char *smt_option;
  132. /* Allow the command line to overrule the OF option */
  133. if (smt_enabled_cmdline)
  134. return;
  135. dn = of_find_node_by_path("/options");
  136. if (dn) {
  137. smt_option = (char *)get_property(dn, "ibm,smt-enabled", NULL);
  138. if (smt_option) {
  139. if (!strcmp(smt_option, "on"))
  140. smt_enabled_at_boot = 1;
  141. else if (!strcmp(smt_option, "off"))
  142. smt_enabled_at_boot = 0;
  143. }
  144. }
  145. }
  146. /* Look for smt-enabled= cmdline option */
  147. static int __init early_smt_enabled(char *p)
  148. {
  149. smt_enabled_cmdline = 1;
  150. if (!p)
  151. return 0;
  152. if (!strcmp(p, "on") || !strcmp(p, "1"))
  153. smt_enabled_at_boot = 1;
  154. else if (!strcmp(p, "off") || !strcmp(p, "0"))
  155. smt_enabled_at_boot = 0;
  156. return 0;
  157. }
  158. early_param("smt-enabled", early_smt_enabled);
  159. #else
  160. #define check_smt_enabled()
  161. #endif /* CONFIG_SMP */
  162. extern struct machdep_calls pSeries_md;
  163. extern struct machdep_calls pmac_md;
  164. extern struct machdep_calls maple_md;
  165. extern struct machdep_calls cell_md;
  166. extern struct machdep_calls iseries_md;
  167. /* Ultimately, stuff them in an elf section like initcalls... */
  168. static struct machdep_calls __initdata *machines[] = {
  169. #ifdef CONFIG_PPC_PSERIES
  170. &pSeries_md,
  171. #endif /* CONFIG_PPC_PSERIES */
  172. #ifdef CONFIG_PPC_PMAC
  173. &pmac_md,
  174. #endif /* CONFIG_PPC_PMAC */
  175. #ifdef CONFIG_PPC_MAPLE
  176. &maple_md,
  177. #endif /* CONFIG_PPC_MAPLE */
  178. #ifdef CONFIG_PPC_CELL
  179. &cell_md,
  180. #endif
  181. #ifdef CONFIG_PPC_ISERIES
  182. &iseries_md,
  183. #endif
  184. NULL
  185. };
  186. /*
  187. * Early initialization entry point. This is called by head.S
  188. * with MMU translation disabled. We rely on the "feature" of
  189. * the CPU that ignores the top 2 bits of the address in real
  190. * mode so we can access kernel globals normally provided we
  191. * only toy with things in the RMO region. From here, we do
  192. * some early parsing of the device-tree to setup out LMB
  193. * data structures, and allocate & initialize the hash table
  194. * and segment tables so we can start running with translation
  195. * enabled.
  196. *
  197. * It is this function which will call the probe() callback of
  198. * the various platform types and copy the matching one to the
  199. * global ppc_md structure. Your platform can eventually do
  200. * some very early initializations from the probe() routine, but
  201. * this is not recommended, be very careful as, for example, the
  202. * device-tree is not accessible via normal means at this point.
  203. */
  204. void __init early_setup(unsigned long dt_ptr)
  205. {
  206. struct paca_struct *lpaca = get_paca();
  207. static struct machdep_calls **mach;
  208. /*
  209. * Enable early debugging if any specified (see top of
  210. * this file)
  211. */
  212. EARLY_DEBUG_INIT();
  213. DBG(" -> early_setup()\n");
  214. /*
  215. * Do early initializations using the flattened device
  216. * tree, like retreiving the physical memory map or
  217. * calculating/retreiving the hash table size
  218. */
  219. early_init_devtree(__va(dt_ptr));
  220. /*
  221. * Iterate all ppc_md structures until we find the proper
  222. * one for the current machine type
  223. */
  224. DBG("Probing machine type for platform %x...\n", _machine);
  225. for (mach = machines; *mach; mach++) {
  226. if ((*mach)->probe(_machine))
  227. break;
  228. }
  229. /* What can we do if we didn't find ? */
  230. if (*mach == NULL) {
  231. DBG("No suitable machine found !\n");
  232. for (;;);
  233. }
  234. ppc_md = **mach;
  235. #ifdef CONFIG_CRASH_DUMP
  236. kdump_setup();
  237. #endif
  238. DBG("Found, Initializing memory management...\n");
  239. /*
  240. * Initialize the MMU Hash table and create the linear mapping
  241. * of memory. Has to be done before stab/slb initialization as
  242. * this is currently where the page size encoding is obtained
  243. */
  244. htab_initialize();
  245. /*
  246. * Initialize stab / SLB management except on iSeries
  247. */
  248. if (!firmware_has_feature(FW_FEATURE_ISERIES)) {
  249. if (cpu_has_feature(CPU_FTR_SLB))
  250. slb_initialize();
  251. else
  252. stab_initialize(lpaca->stab_real);
  253. }
  254. DBG(" <- early_setup()\n");
  255. }
  256. #ifdef CONFIG_SMP
  257. void early_setup_secondary(void)
  258. {
  259. struct paca_struct *lpaca = get_paca();
  260. /* Mark enabled in PACA */
  261. lpaca->proc_enabled = 0;
  262. /* Initialize hash table for that CPU */
  263. htab_initialize_secondary();
  264. /* Initialize STAB/SLB. We use a virtual address as it works
  265. * in real mode on pSeries and we want a virutal address on
  266. * iSeries anyway
  267. */
  268. if (cpu_has_feature(CPU_FTR_SLB))
  269. slb_initialize();
  270. else
  271. stab_initialize(lpaca->stab_addr);
  272. }
  273. #endif /* CONFIG_SMP */
  274. #if defined(CONFIG_SMP) || defined(CONFIG_KEXEC)
  275. void smp_release_cpus(void)
  276. {
  277. extern unsigned long __secondary_hold_spinloop;
  278. unsigned long *ptr;
  279. DBG(" -> smp_release_cpus()\n");
  280. /* All secondary cpus are spinning on a common spinloop, release them
  281. * all now so they can start to spin on their individual paca
  282. * spinloops. For non SMP kernels, the secondary cpus never get out
  283. * of the common spinloop.
  284. * This is useless but harmless on iSeries, secondaries are already
  285. * waiting on their paca spinloops. */
  286. ptr = (unsigned long *)((unsigned long)&__secondary_hold_spinloop
  287. - PHYSICAL_START);
  288. *ptr = 1;
  289. mb();
  290. DBG(" <- smp_release_cpus()\n");
  291. }
  292. #else
  293. #define smp_release_cpus()
  294. #endif /* CONFIG_SMP || CONFIG_KEXEC */
  295. /*
  296. * Initialize some remaining members of the ppc64_caches and systemcfg
  297. * structures
  298. * (at least until we get rid of them completely). This is mostly some
  299. * cache informations about the CPU that will be used by cache flush
  300. * routines and/or provided to userland
  301. */
  302. static void __init initialize_cache_info(void)
  303. {
  304. struct device_node *np;
  305. unsigned long num_cpus = 0;
  306. DBG(" -> initialize_cache_info()\n");
  307. for (np = NULL; (np = of_find_node_by_type(np, "cpu"));) {
  308. num_cpus += 1;
  309. /* We're assuming *all* of the CPUs have the same
  310. * d-cache and i-cache sizes... -Peter
  311. */
  312. if ( num_cpus == 1 ) {
  313. u32 *sizep, *lsizep;
  314. u32 size, lsize;
  315. const char *dc, *ic;
  316. /* Then read cache informations */
  317. if (_machine == PLATFORM_POWERMAC) {
  318. dc = "d-cache-block-size";
  319. ic = "i-cache-block-size";
  320. } else {
  321. dc = "d-cache-line-size";
  322. ic = "i-cache-line-size";
  323. }
  324. size = 0;
  325. lsize = cur_cpu_spec->dcache_bsize;
  326. sizep = (u32 *)get_property(np, "d-cache-size", NULL);
  327. if (sizep != NULL)
  328. size = *sizep;
  329. lsizep = (u32 *) get_property(np, dc, NULL);
  330. if (lsizep != NULL)
  331. lsize = *lsizep;
  332. if (sizep == 0 || lsizep == 0)
  333. DBG("Argh, can't find dcache properties ! "
  334. "sizep: %p, lsizep: %p\n", sizep, lsizep);
  335. ppc64_caches.dsize = size;
  336. ppc64_caches.dline_size = lsize;
  337. ppc64_caches.log_dline_size = __ilog2(lsize);
  338. ppc64_caches.dlines_per_page = PAGE_SIZE / lsize;
  339. size = 0;
  340. lsize = cur_cpu_spec->icache_bsize;
  341. sizep = (u32 *)get_property(np, "i-cache-size", NULL);
  342. if (sizep != NULL)
  343. size = *sizep;
  344. lsizep = (u32 *)get_property(np, ic, NULL);
  345. if (lsizep != NULL)
  346. lsize = *lsizep;
  347. if (sizep == 0 || lsizep == 0)
  348. DBG("Argh, can't find icache properties ! "
  349. "sizep: %p, lsizep: %p\n", sizep, lsizep);
  350. ppc64_caches.isize = size;
  351. ppc64_caches.iline_size = lsize;
  352. ppc64_caches.log_iline_size = __ilog2(lsize);
  353. ppc64_caches.ilines_per_page = PAGE_SIZE / lsize;
  354. }
  355. }
  356. DBG(" <- initialize_cache_info()\n");
  357. }
  358. /*
  359. * Do some initial setup of the system. The parameters are those which
  360. * were passed in from the bootloader.
  361. */
  362. void __init setup_system(void)
  363. {
  364. DBG(" -> setup_system()\n");
  365. /*
  366. * Unflatten the device-tree passed by prom_init or kexec
  367. */
  368. unflatten_device_tree();
  369. #ifdef CONFIG_KEXEC
  370. kexec_setup(); /* requires unflattened device tree. */
  371. #endif
  372. /*
  373. * Fill the ppc64_caches & systemcfg structures with informations
  374. * retrieved from the device-tree. Need to be called before
  375. * finish_device_tree() since the later requires some of the
  376. * informations filled up here to properly parse the interrupt
  377. * tree.
  378. * It also sets up the cache line sizes which allows to call
  379. * routines like flush_icache_range (used by the hash init
  380. * later on).
  381. */
  382. initialize_cache_info();
  383. #ifdef CONFIG_PPC_RTAS
  384. /*
  385. * Initialize RTAS if available
  386. */
  387. rtas_initialize();
  388. #endif /* CONFIG_PPC_RTAS */
  389. /*
  390. * Check if we have an initrd provided via the device-tree
  391. */
  392. check_for_initrd();
  393. /*
  394. * Do some platform specific early initializations, that includes
  395. * setting up the hash table pointers. It also sets up some interrupt-mapping
  396. * related options that will be used by finish_device_tree()
  397. */
  398. ppc_md.init_early();
  399. /*
  400. * We can discover serial ports now since the above did setup the
  401. * hash table management for us, thus ioremap works. We do that early
  402. * so that further code can be debugged
  403. */
  404. find_legacy_serial_ports();
  405. /*
  406. * "Finish" the device-tree, that is do the actual parsing of
  407. * some of the properties like the interrupt map
  408. */
  409. finish_device_tree();
  410. /*
  411. * Initialize xmon
  412. */
  413. #ifdef CONFIG_XMON_DEFAULT
  414. xmon_init(1);
  415. #endif
  416. /*
  417. * Register early console
  418. */
  419. register_early_udbg_console();
  420. /* Save unparsed command line copy for /proc/cmdline */
  421. strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE);
  422. parse_early_param();
  423. check_smt_enabled();
  424. smp_setup_cpu_maps();
  425. /* Release secondary cpus out of their spinloops at 0x60 now that
  426. * we can map physical -> logical CPU ids
  427. */
  428. smp_release_cpus();
  429. printk("Starting Linux PPC64 %s\n", system_utsname.version);
  430. printk("-----------------------------------------------------\n");
  431. printk("ppc64_pft_size = 0x%lx\n", ppc64_pft_size);
  432. printk("ppc64_interrupt_controller = 0x%ld\n",
  433. ppc64_interrupt_controller);
  434. printk("platform = 0x%x\n", _machine);
  435. printk("physicalMemorySize = 0x%lx\n", lmb_phys_mem_size());
  436. printk("ppc64_caches.dcache_line_size = 0x%x\n",
  437. ppc64_caches.dline_size);
  438. printk("ppc64_caches.icache_line_size = 0x%x\n",
  439. ppc64_caches.iline_size);
  440. printk("htab_address = 0x%p\n", htab_address);
  441. printk("htab_hash_mask = 0x%lx\n", htab_hash_mask);
  442. #if PHYSICAL_START > 0
  443. printk("physical_start = 0x%x\n", PHYSICAL_START);
  444. #endif
  445. printk("-----------------------------------------------------\n");
  446. mm_init_ppc64();
  447. DBG(" <- setup_system()\n");
  448. }
  449. static int ppc64_panic_event(struct notifier_block *this,
  450. unsigned long event, void *ptr)
  451. {
  452. ppc_md.panic((char *)ptr); /* May not return */
  453. return NOTIFY_DONE;
  454. }
  455. #ifdef CONFIG_IRQSTACKS
  456. static void __init irqstack_early_init(void)
  457. {
  458. unsigned int i;
  459. /*
  460. * interrupt stacks must be under 256MB, we cannot afford to take
  461. * SLB misses on them.
  462. */
  463. for_each_cpu(i) {
  464. softirq_ctx[i] = (struct thread_info *)
  465. __va(lmb_alloc_base(THREAD_SIZE,
  466. THREAD_SIZE, 0x10000000));
  467. hardirq_ctx[i] = (struct thread_info *)
  468. __va(lmb_alloc_base(THREAD_SIZE,
  469. THREAD_SIZE, 0x10000000));
  470. }
  471. }
  472. #else
  473. #define irqstack_early_init()
  474. #endif
  475. /*
  476. * Stack space used when we detect a bad kernel stack pointer, and
  477. * early in SMP boots before relocation is enabled.
  478. */
  479. static void __init emergency_stack_init(void)
  480. {
  481. unsigned long limit;
  482. unsigned int i;
  483. /*
  484. * Emergency stacks must be under 256MB, we cannot afford to take
  485. * SLB misses on them. The ABI also requires them to be 128-byte
  486. * aligned.
  487. *
  488. * Since we use these as temporary stacks during secondary CPU
  489. * bringup, we need to get at them in real mode. This means they
  490. * must also be within the RMO region.
  491. */
  492. limit = min(0x10000000UL, lmb.rmo_size);
  493. for_each_cpu(i)
  494. paca[i].emergency_sp =
  495. __va(lmb_alloc_base(HW_PAGE_SIZE, 128, limit)) + HW_PAGE_SIZE;
  496. }
  497. /*
  498. * Called into from start_kernel, after lock_kernel has been called.
  499. * Initializes bootmem, which is unsed to manage page allocation until
  500. * mem_init is called.
  501. */
  502. void __init setup_arch(char **cmdline_p)
  503. {
  504. extern void do_init_bootmem(void);
  505. ppc64_boot_msg(0x12, "Setup Arch");
  506. *cmdline_p = cmd_line;
  507. /*
  508. * Set cache line size based on type of cpu as a default.
  509. * Systems with OF can look in the properties on the cpu node(s)
  510. * for a possibly more accurate value.
  511. */
  512. dcache_bsize = ppc64_caches.dline_size;
  513. icache_bsize = ppc64_caches.iline_size;
  514. /* reboot on panic */
  515. panic_timeout = 180;
  516. if (ppc_md.panic)
  517. notifier_chain_register(&panic_notifier_list, &ppc64_panic_block);
  518. init_mm.start_code = PAGE_OFFSET;
  519. init_mm.end_code = (unsigned long) _etext;
  520. init_mm.end_data = (unsigned long) _edata;
  521. init_mm.brk = klimit;
  522. irqstack_early_init();
  523. emergency_stack_init();
  524. stabs_alloc();
  525. /* set up the bootmem stuff with available memory */
  526. do_init_bootmem();
  527. sparse_init();
  528. #ifdef CONFIG_DUMMY_CONSOLE
  529. conswitchp = &dummy_con;
  530. #endif
  531. ppc_md.setup_arch();
  532. /* Use the default idle loop if the platform hasn't provided one. */
  533. if (NULL == ppc_md.idle_loop) {
  534. ppc_md.idle_loop = default_idle;
  535. printk(KERN_INFO "Using default idle loop\n");
  536. }
  537. paging_init();
  538. ppc64_boot_msg(0x15, "Setup Done");
  539. }
  540. /* ToDo: do something useful if ppc_md is not yet setup. */
  541. #define PPC64_LINUX_FUNCTION 0x0f000000
  542. #define PPC64_IPL_MESSAGE 0xc0000000
  543. #define PPC64_TERM_MESSAGE 0xb0000000
  544. static void ppc64_do_msg(unsigned int src, const char *msg)
  545. {
  546. if (ppc_md.progress) {
  547. char buf[128];
  548. sprintf(buf, "%08X\n", src);
  549. ppc_md.progress(buf, 0);
  550. snprintf(buf, 128, "%s", msg);
  551. ppc_md.progress(buf, 0);
  552. }
  553. }
  554. /* Print a boot progress message. */
  555. void ppc64_boot_msg(unsigned int src, const char *msg)
  556. {
  557. ppc64_do_msg(PPC64_LINUX_FUNCTION|PPC64_IPL_MESSAGE|src, msg);
  558. printk("[boot]%04x %s\n", src, msg);
  559. }
  560. /* Print a termination message (print only -- does not stop the kernel) */
  561. void ppc64_terminate_msg(unsigned int src, const char *msg)
  562. {
  563. ppc64_do_msg(PPC64_LINUX_FUNCTION|PPC64_TERM_MESSAGE|src, msg);
  564. printk("[terminate]%04x %s\n", src, msg);
  565. }
  566. int check_legacy_ioport(unsigned long base_port)
  567. {
  568. if (ppc_md.check_legacy_ioport == NULL)
  569. return 0;
  570. return ppc_md.check_legacy_ioport(base_port);
  571. }
  572. EXPORT_SYMBOL(check_legacy_ioport);
  573. void cpu_die(void)
  574. {
  575. if (ppc_md.cpu_die)
  576. ppc_md.cpu_die();
  577. }