diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-15 11:07:35 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-15 11:07:35 -0400 |
commit | 5f2434a66dfa4701b81b79a78eaf9c32da0f8839 (patch) | |
tree | 8c38f1fb0d0fbcd15e496df89be00ad8c4918a43 /arch/powerpc/kernel/btext.c | |
parent | 278429cff8809958d25415ba0ed32b59866ab1a8 (diff) | |
parent | 6dc6472581f693b5fc95aebedf67b4960fb85cf0 (diff) |
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (158 commits)
powerpc: Fix CHRP PCI config access for indirect_pci
powerpc/chrp: Fix detection of Python PCI host bridge on IBM CHRPs
powerpc: Fix 32-bit SMP boot on CHRP
powerpc: Fix link errors on 32-bit machines using legacy DMA
powerpc/pci: Improve detection of unassigned bridge resources
hvc_console: Fix free_irq in spinlocked section
powerpc: Get USE_STRICT_MM_TYPECHECKS working again
powerpc: Reflect the used arguments in machine_init() prototype
powerpc: Fix DMA offset for non-coherent DMA
powerpc: fix fsl_upm nand driver modular build
powerpc/83xx: add NAND support for the MPC8360E-RDK boards
powerpc: FPGA support for GE Fanuc SBC610
i2c: MPC8349E-mITX Power Management and GPIO expander driver
powerpc: reserve two DMA channels for audio in MPC8610 HPCD device tree
powerpc: document the "fsl,ssi-dma-channel" compatible property
powerpc: disable CHRP and PMAC support in various defconfigs
OF: add fsl,mcu-mpc8349emitx to the exception list
powerpc/83xx: add DS1374 RTC support for the MPC837xE-MDS boards
powerpc: remove support for bootmem-allocated memory for the DIU driver
powerpc: remove non-dependent load fsl_booke PTE_64BIT
...
Diffstat (limited to 'arch/powerpc/kernel/btext.c')
-rw-r--r-- | arch/powerpc/kernel/btext.c | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/arch/powerpc/kernel/btext.c b/arch/powerpc/kernel/btext.c index d8f0329b1344..26e58630ed7b 100644 --- a/arch/powerpc/kernel/btext.c +++ b/arch/powerpc/kernel/btext.c | |||
@@ -442,28 +442,26 @@ void btext_drawtext(const char *c, unsigned int len) | |||
442 | 442 | ||
443 | void btext_drawhex(unsigned long v) | 443 | void btext_drawhex(unsigned long v) |
444 | { | 444 | { |
445 | char *hex_table = "0123456789abcdef"; | ||
446 | |||
447 | if (!boot_text_mapped) | 445 | if (!boot_text_mapped) |
448 | return; | 446 | return; |
449 | #ifdef CONFIG_PPC64 | 447 | #ifdef CONFIG_PPC64 |
450 | btext_drawchar(hex_table[(v >> 60) & 0x0000000FUL]); | 448 | btext_drawchar(hex_asc_hi(v >> 56)); |
451 | btext_drawchar(hex_table[(v >> 56) & 0x0000000FUL]); | 449 | btext_drawchar(hex_asc_lo(v >> 56)); |
452 | btext_drawchar(hex_table[(v >> 52) & 0x0000000FUL]); | 450 | btext_drawchar(hex_asc_hi(v >> 48)); |
453 | btext_drawchar(hex_table[(v >> 48) & 0x0000000FUL]); | 451 | btext_drawchar(hex_asc_lo(v >> 48)); |
454 | btext_drawchar(hex_table[(v >> 44) & 0x0000000FUL]); | 452 | btext_drawchar(hex_asc_hi(v >> 40)); |
455 | btext_drawchar(hex_table[(v >> 40) & 0x0000000FUL]); | 453 | btext_drawchar(hex_asc_lo(v >> 40)); |
456 | btext_drawchar(hex_table[(v >> 36) & 0x0000000FUL]); | 454 | btext_drawchar(hex_asc_hi(v >> 32)); |
457 | btext_drawchar(hex_table[(v >> 32) & 0x0000000FUL]); | 455 | btext_drawchar(hex_asc_lo(v >> 32)); |
458 | #endif | 456 | #endif |
459 | btext_drawchar(hex_table[(v >> 28) & 0x0000000FUL]); | 457 | btext_drawchar(hex_asc_hi(v >> 24)); |
460 | btext_drawchar(hex_table[(v >> 24) & 0x0000000FUL]); | 458 | btext_drawchar(hex_asc_lo(v >> 24)); |
461 | btext_drawchar(hex_table[(v >> 20) & 0x0000000FUL]); | 459 | btext_drawchar(hex_asc_hi(v >> 16)); |
462 | btext_drawchar(hex_table[(v >> 16) & 0x0000000FUL]); | 460 | btext_drawchar(hex_asc_lo(v >> 16)); |
463 | btext_drawchar(hex_table[(v >> 12) & 0x0000000FUL]); | 461 | btext_drawchar(hex_asc_hi(v >> 8)); |
464 | btext_drawchar(hex_table[(v >> 8) & 0x0000000FUL]); | 462 | btext_drawchar(hex_asc_lo(v >> 8)); |
465 | btext_drawchar(hex_table[(v >> 4) & 0x0000000FUL]); | 463 | btext_drawchar(hex_asc_hi(v)); |
466 | btext_drawchar(hex_table[(v >> 0) & 0x0000000FUL]); | 464 | btext_drawchar(hex_asc_lo(v)); |
467 | btext_drawchar(' '); | 465 | btext_drawchar(' '); |
468 | } | 466 | } |
469 | 467 | ||