setup.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. /*
  2. * Common prep/pmac/chrp boot and setup code.
  3. */
  4. #include <linux/config.h>
  5. #include <linux/module.h>
  6. #include <linux/string.h>
  7. #include <linux/sched.h>
  8. #include <linux/init.h>
  9. #include <linux/kernel.h>
  10. #include <linux/reboot.h>
  11. #include <linux/delay.h>
  12. #include <linux/initrd.h>
  13. #include <linux/ide.h>
  14. #include <linux/tty.h>
  15. #include <linux/bootmem.h>
  16. #include <linux/seq_file.h>
  17. #include <linux/root_dev.h>
  18. #include <linux/cpu.h>
  19. #include <linux/console.h>
  20. #include <asm/residual.h>
  21. #include <asm/io.h>
  22. #include <asm/prom.h>
  23. #include <asm/processor.h>
  24. #include <asm/pgtable.h>
  25. #include <asm/bootinfo.h>
  26. #include <asm/setup.h>
  27. #include <asm/amigappc.h>
  28. #include <asm/smp.h>
  29. #include <asm/elf.h>
  30. #include <asm/cputable.h>
  31. #include <asm/bootx.h>
  32. #include <asm/btext.h>
  33. #include <asm/machdep.h>
  34. #include <asm/uaccess.h>
  35. #include <asm/system.h>
  36. #include <asm/pmac_feature.h>
  37. #include <asm/sections.h>
  38. #include <asm/nvram.h>
  39. #include <asm/xmon.h>
  40. #include <asm/ocp.h>
  41. #define USES_PPC_SYS (defined(CONFIG_85xx) || defined(CONFIG_83xx) || \
  42. defined(CONFIG_MPC10X_BRIDGE) || defined(CONFIG_8260) || \
  43. defined(CONFIG_PPC_MPC52xx))
  44. #if USES_PPC_SYS
  45. #include <asm/ppc_sys.h>
  46. #endif
  47. #if defined CONFIG_KGDB
  48. #include <asm/kgdb.h>
  49. #endif
  50. extern void platform_init(void);
  51. extern void bootx_init(unsigned long r4, unsigned long phys);
  52. extern void ppc6xx_idle(void);
  53. extern void power4_idle(void);
  54. boot_infos_t *boot_infos;
  55. struct ide_machdep_calls ppc_ide_md;
  56. /* Used with the BI_MEMSIZE bootinfo parameter to store the memory
  57. size value reported by the boot loader. */
  58. unsigned long boot_mem_size;
  59. unsigned long ISA_DMA_THRESHOLD;
  60. unsigned int DMA_MODE_READ;
  61. unsigned int DMA_MODE_WRITE;
  62. #ifdef CONFIG_PPC_MULTIPLATFORM
  63. int _machine = 0;
  64. extern void prep_init(void);
  65. extern void pmac_init(void);
  66. extern void chrp_init(void);
  67. dev_t boot_dev;
  68. #endif /* CONFIG_PPC_MULTIPLATFORM */
  69. #ifdef CONFIG_MAGIC_SYSRQ
  70. unsigned long SYSRQ_KEY = 0x54;
  71. #endif /* CONFIG_MAGIC_SYSRQ */
  72. #ifdef CONFIG_VGA_CONSOLE
  73. unsigned long vgacon_remap_base;
  74. #endif
  75. struct machdep_calls ppc_md;
  76. /*
  77. * These are used in binfmt_elf.c to put aux entries on the stack
  78. * for each elf executable being started.
  79. */
  80. int dcache_bsize;
  81. int icache_bsize;
  82. int ucache_bsize;
  83. #if defined(CONFIG_VGA_CONSOLE) || defined(CONFIG_FB_VGA16) || \
  84. defined(CONFIG_FB_VGA16_MODULE) || defined(CONFIG_FB_VESA)
  85. struct screen_info screen_info = {
  86. 0, 25, /* orig-x, orig-y */
  87. 0, /* unused */
  88. 0, /* orig-video-page */
  89. 0, /* orig-video-mode */
  90. 80, /* orig-video-cols */
  91. 0,0,0, /* ega_ax, ega_bx, ega_cx */
  92. 25, /* orig-video-lines */
  93. 1, /* orig-video-isVGA */
  94. 16 /* orig-video-points */
  95. };
  96. #endif /* CONFIG_VGA_CONSOLE || CONFIG_FB_VGA16 || CONFIG_FB_VESA */
  97. void machine_restart(char *cmd)
  98. {
  99. #ifdef CONFIG_NVRAM
  100. nvram_sync();
  101. #endif
  102. ppc_md.restart(cmd);
  103. }
  104. void machine_power_off(void)
  105. {
  106. #ifdef CONFIG_NVRAM
  107. nvram_sync();
  108. #endif
  109. ppc_md.power_off();
  110. }
  111. void machine_halt(void)
  112. {
  113. #ifdef CONFIG_NVRAM
  114. nvram_sync();
  115. #endif
  116. ppc_md.halt();
  117. }
  118. void (*pm_power_off)(void) = machine_power_off;
  119. #ifdef CONFIG_TAU
  120. extern u32 cpu_temp(unsigned long cpu);
  121. extern u32 cpu_temp_both(unsigned long cpu);
  122. #endif /* CONFIG_TAU */
  123. int show_cpuinfo(struct seq_file *m, void *v)
  124. {
  125. int i = (int) v - 1;
  126. int err = 0;
  127. unsigned int pvr;
  128. unsigned short maj, min;
  129. unsigned long lpj;
  130. if (i >= NR_CPUS) {
  131. /* Show summary information */
  132. #ifdef CONFIG_SMP
  133. unsigned long bogosum = 0;
  134. for (i = 0; i < NR_CPUS; ++i)
  135. if (cpu_online(i))
  136. bogosum += cpu_data[i].loops_per_jiffy;
  137. seq_printf(m, "total bogomips\t: %lu.%02lu\n",
  138. bogosum/(500000/HZ), bogosum/(5000/HZ) % 100);
  139. #endif /* CONFIG_SMP */
  140. if (ppc_md.show_cpuinfo != NULL)
  141. err = ppc_md.show_cpuinfo(m);
  142. return err;
  143. }
  144. #ifdef CONFIG_SMP
  145. if (!cpu_online(i))
  146. return 0;
  147. pvr = cpu_data[i].pvr;
  148. lpj = cpu_data[i].loops_per_jiffy;
  149. #else
  150. pvr = mfspr(SPRN_PVR);
  151. lpj = loops_per_jiffy;
  152. #endif
  153. seq_printf(m, "processor\t: %d\n", i);
  154. seq_printf(m, "cpu\t\t: ");
  155. if (cur_cpu_spec->pvr_mask)
  156. seq_printf(m, "%s", cur_cpu_spec->cpu_name);
  157. else
  158. seq_printf(m, "unknown (%08x)", pvr);
  159. #ifdef CONFIG_ALTIVEC
  160. if (cur_cpu_spec->cpu_features & CPU_FTR_ALTIVEC)
  161. seq_printf(m, ", altivec supported");
  162. #endif
  163. seq_printf(m, "\n");
  164. #ifdef CONFIG_TAU
  165. if (cur_cpu_spec->cpu_features & CPU_FTR_TAU) {
  166. #ifdef CONFIG_TAU_AVERAGE
  167. /* more straightforward, but potentially misleading */
  168. seq_printf(m, "temperature \t: %u C (uncalibrated)\n",
  169. cpu_temp(i));
  170. #else
  171. /* show the actual temp sensor range */
  172. u32 temp;
  173. temp = cpu_temp_both(i);
  174. seq_printf(m, "temperature \t: %u-%u C (uncalibrated)\n",
  175. temp & 0xff, temp >> 16);
  176. #endif
  177. }
  178. #endif /* CONFIG_TAU */
  179. if (ppc_md.show_percpuinfo != NULL) {
  180. err = ppc_md.show_percpuinfo(m, i);
  181. if (err)
  182. return err;
  183. }
  184. /* If we are a Freescale core do a simple check so
  185. * we dont have to keep adding cases in the future */
  186. if ((PVR_VER(pvr) & 0x8000) == 0x8000) {
  187. maj = PVR_MAJ(pvr);
  188. min = PVR_MIN(pvr);
  189. } else {
  190. switch (PVR_VER(pvr)) {
  191. case 0x0020: /* 403 family */
  192. maj = PVR_MAJ(pvr) + 1;
  193. min = PVR_MIN(pvr);
  194. break;
  195. case 0x1008: /* 740P/750P ?? */
  196. maj = ((pvr >> 8) & 0xFF) - 1;
  197. min = pvr & 0xFF;
  198. break;
  199. default:
  200. maj = (pvr >> 8) & 0xFF;
  201. min = pvr & 0xFF;
  202. break;
  203. }
  204. }
  205. seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n",
  206. maj, min, PVR_VER(pvr), PVR_REV(pvr));
  207. seq_printf(m, "bogomips\t: %lu.%02lu\n",
  208. lpj / (500000/HZ), (lpj / (5000/HZ)) % 100);
  209. #if USES_PPC_SYS
  210. if (cur_ppc_sys_spec->ppc_sys_name)
  211. seq_printf(m, "chipset\t\t: %s\n",
  212. cur_ppc_sys_spec->ppc_sys_name);
  213. #endif
  214. #ifdef CONFIG_SMP
  215. seq_printf(m, "\n");
  216. #endif
  217. return 0;
  218. }
  219. static void *c_start(struct seq_file *m, loff_t *pos)
  220. {
  221. int i = *pos;
  222. return i <= NR_CPUS? (void *) (i + 1): NULL;
  223. }
  224. static void *c_next(struct seq_file *m, void *v, loff_t *pos)
  225. {
  226. ++*pos;
  227. return c_start(m, pos);
  228. }
  229. static void c_stop(struct seq_file *m, void *v)
  230. {
  231. }
  232. struct seq_operations cpuinfo_op = {
  233. .start =c_start,
  234. .next = c_next,
  235. .stop = c_stop,
  236. .show = show_cpuinfo,
  237. };
  238. /*
  239. * We're called here very early in the boot. We determine the machine
  240. * type and call the appropriate low-level setup functions.
  241. * -- Cort <cort@fsmlabs.com>
  242. *
  243. * Note that the kernel may be running at an address which is different
  244. * from the address that it was linked at, so we must use RELOC/PTRRELOC
  245. * to access static data (including strings). -- paulus
  246. */
  247. unsigned long __init early_init(unsigned long dt_ptr)
  248. {
  249. unsigned long offset = reloc_offset();
  250. reloc_got2(offset);
  251. /*
  252. * Identify the CPU type and fix up code sections
  253. * that depend on which cpu we have.
  254. */
  255. identify_cpu(offset, 0);
  256. do_cpu_ftr_fixups(offset);
  257. #ifdef CONFIG_BOOTX_TEXT
  258. btext_prepare_BAT();
  259. #endif
  260. reloc_got2(-offset);
  261. return KERNELBASE + offset;
  262. }
  263. #ifdef CONFIG_PPC_OF
  264. /*
  265. * Assume here that all clock rates are the same in a
  266. * smp system. -- Cort
  267. */
  268. int
  269. of_show_percpuinfo(struct seq_file *m, int i)
  270. {
  271. struct device_node *cpu_node;
  272. u32 *fp;
  273. int s;
  274. cpu_node = find_type_devices("cpu");
  275. if (!cpu_node)
  276. return 0;
  277. for (s = 0; s < i && cpu_node->next; s++)
  278. cpu_node = cpu_node->next;
  279. fp = (u32 *)get_property(cpu_node, "clock-frequency", NULL);
  280. if (fp)
  281. seq_printf(m, "clock\t\t: %dMHz\n", *fp / 1000000);
  282. return 0;
  283. }
  284. void __init
  285. intuit_machine_type(void)
  286. {
  287. char *model;
  288. struct device_node *root;
  289. /* ask the OF info if we're a chrp or pmac */
  290. root = find_path_device("/");
  291. if (root != 0) {
  292. /* assume pmac unless proven to be chrp -- Cort */
  293. _machine = _MACH_Pmac;
  294. model = get_property(root, "device_type", NULL);
  295. if (model && !strncmp("chrp", model, 4))
  296. _machine = _MACH_chrp;
  297. else {
  298. model = get_property(root, "model", NULL);
  299. if (model && !strncmp(model, "IBM", 3))
  300. _machine = _MACH_chrp;
  301. }
  302. }
  303. }
  304. #endif
  305. #ifdef CONFIG_PPC_MULTIPLATFORM
  306. /*
  307. * The PPC_MULTIPLATFORM version of platform_init...
  308. */
  309. void __init platform_init(void)
  310. {
  311. /* if we didn't get any bootinfo telling us what we are... */
  312. if (_machine == 0) {
  313. /* prep boot loader tells us if we're prep or not */
  314. if ( *(unsigned long *)(KERNELBASE) == (0xdeadc0de) )
  315. _machine = _MACH_prep;
  316. }
  317. #ifdef CONFIG_PPC_PREP
  318. /* not much more to do here, if prep */
  319. if (_machine == _MACH_prep) {
  320. prep_init();
  321. return;
  322. }
  323. #endif
  324. #ifdef CONFIG_ADB
  325. if (strstr(cmd_line, "adb_sync")) {
  326. extern int __adb_probe_sync;
  327. __adb_probe_sync = 1;
  328. }
  329. #endif /* CONFIG_ADB */
  330. switch (_machine) {
  331. #ifdef CONFIG_PPC_PMAC
  332. case _MACH_Pmac:
  333. pmac_init();
  334. break;
  335. #endif
  336. #ifdef CONFIG_PPC_CHRP
  337. case _MACH_chrp:
  338. chrp_init();
  339. break;
  340. #endif
  341. }
  342. }
  343. #ifdef CONFIG_SERIAL_CORE_CONSOLE
  344. extern char *of_stdout_device;
  345. static int __init set_preferred_console(void)
  346. {
  347. struct device_node *prom_stdout;
  348. char *name;
  349. int offset = 0;
  350. if (of_stdout_device == NULL)
  351. return -ENODEV;
  352. /* The user has requested a console so this is already set up. */
  353. if (strstr(saved_command_line, "console="))
  354. return -EBUSY;
  355. prom_stdout = find_path_device(of_stdout_device);
  356. if (!prom_stdout)
  357. return -ENODEV;
  358. name = (char *)get_property(prom_stdout, "name", NULL);
  359. if (!name)
  360. return -ENODEV;
  361. if (strcmp(name, "serial") == 0) {
  362. int i;
  363. u32 *reg = (u32 *)get_property(prom_stdout, "reg", &i);
  364. if (i > 8) {
  365. switch (reg[1]) {
  366. case 0x3f8:
  367. offset = 0;
  368. break;
  369. case 0x2f8:
  370. offset = 1;
  371. break;
  372. case 0x898:
  373. offset = 2;
  374. break;
  375. case 0x890:
  376. offset = 3;
  377. break;
  378. default:
  379. /* We dont recognise the serial port */
  380. return -ENODEV;
  381. }
  382. }
  383. } else if (strcmp(name, "ch-a") == 0)
  384. offset = 0;
  385. else if (strcmp(name, "ch-b") == 0)
  386. offset = 1;
  387. else
  388. return -ENODEV;
  389. return add_preferred_console("ttyS", offset, NULL);
  390. }
  391. console_initcall(set_preferred_console);
  392. #endif /* CONFIG_SERIAL_CORE_CONSOLE */
  393. #endif /* CONFIG_PPC_MULTIPLATFORM */
  394. struct bi_record *find_bootinfo(void)
  395. {
  396. struct bi_record *rec;
  397. rec = (struct bi_record *)_ALIGN((ulong)__bss_start+(1<<20)-1,(1<<20));
  398. if ( rec->tag != BI_FIRST ) {
  399. /*
  400. * This 0x10000 offset is a terrible hack but it will go away when
  401. * we have the bootloader handle all the relocation and
  402. * prom calls -- Cort
  403. */
  404. rec = (struct bi_record *)_ALIGN((ulong)__bss_start+0x10000+(1<<20)-1,(1<<20));
  405. if ( rec->tag != BI_FIRST )
  406. return NULL;
  407. }
  408. return rec;
  409. }
  410. /*
  411. * Find out what kind of machine we're on and save any data we need
  412. * from the early boot process (devtree is copied on pmac by prom_init()).
  413. * This is called very early on the boot process, after a minimal
  414. * MMU environment has been set up but before MMU_init is called.
  415. */
  416. void __init machine_init(unsigned long dt_ptr, unsigned long phys)
  417. {
  418. early_init_devtree(__va(dt_ptr));
  419. #ifdef CONFIG_CMDLINE
  420. strlcpy(cmd_line, CONFIG_CMDLINE, sizeof(cmd_line));
  421. #endif /* CONFIG_CMDLINE */
  422. #ifdef CONFIG_6xx
  423. ppc_md.power_save = ppc6xx_idle;
  424. #endif
  425. #ifdef CONFIG_POWER4
  426. ppc_md.power_save = power4_idle;
  427. #endif
  428. platform_init();
  429. if (ppc_md.progress)
  430. ppc_md.progress("id mach(): done", 0x200);
  431. }
  432. #ifdef CONFIG_BOOKE_WDT
  433. /* Checks wdt=x and wdt_period=xx command-line option */
  434. int __init early_parse_wdt(char *p)
  435. {
  436. if (p && strncmp(p, "0", 1) != 0)
  437. booke_wdt_enabled = 1;
  438. return 0;
  439. }
  440. early_param("wdt", early_parse_wdt);
  441. int __init early_parse_wdt_period (char *p)
  442. {
  443. if (p)
  444. booke_wdt_period = simple_strtoul(p, NULL, 0);
  445. return 0;
  446. }
  447. early_param("wdt_period", early_parse_wdt_period);
  448. #endif /* CONFIG_BOOKE_WDT */
  449. /* Checks "l2cr=xxxx" command-line option */
  450. int __init ppc_setup_l2cr(char *str)
  451. {
  452. if (cpu_has_feature(CPU_FTR_L2CR)) {
  453. unsigned long val = simple_strtoul(str, NULL, 0);
  454. printk(KERN_INFO "l2cr set to %lx\n", val);
  455. _set_L2CR(0); /* force invalidate by disable cache */
  456. _set_L2CR(val); /* and enable it */
  457. }
  458. return 1;
  459. }
  460. __setup("l2cr=", ppc_setup_l2cr);
  461. #ifdef CONFIG_GENERIC_NVRAM
  462. /* Generic nvram hooks used by drivers/char/gen_nvram.c */
  463. unsigned char nvram_read_byte(int addr)
  464. {
  465. if (ppc_md.nvram_read_val)
  466. return ppc_md.nvram_read_val(addr);
  467. return 0xff;
  468. }
  469. EXPORT_SYMBOL(nvram_read_byte);
  470. void nvram_write_byte(unsigned char val, int addr)
  471. {
  472. if (ppc_md.nvram_write_val)
  473. ppc_md.nvram_write_val(addr, val);
  474. }
  475. EXPORT_SYMBOL(nvram_write_byte);
  476. void nvram_sync(void)
  477. {
  478. if (ppc_md.nvram_sync)
  479. ppc_md.nvram_sync();
  480. }
  481. EXPORT_SYMBOL(nvram_sync);
  482. #endif /* CONFIG_NVRAM */
  483. static struct cpu cpu_devices[NR_CPUS];
  484. int __init ppc_init(void)
  485. {
  486. int i;
  487. /* clear the progress line */
  488. if ( ppc_md.progress ) ppc_md.progress(" ", 0xffff);
  489. /* register CPU devices */
  490. for (i = 0; i < NR_CPUS; i++)
  491. if (cpu_possible(i))
  492. register_cpu(&cpu_devices[i], i, NULL);
  493. /* call platform init */
  494. if (ppc_md.init != NULL) {
  495. ppc_md.init();
  496. }
  497. return 0;
  498. }
  499. arch_initcall(ppc_init);
  500. /* Warning, IO base is not yet inited */
  501. void __init setup_arch(char **cmdline_p)
  502. {
  503. extern char *klimit;
  504. extern void do_init_bootmem(void);
  505. /* so udelay does something sensible, assume <= 1000 bogomips */
  506. loops_per_jiffy = 500000000 / HZ;
  507. #ifdef CONFIG_BOOTX_TEXT
  508. map_boot_text();
  509. #endif
  510. unflatten_device_tree();
  511. finish_device_tree();
  512. #ifdef CONFIG_PPC_MULTIPLATFORM
  513. /* This could be called "early setup arch", it must be done
  514. * now because xmon need it
  515. */
  516. if (_machine == _MACH_Pmac)
  517. pmac_feature_init(); /* New cool way */
  518. #endif
  519. #ifdef CONFIG_XMON
  520. xmon_map_scc();
  521. if (strstr(cmd_line, "xmon"))
  522. xmon(NULL);
  523. #endif /* CONFIG_XMON */
  524. if ( ppc_md.progress ) ppc_md.progress("setup_arch: enter", 0x3eab);
  525. #if defined(CONFIG_KGDB)
  526. if (ppc_md.kgdb_map_scc)
  527. ppc_md.kgdb_map_scc();
  528. set_debug_traps();
  529. if (strstr(cmd_line, "gdb")) {
  530. if (ppc_md.progress)
  531. ppc_md.progress("setup_arch: kgdb breakpoint", 0x4000);
  532. printk("kgdb breakpoint activated\n");
  533. breakpoint();
  534. }
  535. #endif
  536. /*
  537. * Set cache line size based on type of cpu as a default.
  538. * Systems with OF can look in the properties on the cpu node(s)
  539. * for a possibly more accurate value.
  540. */
  541. if (cpu_has_feature(CPU_FTR_SPLIT_ID_CACHE)) {
  542. dcache_bsize = cur_cpu_spec->dcache_bsize;
  543. icache_bsize = cur_cpu_spec->icache_bsize;
  544. ucache_bsize = 0;
  545. } else
  546. ucache_bsize = dcache_bsize = icache_bsize
  547. = cur_cpu_spec->dcache_bsize;
  548. /* reboot on panic */
  549. panic_timeout = 180;
  550. init_mm.start_code = PAGE_OFFSET;
  551. init_mm.end_code = (unsigned long) _etext;
  552. init_mm.end_data = (unsigned long) _edata;
  553. init_mm.brk = (unsigned long) klimit;
  554. /* Save unparsed command line copy for /proc/cmdline */
  555. strlcpy(saved_command_line, cmd_line, COMMAND_LINE_SIZE);
  556. *cmdline_p = cmd_line;
  557. parse_early_param();
  558. /* set up the bootmem stuff with available memory */
  559. do_init_bootmem();
  560. if ( ppc_md.progress ) ppc_md.progress("setup_arch: bootmem", 0x3eab);
  561. #ifdef CONFIG_PPC_OCP
  562. /* Initialize OCP device list */
  563. ocp_early_init();
  564. if ( ppc_md.progress ) ppc_md.progress("ocp: exit", 0x3eab);
  565. #endif
  566. #ifdef CONFIG_DUMMY_CONSOLE
  567. conswitchp = &dummy_con;
  568. #endif
  569. ppc_md.setup_arch();
  570. if ( ppc_md.progress ) ppc_md.progress("arch: exit", 0x3eab);
  571. paging_init();
  572. /* this is for modules since _machine can be a define -- Cort */
  573. ppc_md.ppc_machine = _machine;
  574. }