Ignore:
Timestamp:
Apr 10, 2003, 4:35:33 PM (17 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2f73363
Parents:
48cdb95a
Message:

2003-04-10 Till Straumann <strauman@…>

PR 379/bsps

  • console/polled_io.c: libcpu provides 'printk' already. Therefore, the implementation in this file was removed (still used for the bootloader, though). It now provides BSP_output_char() for libcpu's printk().
  • console/uart.c, console/uart.h: BSP_output_char_via_serial() prototype changed to match the BSP_output_char_function_type. Note that the motorola BSPs use polled-io for the output_char routine, not the uart.c version. The latter can be used be other BSPs however (e.g. SVGM).
  • console/console.c, console/consoleIo.h, console/polled_io.c, irq/irq_init.c, openpic/openpic.c, pci/detect_raven_bridge.c: Unfortunately, the supported 'printk' format string subset of the polled-io and libcpu implementations are different - hence, a few format strings in the ppc/shared BSP were changed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/shared/openpic/openpic.c

    r48cdb95a r0d6849e7  
    2424#include <bsp/openpic.h>
    2525#include <bsp/pci.h>
    26 #include <bsp/consoleIo.h>
    2726#include <libcpu/io.h>
    2827#include <libcpu/byteorder.h>
     
    7069#define check_arg_irq(irq) \
    7170    if (irq < 0 || irq >= NumSources) \
    72         printk("openpic.c:%d: illegal irq %d from %p,[%p],[[%p]]\n", \
     71        printk("openpic.c:%d: illegal irq %d from 0x%08x,[0x%08x],[[0x%08x]]\n", \
    7372               __LINE__, irq, __builtin_return_address(0), \
    7473               __builtin_return_address(1), __builtin_return_address(2) \
     
    223222        }
    224223    }
    225     printk("OpenPIC Version %s (%d CPUs and %d IRQ sources) at %p\n", version,
     224    printk("OpenPIC Version %s (%d CPUs and %d IRQ sources) at 0x%08x\n", version,
    226225           NumProcessors, NumSources, OpenPIC);
    227226
Note: See TracChangeset for help on using the changeset viewer.