@@ -376,148 +376,148 @@ static void print_sh_insn(u32 memaddr, u16 insn)
376
376
}
377
377
378
378
ok :
379
- printk ("%-8s " , op -> name );
379
+ pr_cont ("%-8s " , op -> name );
380
380
lastsp = (op -> arg [0 ] == A_END );
381
381
disp_pc = 0 ;
382
382
for (n = 0 ; n < 6 && op -> arg [n ] != A_END ; n ++ ) {
383
383
if (n && op -> arg [1 ] != A_END )
384
- printk (", " );
384
+ pr_cont (", " );
385
385
switch (op -> arg [n ]) {
386
386
case A_IMM :
387
- printk ("#%d" , (char )(imm ));
387
+ pr_cont ("#%d" , (char )(imm ));
388
388
break ;
389
389
case A_R0 :
390
- printk ("r0" );
390
+ pr_cont ("r0" );
391
391
break ;
392
392
case A_REG_N :
393
- printk ("r%d" , rn );
393
+ pr_cont ("r%d" , rn );
394
394
break ;
395
395
case A_INC_N :
396
- printk ("@r%d+" , rn );
396
+ pr_cont ("@r%d+" , rn );
397
397
break ;
398
398
case A_DEC_N :
399
- printk ("@-r%d" , rn );
399
+ pr_cont ("@-r%d" , rn );
400
400
break ;
401
401
case A_IND_N :
402
- printk ("@r%d" , rn );
402
+ pr_cont ("@r%d" , rn );
403
403
break ;
404
404
case A_DISP_REG_N :
405
- printk ("@(%d,r%d)" , imm , rn );
405
+ pr_cont ("@(%d,r%d)" , imm , rn );
406
406
break ;
407
407
case A_REG_M :
408
- printk ("r%d" , rm );
408
+ pr_cont ("r%d" , rm );
409
409
break ;
410
410
case A_INC_M :
411
- printk ("@r%d+" , rm );
411
+ pr_cont ("@r%d+" , rm );
412
412
break ;
413
413
case A_DEC_M :
414
- printk ("@-r%d" , rm );
414
+ pr_cont ("@-r%d" , rm );
415
415
break ;
416
416
case A_IND_M :
417
- printk ("@r%d" , rm );
417
+ pr_cont ("@r%d" , rm );
418
418
break ;
419
419
case A_DISP_REG_M :
420
- printk ("@(%d,r%d)" , imm , rm );
420
+ pr_cont ("@(%d,r%d)" , imm , rm );
421
421
break ;
422
422
case A_REG_B :
423
- printk ("r%d_bank" , rb );
423
+ pr_cont ("r%d_bank" , rb );
424
424
break ;
425
425
case A_DISP_PC :
426
426
disp_pc = 1 ;
427
427
disp_pc_addr = imm + 4 + (memaddr & relmask );
428
- printk ("%08x <%pS>" , disp_pc_addr ,
429
- (void * )disp_pc_addr );
428
+ pr_cont ("%08x <%pS>" , disp_pc_addr ,
429
+ (void * )disp_pc_addr );
430
430
break ;
431
431
case A_IND_R0_REG_N :
432
- printk ("@(r0,r%d)" , rn );
432
+ pr_cont ("@(r0,r%d)" , rn );
433
433
break ;
434
434
case A_IND_R0_REG_M :
435
- printk ("@(r0,r%d)" , rm );
435
+ pr_cont ("@(r0,r%d)" , rm );
436
436
break ;
437
437
case A_DISP_GBR :
438
- printk ("@(%d,gbr)" ,imm );
438
+ pr_cont ("@(%d,gbr)" , imm );
439
439
break ;
440
440
case A_R0_GBR :
441
- printk ("@(r0,gbr)" );
441
+ pr_cont ("@(r0,gbr)" );
442
442
break ;
443
443
case A_BDISP12 :
444
444
case A_BDISP8 :
445
- printk ("%08x" , imm + memaddr );
445
+ pr_cont ("%08x" , imm + memaddr );
446
446
break ;
447
447
case A_SR :
448
- printk ("sr" );
448
+ pr_cont ("sr" );
449
449
break ;
450
450
case A_GBR :
451
- printk ("gbr" );
451
+ pr_cont ("gbr" );
452
452
break ;
453
453
case A_VBR :
454
- printk ("vbr" );
454
+ pr_cont ("vbr" );
455
455
break ;
456
456
case A_SSR :
457
- printk ("ssr" );
457
+ pr_cont ("ssr" );
458
458
break ;
459
459
case A_SPC :
460
- printk ("spc" );
460
+ pr_cont ("spc" );
461
461
break ;
462
462
case A_MACH :
463
- printk ("mach" );
463
+ pr_cont ("mach" );
464
464
break ;
465
465
case A_MACL :
466
- printk ("macl" );
466
+ pr_cont ("macl" );
467
467
break ;
468
468
case A_PR :
469
- printk ("pr" );
469
+ pr_cont ("pr" );
470
470
break ;
471
471
case A_SGR :
472
- printk ("sgr" );
472
+ pr_cont ("sgr" );
473
473
break ;
474
474
case A_DBR :
475
- printk ("dbr" );
475
+ pr_cont ("dbr" );
476
476
break ;
477
477
case FD_REG_N :
478
478
case F_REG_N :
479
- printk ("fr%d" , rn );
479
+ pr_cont ("fr%d" , rn );
480
480
break ;
481
481
case F_REG_M :
482
- printk ("fr%d" , rm );
482
+ pr_cont ("fr%d" , rm );
483
483
break ;
484
484
case DX_REG_N :
485
485
if (rn & 1 ) {
486
- printk ("xd%d" , rn & ~1 );
486
+ pr_cont ("xd%d" , rn & ~1 );
487
487
break ;
488
488
}
489
489
/* else, fall through */
490
490
case D_REG_N :
491
- printk ("dr%d" , rn );
491
+ pr_cont ("dr%d" , rn );
492
492
break ;
493
493
case DX_REG_M :
494
494
if (rm & 1 ) {
495
- printk ("xd%d" , rm & ~1 );
495
+ pr_cont ("xd%d" , rm & ~1 );
496
496
break ;
497
497
}
498
498
/* else, fall through */
499
499
case D_REG_M :
500
- printk ("dr%d" , rm );
500
+ pr_cont ("dr%d" , rm );
501
501
break ;
502
502
case FPSCR_M :
503
503
case FPSCR_N :
504
- printk ("fpscr" );
504
+ pr_cont ("fpscr" );
505
505
break ;
506
506
case FPUL_M :
507
507
case FPUL_N :
508
- printk ("fpul" );
508
+ pr_cont ("fpul" );
509
509
break ;
510
510
case F_FR0 :
511
- printk ("fr0" );
511
+ pr_cont ("fr0" );
512
512
break ;
513
513
case V_REG_N :
514
- printk ("fv%d" , rn * 4 );
514
+ pr_cont ("fv%d" , rn * 4 );
515
515
break ;
516
516
case V_REG_M :
517
- printk ("fv%d" , rm * 4 );
517
+ pr_cont ("fv%d" , rm * 4 );
518
518
break ;
519
519
case XMTRX_M4 :
520
- printk ("xmtrx" );
520
+ pr_cont ("xmtrx" );
521
521
break ;
522
522
default :
523
523
return ;
@@ -532,7 +532,7 @@ static void print_sh_insn(u32 memaddr, u16 insn)
532
532
else
533
533
__get_user (val , (u32 * )disp_pc_addr );
534
534
535
- printk (" ! %08x <%pS>" , val , (void * )val );
535
+ pr_cont (" ! %08x <%pS>" , val , (void * )val );
536
536
}
537
537
538
538
return ;
@@ -541,7 +541,7 @@ static void print_sh_insn(u32 memaddr, u16 insn)
541
541
542
542
}
543
543
544
- printk (".word 0x%x%x%x%x" , nibs [0 ], nibs [1 ], nibs [2 ], nibs [3 ]);
544
+ pr_info (".word 0x%x%x%x%x" , nibs [0 ], nibs [1 ], nibs [2 ], nibs [3 ]);
545
545
}
546
546
547
547
void show_code (struct pt_regs * regs )
@@ -552,20 +552,21 @@ void show_code(struct pt_regs *regs)
552
552
if (regs -> pc & 0x1 )
553
553
return ;
554
554
555
- printk ("Code:\n" );
555
+ pr_info ("Code:\n" );
556
556
557
557
for (i = -3 ; i < 6 ; i ++ ) {
558
558
unsigned short insn ;
559
559
560
560
if (__get_user (insn , pc + i )) {
561
- printk (" (Bad address in pc)\n" );
561
+ pr_err (" (Bad address in pc)\n" );
562
562
break ;
563
563
}
564
564
565
- printk ("%s%08lx: " , (i ? " " : "->" ), (unsigned long )(pc + i ));
565
+ pr_info ("%s%08lx: " , (i ? " " : "->" ),
566
+ (unsigned long )(pc + i ));
566
567
print_sh_insn ((unsigned long )(pc + i ), insn );
567
- printk ("\n" );
568
+ pr_cont ("\n" );
568
569
}
569
570
570
- printk ("\n" );
571
+ pr_info ("\n" );
571
572
}
0 commit comments