Changeset 7699617f in rtems


Ignore:
Timestamp:
Oct 28, 2009, 1:24:10 AM (10 years ago)
Author:
Till Straumann <strauman@…>
Branches:
4.10, 4.11, master
Children:
b3051ac
Parents:
b3acedb5
Message:

2009-12-27 Till Straumann <strauman@…>

  • include/bsp.h, console/console.c: Provide weak-alias hook so that the application may choose the console.
Location:
c/src/lib/libbsp/i386/pc386
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/i386/pc386/ChangeLog

    rb3acedb5 r7699617f  
     12009-12-27      Till Straumann <strauman@slac.stanford.edu>
     2
     3        * include/bsp.h, console/console.c: Provide weak-alias
     4        hook so that the application may choose the console.
     5
    162009-10-21      Ralf Corsépius <ralf.corsepius@rtems.org>
    27
  • c/src/lib/libbsp/i386/pc386/console/console.c

    rb3acedb5 r7699617f  
    140140}
    141141
     142/* provide default that does nothing */
     143extern void
     144BSP_runtime_console_select(int *, int *) __attribute__((weak));
     145
    142146/*-------------------------------------------------------------------------+
    143147| Console device driver INITIALIZE entry point.
     
    186190   */
    187191  rtems_termios_initialize ();
     192
     193  if ( BSP_runtime_console_select )
     194    BSP_runtime_console_select(&BSPPrintkPort, &BSPConsolePort);
    188195
    189196#ifdef RTEMS_RUNTIME_CONSOLE_SELECT
  • c/src/lib/libbsp/i386/pc386/include/bsp.h

    rb3acedb5 r7699617f  
    6161 */
    6262struct rtems_bsdnet_ifconfig;
     63
     64/* app. may provide a routine (called _very_ early) to tell us
     65 * which ports to use for printk / console. BSP provides a default
     66 * implementation (weak alias) which does nothing (use BSP default
     67 * ports).
     68 */
     69extern void
     70BSP_runtime_console_select(int *pPrintkPort, int *pConsolePort);
    6371
    6472extern int rtems_ne_driver_attach(struct rtems_bsdnet_ifconfig *, int);
Note: See TracChangeset for help on using the changeset viewer.