bsplibc.c
来自「RTEMS (Real-Time Executive for Multiproc」· C语言 代码 · 共 39 行
C
39 行
/* * COPYRIGHT (c) 1989-1999. * On-Line Applications Research Corporation (OAR). * * $Id: bsplibc.c,v 1.6 2000/11/01 21:21:25 joel Exp $ */#include <rtems.h>#include <rtems/libio.h>#include <rtems/libcsupport.h>extern rtems_configuration_table BSP_Configuration;void bsp_libc_init( void *heap_start, unsigned32 heap_size, int use_sbrk){ RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk ); /* * Init the RTEMS libio facility to provide UNIX-like system * calls for use by newlib (ie: provide open, close, etc) * Uses malloc() to get area for the iops, so must be after malloc init */ rtems_libio_init(); /* * Set up for the libc handling. */ if ( BSP_Configuration.ticks_per_timeslice > 0 ) libc_init(1); /* reentrant if possible */ else libc_init(0); /* non-reentrant */}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?