trace.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. /* provide some functions which dump the trace buffer, in a nice way for people
  2. * to read it, and understand what is going on
  3. *
  4. * Copyright 2004-2010 Analog Devices Inc.
  5. *
  6. * Licensed under the GPL-2 or later
  7. */
  8. #include <linux/kernel.h>
  9. #include <linux/hardirq.h>
  10. #include <linux/thread_info.h>
  11. #include <linux/mm.h>
  12. #include <linux/uaccess.h>
  13. #include <linux/module.h>
  14. #include <linux/kallsyms.h>
  15. #include <linux/err.h>
  16. #include <linux/fs.h>
  17. #include <asm/dma.h>
  18. #include <asm/trace.h>
  19. #include <asm/fixed_code.h>
  20. #include <asm/traps.h>
  21. void decode_address(char *buf, unsigned long address)
  22. {
  23. struct task_struct *p;
  24. struct mm_struct *mm;
  25. unsigned long flags, offset;
  26. unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
  27. struct rb_node *n;
  28. #ifdef CONFIG_KALLSYMS
  29. unsigned long symsize;
  30. const char *symname;
  31. char *modname;
  32. char *delim = ":";
  33. char namebuf[128];
  34. #endif
  35. buf += sprintf(buf, "<0x%08lx> ", address);
  36. #ifdef CONFIG_KALLSYMS
  37. /* look up the address and see if we are in kernel space */
  38. symname = kallsyms_lookup(address, &symsize, &offset, &modname, namebuf);
  39. if (symname) {
  40. /* yeah! kernel space! */
  41. if (!modname)
  42. modname = delim = "";
  43. sprintf(buf, "{ %s%s%s%s + 0x%lx }",
  44. delim, modname, delim, symname,
  45. (unsigned long)offset);
  46. return;
  47. }
  48. #endif
  49. if (address >= FIXED_CODE_START && address < FIXED_CODE_END) {
  50. /* Problem in fixed code section? */
  51. strcat(buf, "/* Maybe fixed code section */");
  52. return;
  53. } else if (address < CONFIG_BOOT_LOAD) {
  54. /* Problem somewhere before the kernel start address */
  55. strcat(buf, "/* Maybe null pointer? */");
  56. return;
  57. } else if (address >= COREMMR_BASE) {
  58. strcat(buf, "/* core mmrs */");
  59. return;
  60. } else if (address >= SYSMMR_BASE) {
  61. strcat(buf, "/* system mmrs */");
  62. return;
  63. } else if (address >= L1_ROM_START && address < L1_ROM_START + L1_ROM_LENGTH) {
  64. strcat(buf, "/* on-chip L1 ROM */");
  65. return;
  66. }
  67. /*
  68. * Don't walk any of the vmas if we are oopsing, it has been known
  69. * to cause problems - corrupt vmas (kernel crashes) cause double faults
  70. */
  71. if (oops_in_progress) {
  72. strcat(buf, "/* kernel dynamic memory (maybe user-space) */");
  73. return;
  74. }
  75. /* looks like we're off in user-land, so let's walk all the
  76. * mappings of all our processes and see if we can't be a whee
  77. * bit more specific
  78. */
  79. write_lock_irqsave(&tasklist_lock, flags);
  80. for_each_process(p) {
  81. mm = (in_atomic ? p->mm : get_task_mm(p));
  82. if (!mm)
  83. continue;
  84. if (!down_read_trylock(&mm->mmap_sem)) {
  85. if (!in_atomic)
  86. mmput(mm);
  87. continue;
  88. }
  89. for (n = rb_first(&mm->mm_rb); n; n = rb_next(n)) {
  90. struct vm_area_struct *vma;
  91. vma = rb_entry(n, struct vm_area_struct, vm_rb);
  92. if (address >= vma->vm_start && address < vma->vm_end) {
  93. char _tmpbuf[256];
  94. char *name = p->comm;
  95. struct file *file = vma->vm_file;
  96. if (file) {
  97. char *d_name = d_path(&file->f_path, _tmpbuf,
  98. sizeof(_tmpbuf));
  99. if (!IS_ERR(d_name))
  100. name = d_name;
  101. }
  102. /* FLAT does not have its text aligned to the start of
  103. * the map while FDPIC ELF does ...
  104. */
  105. /* before we can check flat/fdpic, we need to
  106. * make sure current is valid
  107. */
  108. if ((unsigned long)current >= FIXED_CODE_START &&
  109. !((unsigned long)current & 0x3)) {
  110. if (current->mm &&
  111. (address > current->mm->start_code) &&
  112. (address < current->mm->end_code))
  113. offset = address - current->mm->start_code;
  114. else
  115. offset = (address - vma->vm_start) +
  116. (vma->vm_pgoff << PAGE_SHIFT);
  117. sprintf(buf, "[ %s + 0x%lx ]", name, offset);
  118. } else
  119. sprintf(buf, "[ %s vma:0x%lx-0x%lx]",
  120. name, vma->vm_start, vma->vm_end);
  121. up_read(&mm->mmap_sem);
  122. if (!in_atomic)
  123. mmput(mm);
  124. if (buf[0] == '\0')
  125. sprintf(buf, "[ %s ] dynamic memory", name);
  126. goto done;
  127. }
  128. }
  129. up_read(&mm->mmap_sem);
  130. if (!in_atomic)
  131. mmput(mm);
  132. }
  133. /*
  134. * we were unable to find this address anywhere,
  135. * or some MMs were skipped because they were in use.
  136. */
  137. sprintf(buf, "/* kernel dynamic memory */");
  138. done:
  139. write_unlock_irqrestore(&tasklist_lock, flags);
  140. }
  141. #define EXPAND_LEN ((1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 256 - 1)
  142. /*
  143. * Similar to get_user, do some address checking, then dereference
  144. * Return true on success, false on bad address
  145. */
  146. bool get_instruction(unsigned short *val, unsigned short *address)
  147. {
  148. unsigned long addr = (unsigned long)address;
  149. /* Check for odd addresses */
  150. if (addr & 0x1)
  151. return false;
  152. /* MMR region will never have instructions */
  153. if (addr >= SYSMMR_BASE)
  154. return false;
  155. switch (bfin_mem_access_type(addr, 2)) {
  156. case BFIN_MEM_ACCESS_CORE:
  157. case BFIN_MEM_ACCESS_CORE_ONLY:
  158. *val = *address;
  159. return true;
  160. case BFIN_MEM_ACCESS_DMA:
  161. dma_memcpy(val, address, 2);
  162. return true;
  163. case BFIN_MEM_ACCESS_ITEST:
  164. isram_memcpy(val, address, 2);
  165. return true;
  166. default: /* invalid access */
  167. return false;
  168. }
  169. }
  170. /*
  171. * decode the instruction if we are printing out the trace, as it
  172. * makes things easier to follow, without running it through objdump
  173. * These are the normal instructions which cause change of flow, which
  174. * would be at the source of the trace buffer
  175. */
  176. #if defined(CONFIG_DEBUG_BFIN_HWTRACE_ON)
  177. static void decode_instruction(unsigned short *address)
  178. {
  179. unsigned short opcode;
  180. if (get_instruction(&opcode, address)) {
  181. if (opcode == 0x0010)
  182. pr_cont("RTS");
  183. else if (opcode == 0x0011)
  184. pr_cont("RTI");
  185. else if (opcode == 0x0012)
  186. pr_cont("RTX");
  187. else if (opcode == 0x0013)
  188. pr_cont("RTN");
  189. else if (opcode == 0x0014)
  190. pr_cont("RTE");
  191. else if (opcode == 0x0025)
  192. pr_cont("EMUEXCPT");
  193. else if (opcode >= 0x0040 && opcode <= 0x0047)
  194. pr_cont("STI R%i", opcode & 7);
  195. else if (opcode >= 0x0050 && opcode <= 0x0057)
  196. pr_cont("JUMP (P%i)", opcode & 7);
  197. else if (opcode >= 0x0060 && opcode <= 0x0067)
  198. pr_cont("CALL (P%i)", opcode & 7);
  199. else if (opcode >= 0x0070 && opcode <= 0x0077)
  200. pr_cont("CALL (PC+P%i)", opcode & 7);
  201. else if (opcode >= 0x0080 && opcode <= 0x0087)
  202. pr_cont("JUMP (PC+P%i)", opcode & 7);
  203. else if (opcode >= 0x0090 && opcode <= 0x009F)
  204. pr_cont("RAISE 0x%x", opcode & 0xF);
  205. else if (opcode >= 0x00A0 && opcode <= 0x00AF)
  206. pr_cont("EXCPT 0x%x", opcode & 0xF);
  207. else if ((opcode >= 0x1000 && opcode <= 0x13FF) || (opcode >= 0x1800 && opcode <= 0x1BFF))
  208. pr_cont("IF !CC JUMP");
  209. else if ((opcode >= 0x1400 && opcode <= 0x17ff) || (opcode >= 0x1c00 && opcode <= 0x1fff))
  210. pr_cont("IF CC JUMP");
  211. else if (opcode >= 0x2000 && opcode <= 0x2fff)
  212. pr_cont("JUMP.S");
  213. else if (opcode >= 0xe080 && opcode <= 0xe0ff)
  214. pr_cont("LSETUP");
  215. else if (opcode >= 0xe200 && opcode <= 0xe2ff)
  216. pr_cont("JUMP.L");
  217. else if (opcode >= 0xe300 && opcode <= 0xe3ff)
  218. pr_cont("CALL pcrel");
  219. else
  220. pr_cont("0x%04x", opcode);
  221. }
  222. }
  223. #endif
  224. void dump_bfin_trace_buffer(void)
  225. {
  226. #ifdef CONFIG_DEBUG_BFIN_HWTRACE_ON
  227. int tflags, i = 0;
  228. char buf[150];
  229. unsigned short *addr;
  230. #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND
  231. int j, index;
  232. #endif
  233. trace_buffer_save(tflags);
  234. pr_notice("Hardware Trace:\n");
  235. #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND
  236. pr_notice("WARNING: Expanded trace turned on - can not trace exceptions\n");
  237. #endif
  238. if (likely(bfin_read_TBUFSTAT() & TBUFCNT)) {
  239. for (; bfin_read_TBUFSTAT() & TBUFCNT; i++) {
  240. decode_address(buf, (unsigned long)bfin_read_TBUF());
  241. pr_notice("%4i Target : %s\n", i, buf);
  242. addr = (unsigned short *)bfin_read_TBUF();
  243. decode_address(buf, (unsigned long)addr);
  244. pr_notice(" Source : %s ", buf);
  245. decode_instruction(addr);
  246. pr_cont("\n");
  247. }
  248. }
  249. #ifdef CONFIG_DEBUG_BFIN_HWTRACE_EXPAND
  250. if (trace_buff_offset)
  251. index = trace_buff_offset / 4;
  252. else
  253. index = EXPAND_LEN;
  254. j = (1 << CONFIG_DEBUG_BFIN_HWTRACE_EXPAND_LEN) * 128;
  255. while (j) {
  256. decode_address(buf, software_trace_buff[index]);
  257. pr_notice("%4i Target : %s\n", i, buf);
  258. index -= 1;
  259. if (index < 0)
  260. index = EXPAND_LEN;
  261. decode_address(buf, software_trace_buff[index]);
  262. pr_notice(" Source : %s ", buf);
  263. decode_instruction((unsigned short *)software_trace_buff[index]);
  264. pr_cont("\n");
  265. index -= 1;
  266. if (index < 0)
  267. index = EXPAND_LEN;
  268. j--;
  269. i++;
  270. }
  271. #endif
  272. trace_buffer_restore(tflags);
  273. #endif
  274. }
  275. EXPORT_SYMBOL(dump_bfin_trace_buffer);
  276. void dump_bfin_process(struct pt_regs *fp)
  277. {
  278. /* We should be able to look at fp->ipend, but we don't push it on the
  279. * stack all the time, so do this until we fix that */
  280. unsigned int context = bfin_read_IPEND();
  281. if (oops_in_progress)
  282. pr_emerg("Kernel OOPS in progress\n");
  283. if (context & 0x0020 && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR)
  284. pr_notice("HW Error context\n");
  285. else if (context & 0x0020)
  286. pr_notice("Deferred Exception context\n");
  287. else if (context & 0x3FC0)
  288. pr_notice("Interrupt context\n");
  289. else if (context & 0x4000)
  290. pr_notice("Deferred Interrupt context\n");
  291. else if (context & 0x8000)
  292. pr_notice("Kernel process context\n");
  293. /* Because we are crashing, and pointers could be bad, we check things
  294. * pretty closely before we use them
  295. */
  296. if ((unsigned long)current >= FIXED_CODE_START &&
  297. !((unsigned long)current & 0x3) && current->pid) {
  298. pr_notice("CURRENT PROCESS:\n");
  299. if (current->comm >= (char *)FIXED_CODE_START)
  300. pr_notice("COMM=%s PID=%d",
  301. current->comm, current->pid);
  302. else
  303. pr_notice("COMM= invalid");
  304. pr_cont(" CPU=%d\n", current_thread_info()->cpu);
  305. if (!((unsigned long)current->mm & 0x3) &&
  306. (unsigned long)current->mm >= FIXED_CODE_START) {
  307. pr_notice("TEXT = 0x%p-0x%p DATA = 0x%p-0x%p\n",
  308. (void *)current->mm->start_code,
  309. (void *)current->mm->end_code,
  310. (void *)current->mm->start_data,
  311. (void *)current->mm->end_data);
  312. pr_notice(" BSS = 0x%p-0x%p USER-STACK = 0x%p\n\n",
  313. (void *)current->mm->end_data,
  314. (void *)current->mm->brk,
  315. (void *)current->mm->start_stack);
  316. } else
  317. pr_notice("invalid mm\n");
  318. } else
  319. pr_notice("No Valid process in current context\n");
  320. }
  321. void dump_bfin_mem(struct pt_regs *fp)
  322. {
  323. unsigned short *addr, *erraddr, val = 0, err = 0;
  324. char sti = 0, buf[6];
  325. erraddr = (void *)fp->pc;
  326. pr_notice("return address: [0x%p]; contents of:", erraddr);
  327. for (addr = (unsigned short *)((unsigned long)erraddr & ~0xF) - 0x10;
  328. addr < (unsigned short *)((unsigned long)erraddr & ~0xF) + 0x10;
  329. addr++) {
  330. if (!((unsigned long)addr & 0xF))
  331. pr_notice("0x%p: ", addr);
  332. if (!get_instruction(&val, addr)) {
  333. val = 0;
  334. sprintf(buf, "????");
  335. } else
  336. sprintf(buf, "%04x", val);
  337. if (addr == erraddr) {
  338. pr_cont("[%s]", buf);
  339. err = val;
  340. } else
  341. pr_cont(" %s ", buf);
  342. /* Do any previous instructions turn on interrupts? */
  343. if (addr <= erraddr && /* in the past */
  344. ((val >= 0x0040 && val <= 0x0047) || /* STI instruction */
  345. val == 0x017b)) /* [SP++] = RETI */
  346. sti = 1;
  347. }
  348. pr_cont("\n");
  349. /* Hardware error interrupts can be deferred */
  350. if (unlikely(sti && (fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR &&
  351. oops_in_progress)){
  352. pr_notice("Looks like this was a deferred error - sorry\n");
  353. #ifndef CONFIG_DEBUG_HWERR
  354. pr_notice("The remaining message may be meaningless\n");
  355. pr_notice("You should enable CONFIG_DEBUG_HWERR to get a better idea where it came from\n");
  356. #else
  357. /* If we are handling only one peripheral interrupt
  358. * and current mm and pid are valid, and the last error
  359. * was in that user space process's text area
  360. * print it out - because that is where the problem exists
  361. */
  362. if ((!(((fp)->ipend & ~0x30) & (((fp)->ipend & ~0x30) - 1))) &&
  363. (current->pid && current->mm)) {
  364. /* And the last RETI points to the current userspace context */
  365. if ((fp + 1)->pc >= current->mm->start_code &&
  366. (fp + 1)->pc <= current->mm->end_code) {
  367. pr_notice("It might be better to look around here :\n");
  368. pr_notice("-------------------------------------------\n");
  369. show_regs(fp + 1);
  370. pr_notice("-------------------------------------------\n");
  371. }
  372. }
  373. #endif
  374. }
  375. }
  376. void show_regs(struct pt_regs *fp)
  377. {
  378. char buf[150];
  379. struct irqaction *action;
  380. unsigned int i;
  381. unsigned long flags = 0;
  382. unsigned int cpu = raw_smp_processor_id();
  383. unsigned char in_atomic = (bfin_read_IPEND() & 0x10) || in_atomic();
  384. pr_notice("\n");
  385. if (CPUID != bfin_cpuid())
  386. pr_notice("Compiled for cpu family 0x%04x (Rev %d), "
  387. "but running on:0x%04x (Rev %d)\n",
  388. CPUID, bfin_compiled_revid(), bfin_cpuid(), bfin_revid());
  389. pr_notice("ADSP-%s-0.%d",
  390. CPU, bfin_compiled_revid());
  391. if (bfin_compiled_revid() != bfin_revid())
  392. pr_cont("(Detected 0.%d)", bfin_revid());
  393. pr_cont(" %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n",
  394. get_cclk()/1000000, get_sclk()/1000000,
  395. #ifdef CONFIG_MPU
  396. "mpu on"
  397. #else
  398. "mpu off"
  399. #endif
  400. );
  401. pr_notice("%s", linux_banner);
  402. pr_notice("\nSEQUENCER STATUS:\t\t%s\n", print_tainted());
  403. pr_notice(" SEQSTAT: %08lx IPEND: %04lx IMASK: %04lx SYSCFG: %04lx\n",
  404. (long)fp->seqstat, fp->ipend, cpu_pda[raw_smp_processor_id()].ex_imask, fp->syscfg);
  405. if (fp->ipend & EVT_IRPTEN)
  406. pr_notice(" Global Interrupts Disabled (IPEND[4])\n");
  407. if (!(cpu_pda[raw_smp_processor_id()].ex_imask & (EVT_IVG13 | EVT_IVG12 | EVT_IVG11 |
  408. EVT_IVG10 | EVT_IVG9 | EVT_IVG8 | EVT_IVG7 | EVT_IVTMR)))
  409. pr_notice(" Peripheral interrupts masked off\n");
  410. if (!(cpu_pda[raw_smp_processor_id()].ex_imask & (EVT_IVG15 | EVT_IVG14)))
  411. pr_notice(" Kernel interrupts masked off\n");
  412. if ((fp->seqstat & SEQSTAT_EXCAUSE) == VEC_HWERR) {
  413. pr_notice(" HWERRCAUSE: 0x%lx\n",
  414. (fp->seqstat & SEQSTAT_HWERRCAUSE) >> 14);
  415. #ifdef EBIU_ERRMST
  416. /* If the error was from the EBIU, print it out */
  417. if (bfin_read_EBIU_ERRMST() & CORE_ERROR) {
  418. pr_notice(" EBIU Error Reason : 0x%04x\n",
  419. bfin_read_EBIU_ERRMST());
  420. pr_notice(" EBIU Error Address : 0x%08x\n",
  421. bfin_read_EBIU_ERRADD());
  422. }
  423. #endif
  424. }
  425. pr_notice(" EXCAUSE : 0x%lx\n",
  426. fp->seqstat & SEQSTAT_EXCAUSE);
  427. for (i = 2; i <= 15 ; i++) {
  428. if (fp->ipend & (1 << i)) {
  429. if (i != 4) {
  430. decode_address(buf, bfin_read32(EVT0 + 4*i));
  431. pr_notice(" physical IVG%i asserted : %s\n", i, buf);
  432. } else
  433. pr_notice(" interrupts disabled\n");
  434. }
  435. }
  436. /* if no interrupts are going off, don't print this out */
  437. if (fp->ipend & ~0x3F) {
  438. for (i = 0; i < (NR_IRQS - 1); i++) {
  439. if (!in_atomic)
  440. raw_spin_lock_irqsave(&irq_desc[i].lock, flags);
  441. action = irq_desc[i].action;
  442. if (!action)
  443. goto unlock;
  444. decode_address(buf, (unsigned int)action->handler);
  445. pr_notice(" logical irq %3d mapped : %s", i, buf);
  446. for (action = action->next; action; action = action->next) {
  447. decode_address(buf, (unsigned int)action->handler);
  448. pr_cont(", %s", buf);
  449. }
  450. pr_cont("\n");
  451. unlock:
  452. if (!in_atomic)
  453. raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags);
  454. }
  455. }
  456. decode_address(buf, fp->rete);
  457. pr_notice(" RETE: %s\n", buf);
  458. decode_address(buf, fp->retn);
  459. pr_notice(" RETN: %s\n", buf);
  460. decode_address(buf, fp->retx);
  461. pr_notice(" RETX: %s\n", buf);
  462. decode_address(buf, fp->rets);
  463. pr_notice(" RETS: %s\n", buf);
  464. decode_address(buf, fp->pc);
  465. pr_notice(" PC : %s\n", buf);
  466. if (((long)fp->seqstat & SEQSTAT_EXCAUSE) &&
  467. (((long)fp->seqstat & SEQSTAT_EXCAUSE) != VEC_HWERR)) {
  468. decode_address(buf, cpu_pda[cpu].dcplb_fault_addr);
  469. pr_notice("DCPLB_FAULT_ADDR: %s\n", buf);
  470. decode_address(buf, cpu_pda[cpu].icplb_fault_addr);
  471. pr_notice("ICPLB_FAULT_ADDR: %s\n", buf);
  472. }
  473. pr_notice("PROCESSOR STATE:\n");
  474. pr_notice(" R0 : %08lx R1 : %08lx R2 : %08lx R3 : %08lx\n",
  475. fp->r0, fp->r1, fp->r2, fp->r3);
  476. pr_notice(" R4 : %08lx R5 : %08lx R6 : %08lx R7 : %08lx\n",
  477. fp->r4, fp->r5, fp->r6, fp->r7);
  478. pr_notice(" P0 : %08lx P1 : %08lx P2 : %08lx P3 : %08lx\n",
  479. fp->p0, fp->p1, fp->p2, fp->p3);
  480. pr_notice(" P4 : %08lx P5 : %08lx FP : %08lx SP : %08lx\n",
  481. fp->p4, fp->p5, fp->fp, (long)fp);
  482. pr_notice(" LB0: %08lx LT0: %08lx LC0: %08lx\n",
  483. fp->lb0, fp->lt0, fp->lc0);
  484. pr_notice(" LB1: %08lx LT1: %08lx LC1: %08lx\n",
  485. fp->lb1, fp->lt1, fp->lc1);
  486. pr_notice(" B0 : %08lx L0 : %08lx M0 : %08lx I0 : %08lx\n",
  487. fp->b0, fp->l0, fp->m0, fp->i0);
  488. pr_notice(" B1 : %08lx L1 : %08lx M1 : %08lx I1 : %08lx\n",
  489. fp->b1, fp->l1, fp->m1, fp->i1);
  490. pr_notice(" B2 : %08lx L2 : %08lx M2 : %08lx I2 : %08lx\n",
  491. fp->b2, fp->l2, fp->m2, fp->i2);
  492. pr_notice(" B3 : %08lx L3 : %08lx M3 : %08lx I3 : %08lx\n",
  493. fp->b3, fp->l3, fp->m3, fp->i3);
  494. pr_notice("A0.w: %08lx A0.x: %08lx A1.w: %08lx A1.x: %08lx\n",
  495. fp->a0w, fp->a0x, fp->a1w, fp->a1x);
  496. pr_notice("USP : %08lx ASTAT: %08lx\n",
  497. rdusp(), fp->astat);
  498. pr_notice("\n");
  499. }