Commit Graph
28437 Commits
Author SHA1 Message Date
Alex Ivanov 355ee7dbd5 score misc: Clean up Doxygen #3 (GCI 2012)
This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7982215
2012-11-28 13:57:31 -06:00
Christopher Kerl d4d7899bb2 score misc: Clean up Doxygen #2 (GCI 2012)
This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.

http://www.google-melange.com/gci/task/view/google/gci2012/7986213
2012-11-28 13:31:53 -06:00
Alex Ivanov f7f1d776de score misc: Clean up Doxygen (GCI 2012)
This patch is a task from GCI 2012 which improves the Doxygen
comments in the RTEMS source.
https://google-melange.appspot.com/gci/task/view/google/gci2012/7978208
2012-11-28 08:17:26 -06: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 d2202ac56d powerpc: Add CPU_Exception_frame
The powerpc port uses now a unified CPU_Exception_frame.  This resulted
in a CPU_Exception_frame layout change for the MPC5XX.
2012-11-27 17:03:40 +01:00
Sebastian Huber f0e3cc0a0a bsps/powerpc: Delete unused EXC_DAR field
The Data Access Register (DAR) is not saved in the exception prologue.
2012-11-27 17:03:40 +01:00
Sebastian Huber 7b02f3c6f1 bsps/powerpc: Delete unused EXC_MSR field
The MSR of the interrupted context is saved in the EXC_SRR1 field.
2012-11-27 17:03:40 +01:00
Joel Sherrill d82a931f14 psxtmtests_plan.csv: Identify Conditional Variable Cases 2012-11-25 18:53:39 -06:00
Sebastian Huber 39aa75e745 bsps: Use RTEMS_BSP_CLEANUP_OPTIONS 2012-11-25 17:45:29 +01:00
Sebastian Huber acec386c75 Filesystem: PR1619: Use ENOSYS for default statvfs
POSIX does not specify an error number in case the file system does not
support this call.  Use the Linux value.
2012-11-22 17:33:13 +01:00
Sebastian Huber f1738ed619 score: PR1607: Add and use CPU_SIZEOF_POINTER
Add and use new CPU port define CPU_SIZEOF_POINTER.  It must be an
integer literal that can be used by the assembler.  This value will be
used to calculate offsets of structure members.  These offsets will be
used in assembler code.

The size of a pointer is part of the application binary interface (ABI)
and thus independent of the actual programming language.  The compiler
will provide defines to determine the current ABI.  We use these defines
to select the appropriate CPU_SIZEOF_POINTER value.

Static assertions in the new file "cpukit/score/src/percpuasm.c" will
ensure that the value of CPU_SIZEOF_POINTER is consistent with the
current compiler settings.  Also the offset values used by assembler
code are verfied.
2012-11-22 16:35:07 +01:00
Sebastian Huber 74d22fd1a9 score: Inline _API_extensions_Run_postswitch()
The _API_extensions_Run_postswitch() function is only used in
_Thread_Dispatch().   Avoid superfluous load of _Thread_Executing.
2012-11-22 16:35:07 +01:00
Sebastian Huber 32b2c83d00 score: Inline _User_extensions_Thread_switch()
The _User_extensions_Thread_switch() function is only used in
_Thread_Dispatch().
2012-11-22 16:35:07 +01:00
Sebastian Huber 3be0c9afa3 score: Add and use <rtems/score/userextimpl.h>
This file contains the parts of <rtems/score/userext.h> that are only
necessary for the RTEMS implementation.
2012-11-22 16:35:07 +01:00
Sebastian Huber 67a9159e57 score: Avoid superfluous loads 2012-11-22 16:35:06 +01:00
Sebastian Huber 1906a36a86 score: Change _Internal_error_Occurred()
Call the fatal handlers of the user extensions before the update of
_Internal_errors_What_happened.  This reduces the requirements on the
execution context further.  Now a valid read-write data is only required
after the call to the fatal handlers.
2012-11-22 16:35:06 +01:00
Sebastian Huber e5a2249a49 score: Delete nest level from internal error state
This reverts commit 7d0bdcac1a.
2012-11-22 16:35:06 +01:00
Sebastian Huber 82eb2c4d5f ftpfs: Fix NULL pointer access 2012-11-22 16:35:06 +01:00
Sebastian Huber f5d02852ed m68k/mrm332: Delete _Internal_error_Occurred()
Use custom bsp_fatal_extension() instead.
2012-11-22 16:35:06 +01:00
Sebastian Huber 86d80f02b6 m68k/mvme167: Delete bsp_fatal_error_occurred() 2012-11-22 16:35:05 +01:00
Sebastian Huber 0268adb3dd fstests/fsfseeko01: Add test cases 2012-11-22 16:35:05 +01:00
Sebastian Huber fe0f24ea39 ftpfs: Use SIZE command 2012-11-21 16:38:34 +01:00
Sebastian Huber ad5e0708a2 ftpfs: Open control connection during path eval 2012-11-21 16:38:34 +01:00
Sebastian Huber be6f505df7 ftpfs: Format 2012-11-21 16:38:34 +01:00
Sebastian Huber 55a36b724c ftpd: Add SIZE command 2012-11-21 16:38:34 +01:00
Sebastian Huber c1e350ca90 sptests/spcbssched02: PR2081: Workaround
Avoid uninitialized stack variable.  This is not a proper fix.  It is
not clear what the task should do if argument != 1.
2012-11-21 16:38:34 +01:00
Sebastian Huber f4539aa395 arm: Add _CPU_Thread_Idle_body for ARMv7-M 2012-11-21 16:38:34 +01:00
Sebastian Huber 7e32b62a59 score: Add RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION
Add ppc_exc_print_frame_and_context() which prints an exception frame
and the context via printk().

The global exception handler will call now rtems_fatal() with source
RTEMS_FATAL_SOURCE_POWERPC_EXCEPTION.  The fatal code will contain the
pointer value to the exception frame.
2012-11-21 16:38:28 +01:00
Sebastian Huber 3fbcadfbf7 libnetworking: Use rtems_clock_get_uptime_seconds
This reduces the start-up time of the network stack.

With a 1ms tick the ticks since boot value overflows after approximately
50 days.  This problem is avoided with the
rtems_clock_get_uptime_seconds() function.
2012-11-21 16:29:41 +01:00
Sebastian Huber 94eb1bb342 libnetworking: Use rtems_clock_get_uptime_timeval 2012-11-21 16:29:41 +01:00
Sebastian Huber 90733a86b8 rtems: Add rtems_clock_get_uptime_seconds() 2012-11-21 16:29:40 +01:00
Sebastian Huber bfddb0478c rtems: Add rtems_clock_get_uptime_timeval() 2012-11-21 16:29:36 +01:00
Sebastian Huber 62181b21c2 score: Add and use _TOD_Get_with_nanoseconds()
Delete _TOD_Get_as_timestamp().
2012-11-21 16:24:22 +01:00
Sebastian Huber 154721c434 score: Add _Timestamp_To_timeval() 2012-11-21 16:24:22 +01:00
Sebastian Huber 7ca64d69fa bsp/mpc55xx: Update due to API changes 2012-11-21 16:24:22 +01:00
Sebastian Huber 7f23eadb47 powerpc: Add more BUCSR register values 2012-11-21 16:24:22 +01:00
Sebastian Huber 5adf02e575 monitor: Typo 2012-11-21 16:24:21 +01:00
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