Commit Graph

312 Commits

Author SHA1 Message Date
Sebastian Huber
6c2eedc7dd smp: Add maximum_processors field to config
Delete rtems_configuration_get_smp_maximum_processors().  Delete
rtems_configuration_smp_maximum_processors variable.  Add
maximum_processors field to rtems_configuration_table if RTEMS_SMP is
defined.  Add rtems_configuration_get_maximum_processors().
2013-05-16 11:44:12 +02:00
Sebastian Huber
b7cf1ff717 libcsupport: Delete libc_wrapup()
Add and use rtems_libio_exit_helper.  Add rtems_libio_exit().

The fclose(stdin) etc. makes no sense during exit.  This would use the
_REENT structure of the thread calling _exit().
2013-04-26 10:57:08 +02:00
Sebastian Huber
5fa0e5c5ec libcsupport: Rename open_dev_console()
Rename open_dev_console() to rtems_libio_post_driver().  Rename
rtems_libio_supp_helper to rtems_libio_post_driver_helper.
2013-04-26 10:57:08 +02:00
Sebastian Huber
a290fbe946 libcsupport: Make LibIO helper const
Add and use rtems_libio_helper function type.  Add and use
rtems_libio_helper_null() instead of NULL pointer.
2013-04-26 10:57:08 +02:00
Sebastian Huber
dc76d98a53 sapi: Fix unified workspace option 2013-04-11 13:57:10 +02:00
Joel Sherrill
6784547afd confdefs.h: Only one clock or timer configuration parameter can be defined
Only one of the following can be defined.

+ CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
+ CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
+ CONFIGURE_APPLICATION_NEEDS_TIMER_DRIVER

Otherwise it is a configuration error which can be detected at
compilation time.
2013-04-09 13:15:40 -05:00
Joel Sherrill
92b33b8d09 confdefs.h: Eliminate BSP_DEFAULT_UNIFIED_WORK_AREAS
This was not used by any BSP and obsolete now that unified memory
is an option for all BSPs.
2013-04-09 13:15:39 -05:00
Sebastian Huber
7571a235c5 sapi: PR1911: Add CONFIGURE_DISABLE_BSP_SETTINGS 2013-02-12 09:31:27 +01:00
Sebastian Huber
68f36d144a score: Add and use rtems_assert_context 2013-02-12 09:31:27 +01:00
Joel Sherrill
b697bc6a44 cpukit: Use Consistent Beginning of Doxygen Group Notation
This is the result of a sed script which converts all uses
of @{ into a consistent form.
2013-01-10 17:06:47 -06:00
Joel Sherrill
a15eaaf9fd cpukit: Doxygen group fixes and many warnings addressed
The output of the modules.html is much improved. Most
filesystem and POSIX API related groups are properly nested.
Some formatting issues were addressed as were multiple
inconsistencies.
2013-01-10 17:06:47 -06:00
Sebastian Huber
e82fcb44d5 sapi: Documentation 2013-01-09 20:42:58 +01:00
Alex Ivanov
27f071cd88 sapi: Doxygen Clean Up Task #1 2013-01-08 07:13:41 -06:00
Sebastian Huber
f2f39b62a2 sapi: Add rtems_fatal_source_description() 2013-01-07 16:08:19 +01:00
Alex Ivanov
3cf4031c19 Header File Doxygen Enhancement Task #1 2012-12-28 17:48:12 -06:00
Mathew Kallada
c5782a26b3 Header File Doxygen Enhancement Task #7 2012-12-28 11:17:49 -06:00
Mathew Kallada
9ab091e1e4 Header File Doxygen Enhancement Task #2 2012-12-28 10:36:55 -06:00
Alex Ivanov
11109ea227 libfs: Doxygen Enhancement Task #2
http://www.google-melange.com/gci/task/view/google/gci2012/8032207
2012-12-18 15:46:38 -05:00
Mathew Kallada
c2ae79e93c misc: Header File Doxygen Enhancement Task #3
http://www.google-melange.com/gci/task/view/google/gci2012/8006220
2012-12-12 15:57:49 -05:00
Sebastian Huber
e12f5acf23 sapi: Fix previous commit 2012-12-09 14:12:46 +01:00
Sebastian Huber
50dd75a4eb sapi: Revert documentation change 2012-12-09 14:06:56 +01:00
Christopher Kerl
4c98a3ea29 sapi misc: Clean up Doxygen GCI task #1
http://www.google-melange.com/gci/task/view/google/gci2012/8011204
2012-12-07 09:49:54 -05:00
Sebastian Huber
48bff53b3d score: rtems_initialize_start_multitasking()
Do not return from rtems_initialize_start_multitasking() and call
rtems_fatal() instead with a fatal source of RTEMS_FATAL_SOURCE_EXIT and
a fatal code with the exit status.

Remove all bsp_cleanup() functions.  The boot_card() is now a no return
function.
2012-12-07 09:38:41 +01:00
Sebastian Huber
f9340ed7f4 posix: Add and use <rtems/posix/psignalimpl.h>
This file contains the parts of <rtems/posix/psignal.h> that are only
necessary for the POSIX API implementation.
2012-12-05 18:07:05 +01:00
Sebastian Huber
815994fd17 score: Add CPU_Exception_frame
Add CPU port type CPU_Exception_frame and function
_CPU_Exception_frame_print().

The CPU ports of avr, bfin, h8300, lm32, m32c, m32r, m68k, nios2, sh,
sparc64, and v850 use an empty default implementation of
_CPU_Exception_frame_print().

Add rtems_exception_frame and rtems_exception_frame_print().

Add RTEMS_FATAL_SOURCE_EXCEPTION for CPU exceptions.  Use rtems_fatal()
with source RTEMS_FATAL_SOURCE_EXCEPTION in CPU ports of i386, powerpc,
and sparc for unexpected exceptions.

Add third parameter to RTEMS_BSP_CLEANUP_OPTIONS() which controls the
BSP_PRINT_EXCEPTION_CONTEXT define used in the default
bsp_fatal_extension().

Add test sptests/spfatal26.
2012-11-27 17:03:40 +01:00
Sebastian Huber
e2e5b49215 score: Add rtems_fatal() 2012-11-15 15:33:12 +01:00
Sebastian Huber
dc6e830c10 sapi: Add and use rtems_internal_error_description 2012-11-15 15:33:11 +01:00
Sebastian Huber
e4b40531f3 sapi: Add rtems_fatal_source and rtems_fatal_code 2012-11-15 15:33:11 +01:00
Sebastian Huber
228df42204 sapi: Add BSP_INITIAL_EXTENSION to confdefs.h
A BSP can supply an initial extension via the new optional
BSP_INITIAL_EXTENSION define.  It will be the last in the initial
extension table.
2012-11-13 09:38:02 +01:00
Sebastian Huber
466cf31d81 score: Statically initialize user extensions
The initial extensions remain now in a read-only table and will not be
copied to work space memory.  The extension chains are statically
initialized.  This makes it possible to call _User_extensions_Iterate()
independent of the system state.  It is now guaranteed that the fatal
callout of the initial extensions will be called provided the stack
pointer, the read-only data, and code memory are valid.
2012-11-13 09:20:57 +01:00
Sebastian Huber
9ed2befb6b score: Add and use RTEMS_ARRAY_SIZE() 2012-11-13 09:20:57 +01:00
Sebastian Huber
2195fd27a7 sapi: Make initial user extensions table read-only 2012-11-07 15:19:21 +01:00
Sebastian Huber
b59675438e sapi: Fix user scheduler configuration
The comment in confdefs.h shows how to do it:

An application can define its own scheduling policy by defining
CONFIGURE_SCHEDULER_USER and the following:
   - CONFIGURE_SCHEDULER_ENTRY_POINTS
   - CONFIGURE_MEMORY_FOR_SCHEDULER - base memory
   - CONFIGURE_MEMORY_PER_TASK_FOR_SCHEDULER - per task memory
2012-11-07 15:19:20 +01:00
Sebastian Huber
ae4f125e86 sapi: Make Configuration read-only
The Configuration is now read-only and must be statically initialized
via confdefs.h or similar.
2012-11-07 15:08:46 +01:00
Sebastian Huber
ef5f3598ad sapi: Delete duplicate declarations 2012-11-07 15:08:45 +01:00
Sebastian Huber
e39fa07cec sapi: Delete unused macros
Delete rtems_configuration_get_table(),
rtems_configuration_set_stack_space_size(),
rtems_configuration_set_work_space_size(), and
rtems_configuration_set_microseconds_per_tick().
2012-11-07 15:08:45 +01:00
Sebastian Huber
c53b330c94 sapi: Use rtems_configuration_get_maximum_drivers 2012-11-07 15:08:43 +01:00
Sebastian Huber
47a3cd8f73 score: Work area initialization API change
The work areas (RTEMS work space and C program heap) will be initialized
now in a separate step and are no longer part of
rtems_initialize_data_structures().  Initialization is performed with
tables of Heap_Area entries.  This allows usage of scattered memory
areas present on various small scale micro-controllers.

The sbrk() support API changes also.  The bsp_sbrk_init() must now deal
with a minimum size for the first memory chunk to take the configured
work space size into account.
2012-10-25 14:54:06 +02:00
Ralf Corsépius
fd7161017b Cleanup Krzysztof's copyright notices. 2012-10-11 18:25:03 +02:00
Krzysztof Mięsowicz
a6eaa5489c timespec helpers: Add wrappers with new test 2012-08-29 07:38:54 -05:00
Sebastian Huber
50fc8f65a6 sapi: Add nanoseconds_per_tick to configuration
Add nanoseconds_per_tick to rtems_configuration_table.  This value will
be derived from the microseconds_per_tick value.  This avoids some
calculations at run-time.
2012-06-14 14:20:30 +02:00
Sebastian Huber
39ee704e75 libblock: Add read-ahead task
Read-ahead requests were previously executed in the context of the
reading task.  This blocks the reading task until the complete read
with read-ahead transfer is finished.  A read-ahead task is introduced
to off-load the read-ahead transfer.  This allows the reading task to
work with the requested block more quickly.  The read-ahead is triggered
after two misses of ascending consecutive blocks or a read hit of a
block read by the most-recent read-ahead transfer.  The read-ahead
feature is configurable and can be disabled.
2012-06-04 09:54:31 +02:00
Sebastian Huber
b6911069d4 libblock: Add task stack size bdbuf configuration
The task stack size for the swap-out and worker tasks is now
configurable.  The bdbuf task resources are now included in the work
space size estimate.
2012-05-31 11:05:48 +02:00
Joel Sherrill
9b4422a251 Remove All CVS Id Strings Possible Using a Script
Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines
  next to each other after Id string line removed.
+ remove entire comment blocks which only exited to
  contain CVS Ids
+ If the processing left a blank line at the top of
  a file, it was removed.
2012-05-11 08:44:13 -05:00
Sebastian Huber
5a4bb758c0 Filesystem: Remove per file descriptor semaphore
The per file descriptor semaphore (field of rtems_libio_t) is unused in
RTEMS.  There is a considerable memory overhead due to that.  A
semaphore needs roughly 124 bytes which is huge compared to the
approximately 72 bytes for the file descriptor structure itself.  Device
drivers can create their own synchronization primitives in the open
handler on demand.
2012-05-04 10:53:51 +02:00
Sebastian Huber
5c51ba1333 rbheap: API changes and documentation 2012-04-18 12:18:11 +02:00
Sebastian Huber
8c6608bd1b rbtree: PR2046: Replace rtems_rbtree_unique 2012-04-13 09:14:18 +02:00
Sebastian Huber
5eb434e67e score: New macros and functions
New macros
  o _Objects_Maximum_per_allocation(),
  o rtems_resource_is_unlimited(), and
  o rtems_resource_maximum_per_allocation().

New function
  o _Objects_Is_unlimited().
2012-04-11 15:24:39 +02:00
Sebastian Huber
e75263083e rbheap: New files
In the Red-Black Tree Heap the administration data structures are not
contained in the managed memory area.  This can be used for example in a
task stack allocator which protects the task stacks from access by other
tasks.
2012-04-11 11:24:19 +02:00
Gedare Bloom
e53aae2676 confdefs: Add declaration for unlimited objects.
Adds to confdefs a way to specify rtems_resource_unlimited for classic and
posix objects using a new macro CONFIGURE_OBJECTS_UNLIMITED.
Use CONFIGURE_OBJECTS_ALLOCATION_SIZE to declare the allocation size for
extending the set of objects at runtime. Updates the unlimited sample
to demonstrate how to use the new macros. Also adds new documentation in
the C User's Manual regarding configuring with unlimited objects.
2012-03-27 19:51:31 -04:00