cpu-probe.c 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597
  1. /*
  2. * Processor capabilities determination functions.
  3. *
  4. * Copyright (C) xxxx the Anonymous
  5. * Copyright (C) 2003 Maciej W. Rozycki
  6. * Copyright (C) 1994 - 2003 Ralf Baechle
  7. * Copyright (C) 2001 MIPS Inc.
  8. *
  9. * This program is free software; you can redistribute it and/or
  10. * modify it under the terms of the GNU General Public License
  11. * as published by the Free Software Foundation; either version
  12. * 2 of the License, or (at your option) any later version.
  13. */
  14. #include <linux/config.h>
  15. #include <linux/init.h>
  16. #include <linux/kernel.h>
  17. #include <linux/ptrace.h>
  18. #include <linux/stddef.h>
  19. #include <asm/bugs.h>
  20. #include <asm/cpu.h>
  21. #include <asm/fpu.h>
  22. #include <asm/mipsregs.h>
  23. #include <asm/system.h>
  24. /*
  25. * Not all of the MIPS CPUs have the "wait" instruction available. Moreover,
  26. * the implementation of the "wait" feature differs between CPU families. This
  27. * points to the function that implements CPU specific wait.
  28. * The wait instruction stops the pipeline and reduces the power consumption of
  29. * the CPU very much.
  30. */
  31. void (*cpu_wait)(void) = NULL;
  32. static void r3081_wait(void)
  33. {
  34. unsigned long cfg = read_c0_conf();
  35. write_c0_conf(cfg | R30XX_CONF_HALT);
  36. }
  37. static void r39xx_wait(void)
  38. {
  39. unsigned long cfg = read_c0_conf();
  40. write_c0_conf(cfg | TX39_CONF_HALT);
  41. }
  42. static void r4k_wait(void)
  43. {
  44. __asm__(".set\tmips3\n\t"
  45. "wait\n\t"
  46. ".set\tmips0");
  47. }
  48. /*
  49. * The Au1xxx wait is available only if we run CONFIG_PM and
  50. * the timer setup found we had a 32KHz counter available.
  51. * There are still problems with functions that may call au1k_wait
  52. * directly, but that will be discovered pretty quickly.
  53. */
  54. extern void (*au1k_wait_ptr)(void);
  55. void au1k_wait(void)
  56. {
  57. #ifdef CONFIG_PM
  58. /* using the wait instruction makes CP0 counter unusable */
  59. __asm__(".set\tmips3\n\t"
  60. "wait\n\t"
  61. "nop\n\t"
  62. "nop\n\t"
  63. "nop\n\t"
  64. "nop\n\t"
  65. ".set\tmips0");
  66. #else
  67. __asm__("nop\n\t"
  68. "nop");
  69. #endif
  70. }
  71. static inline void check_wait(void)
  72. {
  73. struct cpuinfo_mips *c = &current_cpu_data;
  74. printk("Checking for 'wait' instruction... ");
  75. switch (c->cputype) {
  76. case CPU_R3081:
  77. case CPU_R3081E:
  78. cpu_wait = r3081_wait;
  79. printk(" available.\n");
  80. break;
  81. case CPU_TX3927:
  82. cpu_wait = r39xx_wait;
  83. printk(" available.\n");
  84. break;
  85. case CPU_R4200:
  86. /* case CPU_R4300: */
  87. case CPU_R4600:
  88. case CPU_R4640:
  89. case CPU_R4650:
  90. case CPU_R4700:
  91. case CPU_R5000:
  92. case CPU_NEVADA:
  93. case CPU_RM7000:
  94. case CPU_RM9000:
  95. case CPU_TX49XX:
  96. case CPU_4KC:
  97. case CPU_4KEC:
  98. case CPU_4KSC:
  99. case CPU_5KC:
  100. /* case CPU_20KC:*/
  101. case CPU_24K:
  102. case CPU_25KF:
  103. cpu_wait = r4k_wait;
  104. printk(" available.\n");
  105. break;
  106. #ifdef CONFIG_PM
  107. case CPU_AU1000:
  108. case CPU_AU1100:
  109. case CPU_AU1500:
  110. case CPU_AU1550:
  111. case CPU_AU1200:
  112. if (au1k_wait_ptr != NULL) {
  113. cpu_wait = au1k_wait_ptr;
  114. printk(" available.\n");
  115. }
  116. else {
  117. printk(" unavailable.\n");
  118. }
  119. break;
  120. #endif
  121. default:
  122. printk(" unavailable.\n");
  123. break;
  124. }
  125. }
  126. void __init check_bugs32(void)
  127. {
  128. check_wait();
  129. }
  130. /*
  131. * Probe whether cpu has config register by trying to play with
  132. * alternate cache bit and see whether it matters.
  133. * It's used by cpu_probe to distinguish between R3000A and R3081.
  134. */
  135. static inline int cpu_has_confreg(void)
  136. {
  137. #ifdef CONFIG_CPU_R3000
  138. extern unsigned long r3k_cache_size(unsigned long);
  139. unsigned long size1, size2;
  140. unsigned long cfg = read_c0_conf();
  141. size1 = r3k_cache_size(ST0_ISC);
  142. write_c0_conf(cfg ^ R30XX_CONF_AC);
  143. size2 = r3k_cache_size(ST0_ISC);
  144. write_c0_conf(cfg);
  145. return size1 != size2;
  146. #else
  147. return 0;
  148. #endif
  149. }
  150. /*
  151. * Get the FPU Implementation/Revision.
  152. */
  153. static inline unsigned long cpu_get_fpu_id(void)
  154. {
  155. unsigned long tmp, fpu_id;
  156. tmp = read_c0_status();
  157. __enable_fpu();
  158. fpu_id = read_32bit_cp1_register(CP1_REVISION);
  159. write_c0_status(tmp);
  160. return fpu_id;
  161. }
  162. /*
  163. * Check the CPU has an FPU the official way.
  164. */
  165. static inline int __cpu_has_fpu(void)
  166. {
  167. return ((cpu_get_fpu_id() & 0xff00) != FPIR_IMP_NONE);
  168. }
  169. #define R4K_OPTS (MIPS_CPU_TLB | MIPS_CPU_4KEX | MIPS_CPU_4KTLB \
  170. | MIPS_CPU_COUNTER)
  171. static inline void cpu_probe_legacy(struct cpuinfo_mips *c)
  172. {
  173. switch (c->processor_id & 0xff00) {
  174. case PRID_IMP_R2000:
  175. c->cputype = CPU_R2000;
  176. c->isa_level = MIPS_CPU_ISA_I;
  177. c->options = MIPS_CPU_TLB | MIPS_CPU_NOFPUEX;
  178. if (__cpu_has_fpu())
  179. c->options |= MIPS_CPU_FPU;
  180. c->tlbsize = 64;
  181. break;
  182. case PRID_IMP_R3000:
  183. if ((c->processor_id & 0xff) == PRID_REV_R3000A)
  184. if (cpu_has_confreg())
  185. c->cputype = CPU_R3081E;
  186. else
  187. c->cputype = CPU_R3000A;
  188. else
  189. c->cputype = CPU_R3000;
  190. c->isa_level = MIPS_CPU_ISA_I;
  191. c->options = MIPS_CPU_TLB | MIPS_CPU_NOFPUEX;
  192. if (__cpu_has_fpu())
  193. c->options |= MIPS_CPU_FPU;
  194. c->tlbsize = 64;
  195. break;
  196. case PRID_IMP_R4000:
  197. if (read_c0_config() & CONF_SC) {
  198. if ((c->processor_id & 0xff) >= PRID_REV_R4400)
  199. c->cputype = CPU_R4400PC;
  200. else
  201. c->cputype = CPU_R4000PC;
  202. } else {
  203. if ((c->processor_id & 0xff) >= PRID_REV_R4400)
  204. c->cputype = CPU_R4400SC;
  205. else
  206. c->cputype = CPU_R4000SC;
  207. }
  208. c->isa_level = MIPS_CPU_ISA_III;
  209. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  210. MIPS_CPU_WATCH | MIPS_CPU_VCE |
  211. MIPS_CPU_LLSC;
  212. c->tlbsize = 48;
  213. break;
  214. case PRID_IMP_VR41XX:
  215. switch (c->processor_id & 0xf0) {
  216. case PRID_REV_VR4111:
  217. c->cputype = CPU_VR4111;
  218. break;
  219. case PRID_REV_VR4121:
  220. c->cputype = CPU_VR4121;
  221. break;
  222. case PRID_REV_VR4122:
  223. if ((c->processor_id & 0xf) < 0x3)
  224. c->cputype = CPU_VR4122;
  225. else
  226. c->cputype = CPU_VR4181A;
  227. break;
  228. case PRID_REV_VR4130:
  229. if ((c->processor_id & 0xf) < 0x4)
  230. c->cputype = CPU_VR4131;
  231. else
  232. c->cputype = CPU_VR4133;
  233. break;
  234. default:
  235. printk(KERN_INFO "Unexpected CPU of NEC VR4100 series\n");
  236. c->cputype = CPU_VR41XX;
  237. break;
  238. }
  239. c->isa_level = MIPS_CPU_ISA_III;
  240. c->options = R4K_OPTS;
  241. c->tlbsize = 32;
  242. break;
  243. case PRID_IMP_R4300:
  244. c->cputype = CPU_R4300;
  245. c->isa_level = MIPS_CPU_ISA_III;
  246. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  247. MIPS_CPU_LLSC;
  248. c->tlbsize = 32;
  249. break;
  250. case PRID_IMP_R4600:
  251. c->cputype = CPU_R4600;
  252. c->isa_level = MIPS_CPU_ISA_III;
  253. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_LLSC;
  254. c->tlbsize = 48;
  255. break;
  256. #if 0
  257. case PRID_IMP_R4650:
  258. /*
  259. * This processor doesn't have an MMU, so it's not
  260. * "real easy" to run Linux on it. It is left purely
  261. * for documentation. Commented out because it shares
  262. * it's c0_prid id number with the TX3900.
  263. */
  264. c->cputype = CPU_R4650;
  265. c->isa_level = MIPS_CPU_ISA_III;
  266. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_LLSC;
  267. c->tlbsize = 48;
  268. break;
  269. #endif
  270. case PRID_IMP_TX39:
  271. c->isa_level = MIPS_CPU_ISA_I;
  272. c->options = MIPS_CPU_TLB;
  273. if ((c->processor_id & 0xf0) == (PRID_REV_TX3927 & 0xf0)) {
  274. c->cputype = CPU_TX3927;
  275. c->tlbsize = 64;
  276. } else {
  277. switch (c->processor_id & 0xff) {
  278. case PRID_REV_TX3912:
  279. c->cputype = CPU_TX3912;
  280. c->tlbsize = 32;
  281. break;
  282. case PRID_REV_TX3922:
  283. c->cputype = CPU_TX3922;
  284. c->tlbsize = 64;
  285. break;
  286. default:
  287. c->cputype = CPU_UNKNOWN;
  288. break;
  289. }
  290. }
  291. break;
  292. case PRID_IMP_R4700:
  293. c->cputype = CPU_R4700;
  294. c->isa_level = MIPS_CPU_ISA_III;
  295. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  296. MIPS_CPU_LLSC;
  297. c->tlbsize = 48;
  298. break;
  299. case PRID_IMP_TX49:
  300. c->cputype = CPU_TX49XX;
  301. c->isa_level = MIPS_CPU_ISA_III;
  302. c->options = R4K_OPTS | MIPS_CPU_LLSC;
  303. if (!(c->processor_id & 0x08))
  304. c->options |= MIPS_CPU_FPU | MIPS_CPU_32FPR;
  305. c->tlbsize = 48;
  306. break;
  307. case PRID_IMP_R5000:
  308. c->cputype = CPU_R5000;
  309. c->isa_level = MIPS_CPU_ISA_IV;
  310. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  311. MIPS_CPU_LLSC;
  312. c->tlbsize = 48;
  313. break;
  314. case PRID_IMP_R5432:
  315. c->cputype = CPU_R5432;
  316. c->isa_level = MIPS_CPU_ISA_IV;
  317. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  318. MIPS_CPU_WATCH | MIPS_CPU_LLSC;
  319. c->tlbsize = 48;
  320. break;
  321. case PRID_IMP_R5500:
  322. c->cputype = CPU_R5500;
  323. c->isa_level = MIPS_CPU_ISA_IV;
  324. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  325. MIPS_CPU_WATCH | MIPS_CPU_LLSC;
  326. c->tlbsize = 48;
  327. break;
  328. case PRID_IMP_NEVADA:
  329. c->cputype = CPU_NEVADA;
  330. c->isa_level = MIPS_CPU_ISA_IV;
  331. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  332. MIPS_CPU_DIVEC | MIPS_CPU_LLSC;
  333. c->tlbsize = 48;
  334. break;
  335. case PRID_IMP_R6000:
  336. c->cputype = CPU_R6000;
  337. c->isa_level = MIPS_CPU_ISA_II;
  338. c->options = MIPS_CPU_TLB | MIPS_CPU_FPU |
  339. MIPS_CPU_LLSC;
  340. c->tlbsize = 32;
  341. break;
  342. case PRID_IMP_R6000A:
  343. c->cputype = CPU_R6000A;
  344. c->isa_level = MIPS_CPU_ISA_II;
  345. c->options = MIPS_CPU_TLB | MIPS_CPU_FPU |
  346. MIPS_CPU_LLSC;
  347. c->tlbsize = 32;
  348. break;
  349. case PRID_IMP_RM7000:
  350. c->cputype = CPU_RM7000;
  351. c->isa_level = MIPS_CPU_ISA_IV;
  352. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  353. MIPS_CPU_LLSC;
  354. /*
  355. * Undocumented RM7000: Bit 29 in the info register of
  356. * the RM7000 v2.0 indicates if the TLB has 48 or 64
  357. * entries.
  358. *
  359. * 29 1 => 64 entry JTLB
  360. * 0 => 48 entry JTLB
  361. */
  362. c->tlbsize = (read_c0_info() & (1 << 29)) ? 64 : 48;
  363. break;
  364. case PRID_IMP_RM9000:
  365. c->cputype = CPU_RM9000;
  366. c->isa_level = MIPS_CPU_ISA_IV;
  367. c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
  368. MIPS_CPU_LLSC;
  369. /*
  370. * Bit 29 in the info register of the RM9000
  371. * indicates if the TLB has 48 or 64 entries.
  372. *
  373. * 29 1 => 64 entry JTLB
  374. * 0 => 48 entry JTLB
  375. */
  376. c->tlbsize = (read_c0_info() & (1 << 29)) ? 64 : 48;
  377. break;
  378. case PRID_IMP_R8000:
  379. c->cputype = CPU_R8000;
  380. c->isa_level = MIPS_CPU_ISA_IV;
  381. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  382. MIPS_CPU_FPU | MIPS_CPU_32FPR |
  383. MIPS_CPU_LLSC;
  384. c->tlbsize = 384; /* has weird TLB: 3-way x 128 */
  385. break;
  386. case PRID_IMP_R10000:
  387. c->cputype = CPU_R10000;
  388. c->isa_level = MIPS_CPU_ISA_IV;
  389. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  390. MIPS_CPU_FPU | MIPS_CPU_32FPR |
  391. MIPS_CPU_COUNTER | MIPS_CPU_WATCH |
  392. MIPS_CPU_LLSC;
  393. c->tlbsize = 64;
  394. break;
  395. case PRID_IMP_R12000:
  396. c->cputype = CPU_R12000;
  397. c->isa_level = MIPS_CPU_ISA_IV;
  398. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  399. MIPS_CPU_FPU | MIPS_CPU_32FPR |
  400. MIPS_CPU_COUNTER | MIPS_CPU_WATCH |
  401. MIPS_CPU_LLSC;
  402. c->tlbsize = 64;
  403. break;
  404. }
  405. }
  406. static inline void decode_config1(struct cpuinfo_mips *c)
  407. {
  408. unsigned long config0 = read_c0_config();
  409. unsigned long config1;
  410. if ((config0 & (1 << 31)) == 0)
  411. return; /* actually wort a panic() */
  412. /* MIPS32 or MIPS64 compliant CPU. Read Config 1 register. */
  413. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  414. MIPS_CPU_4KTLB | MIPS_CPU_COUNTER | MIPS_CPU_DIVEC |
  415. MIPS_CPU_LLSC | MIPS_CPU_MCHECK;
  416. config1 = read_c0_config1();
  417. if (config1 & (1 << 3))
  418. c->options |= MIPS_CPU_WATCH;
  419. if (config1 & (1 << 2))
  420. c->options |= MIPS_CPU_MIPS16;
  421. if (config1 & (1 << 1))
  422. c->options |= MIPS_CPU_EJTAG;
  423. if (config1 & 1) {
  424. c->options |= MIPS_CPU_FPU;
  425. c->options |= MIPS_CPU_32FPR;
  426. }
  427. c->scache.flags = MIPS_CACHE_NOT_PRESENT;
  428. c->tlbsize = ((config1 >> 25) & 0x3f) + 1;
  429. }
  430. static inline void cpu_probe_mips(struct cpuinfo_mips *c)
  431. {
  432. decode_config1(c);
  433. switch (c->processor_id & 0xff00) {
  434. case PRID_IMP_4KC:
  435. c->cputype = CPU_4KC;
  436. c->isa_level = MIPS_CPU_ISA_M32;
  437. break;
  438. case PRID_IMP_4KEC:
  439. c->cputype = CPU_4KEC;
  440. c->isa_level = MIPS_CPU_ISA_M32;
  441. break;
  442. case PRID_IMP_4KSC:
  443. c->cputype = CPU_4KSC;
  444. c->isa_level = MIPS_CPU_ISA_M32;
  445. break;
  446. case PRID_IMP_5KC:
  447. c->cputype = CPU_5KC;
  448. c->isa_level = MIPS_CPU_ISA_M64;
  449. break;
  450. case PRID_IMP_20KC:
  451. c->cputype = CPU_20KC;
  452. c->isa_level = MIPS_CPU_ISA_M64;
  453. break;
  454. case PRID_IMP_24K:
  455. c->cputype = CPU_24K;
  456. c->isa_level = MIPS_CPU_ISA_M32;
  457. break;
  458. case PRID_IMP_25KF:
  459. c->cputype = CPU_25KF;
  460. c->isa_level = MIPS_CPU_ISA_M64;
  461. /* Probe for L2 cache */
  462. c->scache.flags &= ~MIPS_CACHE_NOT_PRESENT;
  463. break;
  464. }
  465. }
  466. static inline void cpu_probe_alchemy(struct cpuinfo_mips *c)
  467. {
  468. decode_config1(c);
  469. switch (c->processor_id & 0xff00) {
  470. case PRID_IMP_AU1_REV1:
  471. case PRID_IMP_AU1_REV2:
  472. switch ((c->processor_id >> 24) & 0xff) {
  473. case 0:
  474. c->cputype = CPU_AU1000;
  475. break;
  476. case 1:
  477. c->cputype = CPU_AU1500;
  478. break;
  479. case 2:
  480. c->cputype = CPU_AU1100;
  481. break;
  482. case 3:
  483. c->cputype = CPU_AU1550;
  484. break;
  485. case 4:
  486. c->cputype = CPU_AU1200;
  487. break;
  488. default:
  489. panic("Unknown Au Core!");
  490. break;
  491. }
  492. c->isa_level = MIPS_CPU_ISA_M32;
  493. break;
  494. }
  495. }
  496. static inline void cpu_probe_sibyte(struct cpuinfo_mips *c)
  497. {
  498. decode_config1(c);
  499. switch (c->processor_id & 0xff00) {
  500. case PRID_IMP_SB1:
  501. c->cputype = CPU_SB1;
  502. c->isa_level = MIPS_CPU_ISA_M64;
  503. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  504. MIPS_CPU_COUNTER | MIPS_CPU_DIVEC |
  505. MIPS_CPU_MCHECK | MIPS_CPU_EJTAG |
  506. MIPS_CPU_WATCH | MIPS_CPU_LLSC;
  507. #ifndef CONFIG_SB1_PASS_1_WORKAROUNDS
  508. /* FPU in pass1 is known to have issues. */
  509. c->options |= MIPS_CPU_FPU | MIPS_CPU_32FPR;
  510. #endif
  511. break;
  512. }
  513. }
  514. static inline void cpu_probe_sandcraft(struct cpuinfo_mips *c)
  515. {
  516. decode_config1(c);
  517. switch (c->processor_id & 0xff00) {
  518. case PRID_IMP_SR71000:
  519. c->cputype = CPU_SR71000;
  520. c->isa_level = MIPS_CPU_ISA_M64;
  521. c->options = MIPS_CPU_TLB | MIPS_CPU_4KEX |
  522. MIPS_CPU_4KTLB | MIPS_CPU_FPU |
  523. MIPS_CPU_COUNTER | MIPS_CPU_MCHECK;
  524. c->scache.ways = 8;
  525. c->tlbsize = 64;
  526. break;
  527. }
  528. }
  529. __init void cpu_probe(void)
  530. {
  531. struct cpuinfo_mips *c = &current_cpu_data;
  532. c->processor_id = PRID_IMP_UNKNOWN;
  533. c->fpu_id = FPIR_IMP_NONE;
  534. c->cputype = CPU_UNKNOWN;
  535. c->processor_id = read_c0_prid();
  536. switch (c->processor_id & 0xff0000) {
  537. case PRID_COMP_LEGACY:
  538. cpu_probe_legacy(c);
  539. break;
  540. case PRID_COMP_MIPS:
  541. cpu_probe_mips(c);
  542. break;
  543. case PRID_COMP_ALCHEMY:
  544. cpu_probe_alchemy(c);
  545. break;
  546. case PRID_COMP_SIBYTE:
  547. cpu_probe_sibyte(c);
  548. break;
  549. case PRID_COMP_SANDCRAFT:
  550. cpu_probe_sandcraft(c);
  551. break;
  552. default:
  553. c->cputype = CPU_UNKNOWN;
  554. }
  555. if (c->options & MIPS_CPU_FPU)
  556. c->fpu_id = cpu_get_fpu_id();
  557. }
  558. __init void cpu_report(void)
  559. {
  560. struct cpuinfo_mips *c = &current_cpu_data;
  561. printk("CPU revision is: %08x\n", c->processor_id);
  562. if (c->options & MIPS_CPU_FPU)
  563. printk("FPU revision is: %08x\n", c->fpu_id);
  564. }