| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
Updates #3053.
|
| |
|
|
|
|
|
| |
Add _ISR_lock_Set_name() to optimize the initialization of
zero-initialized locks.
|
| |
|
|
|
|
| |
Ensure that interrupts are disabled while acquiring an ISR lock.
|
|
|
|
|
|
|
| |
In case the robust thread dispatch is enabled by the CPU port, then the
interrupt level must not be changed through the task mode.
Update #3000.
|
|
|
|
| |
Update #3533.
|
|
|
|
|
|
|
|
| |
The TEST_EXTERN is a used only by the system.h style tests and they use
CONFIGURE_INIT appropriately.
Update #3170.
Update #3199.
|
|
|
|
|
|
|
|
|
|
| |
- Remove the printf support leaving the direct printk support configured
with TESTS_USE_PRINTK and all other output goes via a buffered vsniprintf
call to printk.
- Control the test's single init for functions and global data with
TEST_INIT and not CONFIGURE_INIT. They are now separate.
Updates #3170.
|
|
|
|
|
|
|
| |
In contrast to _ISR_Get_level() the _ISR_Is_enabled() function evaluates
a level parameter and returns a boolean value.
Update #2811.
|
| |
|
|
|
|
|
|
|
|
|
| |
Replace _Thread_Disable_dispatch() with _Thread_Dispatch_disable().
Replace _Thread_Enable_dispatch() with _Thread_Dispatch_enable().
This is a preparation to remove the Giant lock.
Update #2555.
|
| |
|
|
|
|
| |
This avoids a test failure on ARMv7-M targets.
|
|
|
|
| |
The problem is that empty structures have a different size in C and C++.
|
|
|
|
|
|
|
|
| |
Add rtems_interrupt_local_disable|enable() as suggested by Pavel Pisa to
emphasize that interrupts are only disabled on the current processor.
Do not define the rtems_interrupt_disable|enable|flash() macros and
functions on SMP configurations since they don't ensure system wide
mutual exclusion.
|
| |
|
|
|
|
| |
Update #2307.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Empty structures are implementation-defined in C. GCC gives them a size
of zero. In C++ empty structures have a non-zero size.
Add ISR_LOCK_DEFINE() to define ISR locks for structures used by C and
C++.
Update #2273.
|
|
|
|
|
| |
Add rtems_clock_tick_later(), rtems_clock_tick_later_usec() and
rtems_clock_tick_before().
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Add a local context structure to the SMP lock API for acquire and
release pairs. This context can be used to store the ISR level and
profiling information. It may be later used to enable more
sophisticated lock algorithms, e.g. MCS locks.
There is only one lock that cannot be used with a local context. This
is the per-CPU lock since here we would have to transfer the local
context through a context switch which is very complicated.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add and use _ISR_Disable_without_giant() and
_ISR_Enable_without_giant() if RTEMS_SMP is defined.
On single processor systems the ISR disable/enable was the big hammer
which ensured system-wide mutual exclusion. On SMP configurations this
no longer works since other processors do not care about disabled
interrupts on this processor and continue to execute freely.
On SMP in addition to ISR disable/enable an SMP lock must be used.
Currently we have only the Giant lock so we can check easily that ISR
disable/enable is used only in the right context.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use a per-CPU thread dispatch disable level. So instead of one global
thread dispatch disable level we have now one instance per processor.
This is a major performance improvement for SMP. On non-SMP
configurations this may simplifiy the interrupt entry/exit code.
The giant lock is still present, but it is now decoupled from the thread
dispatching in _Thread_Dispatch(), _Thread_Handler(),
_Thread_Restart_self() and the interrupt entry/exit. Access to the
giant lock is now available via _Giant_Acquire() and _Giant_Release().
The giant lock is still implicitly acquired via
_Thread_Dispatch_decrement_disable_level().
The giant lock is only acquired for high-level operations in interrupt
handlers (e.g. release of a semaphore, sending of an event).
As a side-effect this change fixes the lost thread dispatch necessary
indication bug in _Thread_Dispatch().
A per-CPU thread dispatch disable level greatly simplifies the SMP
support for the interrupt entry/exit code since no spin locks have to be
acquired in this area. It is only necessary to get the current
processor index and use this to calculate the address of the own per-CPU
control. This reduces the interrupt latency considerably.
All elements for the interrupt entry/exit code are now part of the
Per_CPU_Control structure: thread dispatch disable level, ISR nest level
and thread dispatch necessary. Nothing else is required (except CPU
port specific stuff like on SPARC).
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
ISR locks are low-level locks to protect critical sections accessed by
threads and interrupt service routines.
On single processor configurations the ISR locks degrade to simple ISR
disable/enable sequences. No additional storage or objects are
required.
This synchronization primitive is supported on SMP configurations. Here
SMP locks are used.
|
| |
|
| |
|
|
|
|
|
| |
Interrupt locks are low-level lock to protect critical sections accessed
by threads and interrupt service routines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This PR was about a warning for no previous prototype for
rtems_interrupt_level_attribute. This method exists (like
a few others) to have real bodies for Classic API services
implemented as macros. These macros are not available from
anything but C and C++. The most explicit use was in the Ada
binding but these would be needed from assembly language
or any other non-C based language.
On top of needing a prototype, the methods were misnamed.
They were related to modes. This renames them, moves the
file, fixes test code, etc.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sp04/tswitch.c, sp07/task1.c, sp07/task2.c, sp09/screen07.c,
sp11/task1.c, sp11/task2.c, sp12/pridrv.c, sp12/pritask.c,
sp13/task1.c, sp14/asr.c, sp14/task1.c, sp19/first.c, sp19/fptask.c,
sp19/inttest.h, sp19/task1.c, sp20/task1.c, sp25/task1.c,
sp26/task1.c, sp28/init.c, sp29/init.c, sp31/task1.c, sp32/init.c,
sp33/init.c, sp34/changepri.c, sp36/strict_order_mut.c, sp37/init.c,
sp43/init.c, sp44/init.c, sp48/init.c, sp54/init.c, sp59/init.c,
sp65/init.c, sp68/init.c, spchain/init.c, spclockget/init.c,
spfatal03/testcase.h, spfatal07/testcase.h, spfatal_support/init.c:
Do not line length exceed 80 columns.
|
| |
|
| |
|
|
|
|
|
|
| |
* sp37/init.c: Add local prototypes for
rtems_interrupt_disable, rtems_interrupt_enable,
rtems_interrupt_flash, rtems_interrupt_is_in_progress.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sp04/system.h, sp04/task1.c, sp04/tswitch.c, sp07/init.c,
sp12/init.c, sp13/putbuff.c, sp13/system.h, sp13/task1.c,
sp15/init.c, sp16/system.h, sp19/fptask.c, sp25/system.h,
sp26/task1.c, sp27/init.c, sp28/init.c, sp29/init.c, sp31/task1.c,
sp33/init.c, sp34/changepri.c, sp35/priinv.c, sp37/init.c,
sp38/init.c, sp39/init.c, sp41/init.c, sp42/init.c, sp43/init.c,
sp44/init.c, sp45/init.c, sp46/init.c, sp47/init.c, sp48/init.c,
spfatal03/testcase.h, spfatal05/testcase.h, spfatal06/testcase.h,
spfatal_support/system.h, spobjgetnext/init.c, spsize/getint.c,
spsize/size.c: Fix warnings.
|
|
|
|
|
| |
* sp37/init.c, sp37/sp37.scn: Add test case for
rtems_interrupt_level_attribute body.
|
| |
|
|
|
|
|
|
|
| |
* sp28/init.c: Corrections to configuration.
* sp37/init.c: Correctly invoke rtems_interrupt_disable() body.
* spsize/size.c: _ISR_Vector_table only exists on architectures
which use the Simple Vectored Interrupt Model.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sp01/init.c, sp02/init.c, sp03/init.c, sp04/init.c, sp05/init.c,
sp06/init.c, sp07/init.c, sp08/init.c, sp09/init.c, sp11/init.c,
sp12/init.c, sp13/init.c, sp14/init.c, sp15/init.c, sp16/init.c,
sp17/init.c, sp19/init.c, sp20/init.c, sp21/init.c, sp22/init.c,
sp23/init.c, sp24/init.c, sp25/init.c, sp26/init.c, sp28/init.c,
sp30/init.c, sp31/init.c, sp32/init.c, sp33/init.c, sp37/init.c,
sp38/init.c, sp39/init.c, sp40/init.c, sp41/init.c, sp43/init.c,
spfatal/init.c, spfatal_support/init.c, spsize/init.c: Change
TEST_INIT to CONFIGURE_INIT. Make tmacros.h available to all POSIX
tests. Add a clock_settime case for < 1988.
|