| Commit message (Collapse) | Author | Files | Lines |
|
Enable a BSP-specific CPU counter implementation.
Update #4954.
|
|
Add _CPU_Get_TLS_thread_pointer() to get the thread pointer which is
used to get the address of thread-local storage objects associated with
a thread.
Update #4920.
|
|
The embedded brains GmbH & Co. KG is the legal successor of embedded
brains GmbH.
|
|
|
|
Update #3835.
|
|
Directly use "static inline" which is available in C99 and later. This brings
the RTEMS implementation closer to standard C.
Close #3935.
|
|
At some point during system initialization, the idle threads are created.
Afterwards, the boot processor basically executes within the context of an idle
thread with thread dispatching disabled. On some architectures, the
thread-local storage area of the associated thread must be set in dedicated
processor registers. Add the new CPU port function to do this:
void _CPU_Use_thread_local_storage( const Context_Control *context )
Close #4672.
|
|
Updates #3053.
|
|
Move _CPU_Fatal_halt() declaration to <rtems/score/cpuimpl.h> and make sure it
is a proper declaration of a function which does not return. Fix the type of
the error code. If necessary, add the implementation to cpu.c. Implementing
_CPU_Fatal_halt() as a function makes it possible to wrap this function for
example to fully test _Terminate().
|
|
This makes them usable in multiple files.
Update #4458.
|
|
Statically initialize the trap table in start.S to jump to _SPARC_Bad_trap()
for all unexpected traps. This enables a proper RTEMS fatal error handling
right from the start. Do not rely on the stack and register settings which
caused an unexpected trap. Use the ISR stack of the processor to do the fatal
error handling. Save the full context which caused the trap. Fatal error
handler may use it for error logging.
Unify the _CPU_Exception_frame_print() implementations and move it to cpukit.
Update #4459.
|
|
Update #3706.
|
|
|
|
On some architectures/simulators it is difficult to provoke an
exception with misaligned or illegal data loads. Use an illegal
instruction instead.
Update #3433.
|
|
This helps to reduce the use of architecture-specific defines throughout
the code base.
|
|
The context validation support functions _CPU_Context_validate() and
_CPU_Context_volatile_clobber() are used only by one test program
(spcontext01). Move the function declarations to the CPU port
implementation header file.
|
|
A speciality of the RTEMS build system was the make preinstall step. It
copied header files from arbitrary locations into the build tree. The
header files were included via the -Bsome/build/tree/path GCC command
line option.
This has at least seven problems:
* The make preinstall step itself needs time and disk space.
* Errors in header files show up in the build tree copy. This makes it
hard for editors to open the right file to fix the error.
* There is no clear relationship between source and build tree header
files. This makes an audit of the build process difficult.
* The visibility of all header files in the build tree makes it
difficult to enforce API barriers. For example it is discouraged to
use BSP-specifics in the cpukit.
* An introduction of a new build system is difficult.
* Include paths specified by the -B option are system headers. This
may suppress warnings.
* The parallel build had sporadic failures on some hosts.
This patch removes the make preinstall step. All installed header
files are moved to dedicated include directories in the source tree.
Let @RTEMS_CPU@ be the target architecture, e.g. arm, powerpc, sparc,
etc. Let @RTEMS_BSP_FAMILIY@ be a BSP family base directory, e.g.
erc32, imx, qoriq, etc.
The new cpukit include directories are:
* cpukit/include
* cpukit/score/cpu/@RTEMS_CPU@/include
* cpukit/libnetworking
The new BSP include directories are:
* bsps/include
* bsps/@RTEMS_CPU@/include
* bsps/@RTEMS_CPU@/@RTEMS_BSP_FAMILIY@/include
There are build tree include directories for generated files.
The include directory order favours the most general header file, e.g.
it is not possible to override general header files via the include path
order.
The "bootstrap -p" option was removed. The new "bootstrap -H" option
should be used to regenerate the "headers.am" files.
Update #3254.
|
|
The SPARC ABI is a bit special with respect to the floating point context.
The complete floating point context is volatile. Thus, from an ABI point
of view nothing needs to be saved and restored during a context switch.
Instead the floating point context must be saved and restored during
interrupt processing. Historically, the deferred floating point switch was
used for SPARC and the complete floating point context is saved and
restored during a context switch to the new floating point unit owner.
This is a bit dangerous since post-switch actions (e.g. signal handlers)
and context switch extensions may silently corrupt the floating point
context.
The floating point unit is disabled for interrupt handlers. Thus, in case
an interrupt handler uses the floating point unit then this will result in a
trap (INTERNAL_ERROR_ILLEGAL_USE_OF_FLOATING_POINT_UNIT).
In uniprocessor configurations, a lazy floating point context switch is
used. In case an active floating point thread is interrupted (PSR[EF] == 1)
and a thread dispatch is carried out, then this thread is registered as the
floating point owner. When a floating point owner is present during a
context switch, the floating point unit is disabled for the heir thread
(PSR[EF] == 0). The floating point disabled trap checks that the use of the
floating point unit is allowed and saves/restores the floating point context
on demand.
Update #3077.
|
|
Update #2751.
|
|
Move CPU_Interrupt_frame related defines to <rtems/score/cpuimpl.h>.
Update #2809.
|
|
Move CPU_PER_CPU_CONTROL_SIZE and the optional CPU_Per_CPU_control to
<rtems/score/cpuimpl.h> to hide it from <rtems.h>.
|
|
Move _CPU_Get_current_per_CPU_control() from <rtems/score/cpu.h> to
<rtems/score/cpuimpl.h>.
|
|
|
|
The aim of this file is to encapsulate CPU port implementation details.
This helps to hide implementation details from <rtems.h> which
indirectly includes <rtems/score/cpu.h>.
|
|
|
|
|
|
This is a merge of the RTL project.
|
|
|
|
|
|
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.
|
|
* ChangeLog, Makefile.am, acinclude.m4, configure.ac, shared/asm/asm.S,
shared/clock/ckinit.c, shared/console/conscfg.c,
shared/helenos/LICENSE, shared/helenos/README,
shared/helenos/boot/genarch/balloc.c,
shared/helenos/boot/genarch/ofw.c,
shared/helenos/boot/genarch/ofw_tree.c,
shared/helenos/boot/generic/string.c,
shared/helenos/boot/include/align.h,
shared/helenos/boot/include/balloc.h,
shared/helenos/boot/include/gentypes.h,
shared/helenos/boot/include/main.h,
shared/helenos/boot/include/ofw.h,
shared/helenos/boot/include/ofw_tree.h,
shared/helenos/boot/include/ofwarch.h,
shared/helenos/boot/include/register.h,
shared/helenos/boot/include/stack.h,
shared/helenos/boot/include/types.h,
shared/helenos/boot/sparc64/loader/main.c,
shared/helenos/boot/sparc64/loader/ofwarch.c,
shared/helenos/boot/sparc64/loader/ofwasm.S,
shared/helenos/kernel/genarch/include/ofw/ofw_tree.h,
shared/helenos/kernel/generic/include/align.h,
shared/helenos/kernel/sparc64/include/arch.h,
shared/helenos/kernel/sparc64/include/boot.h,
shared/helenos/kernel/sparc64/include/regdef.h,
shared/helenos/kernel/sparc64/include/stack.h,
shared/helenos/kernel/sparc64/include/mm/cache_spec.h,
shared/helenos/kernel/sparc64/include/mm/frame.h,
shared/helenos/kernel/sparc64/include/mm/mmu.h,
shared/helenos/kernel/sparc64/include/mm/page.h,
shared/helenos/kernel/sparc64/include/mm/tlb.h,
shared/helenos/kernel/sparc64/include/mm/tte.h,
shared/helenos/kernel/sparc64/include/mm/sun4u/frame.h,
shared/helenos/kernel/sparc64/include/mm/sun4u/mmu.h,
shared/helenos/kernel/sparc64/include/mm/sun4u/page.h,
shared/helenos/kernel/sparc64/include/mm/sun4u/tlb.h,
shared/helenos/kernel/sparc64/include/mm/sun4u/tte.h,
shared/helenos/kernel/sparc64/include/sun4u/arch.h,
shared/helenos/kernel/sparc64/src/cache.S,
shared/helenos/kernel/sparc64/src/sun4u/takemmu.S,
shared/include/asm.h, shared/include/traptable.h,
shared/start/start.S, shared/start/trap_table.S,
shared/startup/bspgetworkarea.c, shared/startup/bspstart.c,
shared/startup/linkcmds, shared/startup/setvec.c: New files.
|