4.104.114.84.95
Last change
on this file since 08b5f55 was
07a3253d,
checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 19:07:58
|
Added base version of file system infrastructure. This includes a major
overhaul of the RTEMS system call interface. This base file system is
the "In-Memory File System" aka IMFS.
The design and implementation was done by the following people:
+ Joel Sherrill (joel@…)
+ Jennifer Averett (jennifer@…)
+ Steve "Mr Mount" Salitasc (salitasc@…)
+ Kerwin Wade (wade@…)
PROBLEMS
========
+ It is VERY likely that merging this will break the UNIX port. This
can/will be fixed.
+ There is likely some reentrancy/mutual exclusion needed.
+ Eventually, there should be a "mini-IMFS" description table to
eliminate links, symlinks, etc to save memory. All you need to
have "classic RTEMS" functionality is technically directories
and device IO. All the rest could be left out to save memory.
|
-
Property mode set to
100644
|
File size:
921 bytes
|
Rev | Line | |
---|
[c0daf807] | 1 | /* |
---|
| 2 | * COPYRIGHT (c) 1989-1998. |
---|
| 3 | * On-Line Applications Research Corporation (OAR). |
---|
| 4 | * Copyright assigned to U.S. Government, 1994. |
---|
| 5 | * |
---|
| 6 | * $Id$ |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include <rtems.h> |
---|
[6b52fe5] | 10 | #include <rtems/libio.h> |
---|
[c0daf807] | 11 | #include <libcsupport.h> |
---|
| 12 | |
---|
| 13 | extern rtems_configuration_table BSP_Configuration; |
---|
| 14 | |
---|
| 15 | void bsp_libc_init( |
---|
| 16 | void *heap_start, |
---|
| 17 | unsigned32 heap_size, |
---|
| 18 | int use_sbrk |
---|
| 19 | ) |
---|
| 20 | { |
---|
| 21 | RTEMS_Malloc_Initialize( heap_start, heap_size, use_sbrk); |
---|
| 22 | |
---|
| 23 | /* |
---|
| 24 | * Init the RTEMS libio facility to provide UNIX-like system |
---|
[07a3253d] | 25 | * calls for use by newlib (ie: provide open, close, etc) |
---|
[c0daf807] | 26 | * Uses malloc() to get area for the iops, so must be after malloc init |
---|
| 27 | */ |
---|
| 28 | |
---|
| 29 | rtems_libio_init(); |
---|
| 30 | |
---|
| 31 | /* |
---|
| 32 | * Set up for the libc handling. |
---|
| 33 | */ |
---|
| 34 | |
---|
| 35 | if (BSP_Configuration.ticks_per_timeslice > 0) |
---|
| 36 | libc_init(1); /* reentrant if possible */ |
---|
| 37 | else |
---|
| 38 | libc_init(0); /* non-reentrant */ |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.