Commit Graph

24350 Commits

Author SHA1 Message Date
Ralf Corsépius
d3b0fe0858 Update from automake-1.12.5. 2012-11-21 04:23:42 +01:00
Sebastian Huber
a12f7e98f1 score: Add RTEMS_FATAL_SOURCE_STACK_CHECKER 2012-11-15 15:33:13 +01:00
Sebastian Huber
a0c7aa5555 score: Add RTEMS_FATAL_SOURCE_ASSERT 2012-11-15 15:33:13 +01:00
Sebastian Huber
b1e8a580bc bsps/powerpc: Exception initialization error is fatal 2012-11-15 15:33:13 +01:00
Sebastian Huber
dd8df59413 bsps: Interrupt initialization error is fatal 2012-11-15 15:33:13 +01:00
Sebastian Huber
b9bc399bdd score: Add RTEMS_FATAL_SOURCE_BSP_SPECIFIC 2012-11-15 15:33:13 +01:00
Sebastian Huber
9d10cf904b score: Add RTEMS_FATAL_SOURCE_BSP_GENERIC 2012-11-15 15:33:13 +01:00
Sebastian Huber
a052181ca2 score: Add RTEMS_FATAL_SOURCE_EXIT
Include <bsp/default-initial-extension.h> in all BSPs.  Call
rtems_fatal() with RTEMS_FATAL_SOURCE_EXIT as source and the exit()
status code as fatal code in every bsp_cleanup().  Move previous
bsp_cleanup() code into bsp_fatal_extension().
2012-11-15 15:33:12 +01:00
Sebastian Huber
038e2f4a88 score: Add RTEMS_FATAL_SOURCE_APPLICATION 2012-11-15 15:33:12 +01:00
Sebastian Huber
608940fe08 score: Add RTEMS_FATAL_SOURCE_BDBUF
Add rtems_bdbuf_fatal_code as a replacement for the previous fatal error
codes.  Remove unused error codes.  Add new error codes.  Use
rtems_fatal() with RTEMS_FATAL_SOURCE_BDBUF as source.
2012-11-15 15:33:12 +01:00
Sebastian Huber
156e91e0f2 score: Add RTEMS_FATAL_SOURCE_LAST
This enum value ensures that the enum type needs at least 32-bits for
architectures with short enums.
2012-11-15 15:33:12 +01:00
Sebastian Huber
e2e5b49215 score: Add rtems_fatal() 2012-11-15 15:33:12 +01:00
Sebastian Huber
b31a9603e0 score: Add INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR
Use INTERNAL_ERROR_CPU_ISR_INSTALL_VECTOR on PowerPC for
_CPU_ISR_install_vector().
2012-11-15 15:33:11 +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
7d0bdcac1a score: Add nest level to interal error state
Add Internal_errors_Information::nest_level.  This helps to detect
recursive calls to _Internal_error_Occurred().
2012-11-15 15:33:11 +01:00
Sebastian Huber
891d0d9624 score: Documentation 2012-11-15 15:33:11 +01:00
Sebastian Huber
f48d06a6e1 sptests/spfatal24: Fix NULL pointer access 2012-11-15 15:33:10 +01:00
Sebastian Huber
767b4c12ce bsp/jmr3904: Define bsp_reset()
This is declared in <bsp/bootcard.h> and is the usual function to reset
a board.
2012-11-15 15:33:10 +01:00
Sebastian Huber
db5cb2629b bsps/lm32: Include <bsp/bootcard.h> 2012-11-15 15:33:10 +01:00
Sebastian Huber
12007d06e8 bsps: Include <bspopts.h> in <bsp.h> 2012-11-14 14:42:27 +01:00
Sebastian Huber
dc0eed7b97 testsuites: Include <bsp.h>
Include <bsp.h> for proper BSP specific <rtems/confdefs.h>
initialization.
2012-11-14 14:06:59 +01:00
Sebastian Huber
a3e8ab2a4c bsps/sparc: Define bsp_reset()
This is declared in <bsp/bootcard.h> and is the usual function to reset
a board.
2012-11-14 14:06:59 +01:00
Sebastian Huber
3a1d9c6711 bsps: Include <bsp/bootcard.h>
Use <bsp/bootcard.h> to get prototype for bsp_cleanup().  Fix
bsp_cleanup() definition if necessary.
2012-11-14 14:06:59 +01:00
Sebastian Huber
00dae1866d powerpc: Delete _CPU_Install_interrupt_stack()
This function is only used if CPU_HAS_HARDWARE_INTERRUPT_STACK == TRUE.
2012-11-14 14:06:59 +01:00
Sebastian Huber
8f548cea5f sptests/spintrcritical09: Fix check order
The critical section check never succeeded since watchdogs are ordered
with respect to the insertion time.  Now we call the watchdog routine if
appropriate and bypass the normal watchdog mechanic.
2012-11-13 09:38:03 +01:00
Sebastian Huber
8f1b6cdef5 fstests/fsrfsbitmap01: Fix NULL pointer access
Move test files into one directory.
2012-11-13 09:38:03 +01:00
Sebastian Huber
b5b1f44475 samples/fileio: Add DOSFS and RFS on demand 2012-11-13 09:38:03 +01:00
Sebastian Huber
3c1d387523 Filesystem: Preserve source NULL pointer in mount 2012-11-13 09:38:03 +01:00
Sebastian Huber
0f0db894f7 dosfs: Lazy update of FAT32 FS info sector
The FAT32 FS info sector contains hints for the free cluster count and
the next free cluster.  The previous code read these values during mount
and replaced them with invalid values.  The shutdown operation updated
them with the current values.  These values are only hints.  Every FAT
implementation must cope with arbitrary values.  They are intended to
speed up certain operations.

Now we update the free cluster count and next free culster in the FAT32
FS info sector only during unmount or sync operations and only if the
values have changed.  This avoids writes to the FS info sector and
conforms to the behaviour of Linux and Windows.

The application can force an update of these values now with the fsync()
and fdatasync() operations.  Applications that only read will perform
not write operations to the FAT32 FS info sector.

The new fat_sync() function performs all non-file specific
synchronizations.
2012-11-13 09:38:03 +01:00
Sebastian Huber
886333844e dosfs: Use FAT_UNDEFINED_VALUE 2012-11-13 09:38:03 +01:00
Sebastian Huber
84ff9a471a score: Fix per CPU member offsets
Offset calculation was wrong for 16-bit and 64-bit pointer targets.

Remove unused offsets.  Move Per_CPU_Control::dispatch_necessary after
Per_CPU_Control::isr_nest_level.  Move SMP members to end of structure.
All assembler relevant members are now at the structure beginning.
2012-11-13 09:38:02 +01:00
Sebastian Huber
7121cac0cc bsps/sparc: Add BSP_INITIAL_EXTENSION to <bsp.h>
The bsp_fatal_extension() will call BSP_fatal_return().
2012-11-13 09:38:02 +01:00
Sebastian Huber
38c0b1121f bsps: New file <bsp/default-initial-extension.h> 2012-11-13 09:38:02 +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
44633fd65c sptests/spinternalerror01: New test 2012-11-13 09:37:57 +01:00
Sebastian Huber
ecf9858504 score: Move global variables definition
Define _System_state_Current and _Internal_errors_What_happened in
interr.c to make _Internal_error_Occurred() more independent.
2012-11-13 09:20:57 +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
e5ae7c927c score: Add and use _User_extensions_Iterate()
Replace the separate user extension iterations with a single iteration
function.  This reduces code size and improves maintainability since the
iteration logic is only in one function.  The runtime overhead is
insignificant.
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
Joel Sherrill
602a18440a rtems-message_queue.adb: Formatting 2012-11-07 10:18:47 -06:00
Sebastian Huber
15aaea9769 doc/user: Fix scheduler configuration 2012-11-07 17:09:01 +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
3cd79b0a9b libtests/devfs03: Initialize nodes 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
ed8be1aeea monitor: Add const qualifier 2012-11-07 15:08:46 +01:00
Sebastian Huber
682b819e96 monitor: Avoid unused function 2012-11-07 15:08:45 +01:00
Sebastian Huber
9186fa8dea bsps/sparc: Delete unused symbol declaration 2012-11-07 15:08:45 +01:00
Sebastian Huber
ef5f3598ad sapi: Delete duplicate declarations 2012-11-07 15:08:45 +01:00