forked from Imagelibrary/rtems
* include/bootcard.h, bootcard.c, bsplibc.c: Changed parameter types of bsp_libc_init() to match RTEMS_Malloc_Initialize(). * bsppost.c, bsppredriverhook.c: Include bootcard.h. * src/irq-generic.c: Fixed warnings.
28 lines
643 B
C
28 lines
643 B
C
/*
|
|
* This is a shared BSP post driver hook designed to open
|
|
* /dev/console for stdin, stdout, and stderr if it exists.
|
|
* Newlib will automatically associate the file descriptors
|
|
* with the first thress files opened.
|
|
*
|
|
* COPYRIGHT (c) 1989-2007.
|
|
* On-Line Applications Research Corporation (OAR).
|
|
*
|
|
* The license and distribution terms for this file may be
|
|
* found in the file LICENSE in this distribution or at
|
|
* http://www.rtems.com/license/LICENSE.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
#include <fcntl.h>
|
|
|
|
#include <rtems.h>
|
|
#include <rtems/libcsupport.h>
|
|
|
|
#include <bsp/bootcard.h>
|
|
|
|
void bsp_postdriver_hook(void)
|
|
{
|
|
open_dev_console();
|
|
}
|