| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
PR 1462/cpukit
* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c: Fine
tune previous patch after analysis in application.
|
|
|
|
|
|
| |
PR pr1462/cpukit
* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c,
rtems/src/ratemontimeout.c: Fix bugs in rate monotonic statistics.
|
|
|
|
|
|
|
|
|
| |
PR 1415/cpukit
* rtems/src/semcreate.c, rtems/src/semtranslatereturncode.c,
score/include/rtems/score/coremutex.h,
score/inline/rtems/score/coremutex.inl, score/src/coremutex.c:
Address two paths where a task with a priority above the ceiling
could obtain a priority ceiling mutex.
|
|
|
|
|
|
| |
PR 1413/cpukit
* rtems/src/timerserver.c: Fix bug where server based timers which
reinitiated themselves did not get reinserted onto timer chain.
|
|
|
|
|
|
|
| |
PR 1411/cpukit
* rtems/src/workspace.c, score/include/rtems/score/protectedheap.h,
score/src/pheapgetfreeinfo.c, score/src/pheapgetinfo.c: Improve
workspace wrapper methods.
|
|
|
|
|
|
|
| |
PR 1388/cpukit
* rtems/src/semcreate.c: Classic Semaphores allow both priority inherit
and ceiling attributes to be set on semaphore create. These
attributes are mutually exclusive and this should be an error.
|
|
|
|
|
|
|
| |
Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1357/cpukit
* rtems/src/tasks.c: Ensure creating a task with no ASR is honored.
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/clock.h: #include <sys/time.h>
* librpc/include/rpc/rpcent.h: #include <rpc/types.h>.
* librpc/include/rpc/xdr.h: #include <rtems/bsd/sys/cdefs.h>.
|
|
|
|
|
|
| |
PR 1348/cpukit
* rtems/src/ratemonperiod.c: Properly handle period statistics after
cpu usage information is reset while a period is running.
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1347/cpukit
* rtems/include/rtems/rtems/timer.h, rtems/src/rtemstimer.c,
rtems/src/timerreset.c, rtems/src/timerserver.c,
rtems/src/timerserverfireafter.c, rtems/src/timerserverfirewhen.c,
score/Makefile.am, score/include/rtems/score/watchdog.h: Rework Timer
Server to ensure that the context allows for blocking, allocating
memory, and acquiring semaphores and mutexes.
* score/src/watchdogadjusttochain.c: New file.
|
|
|
|
|
|
| |
PR 1346/cpukit
* rtems/include/rtems/rtems/ratemon.h: Sense of rate monotonic
statistics nanoseconds or ticks granularity conditional is backwards.
|
|
|
|
| |
RTEMS_DEPRECATED_TYPES is given.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/include/rtems/libio_.h, libcsupport/src/libio_sockets.c,
libfs/src/dosfs/fat.h, libfs/src/dosfs/msdos.h,
libfs/src/imfs/deviceio.c, libmisc/monitor/mon-monitor.c,
libmisc/monitor/mon-object.c, libmisc/monitor/mon-symbols.c,
libmisc/monitor/monitor.h, libmisc/stackchk/internal.h,
rtems/inline/rtems/rtems/part.inl, score/include/rtems/system.h,
score/include/rtems/score/bitfield.h, score/src/mpci.c,
score/src/objectextendinformation.c, score/src/threadmp.c: Remove
extraneous spaces.
|
|
|
|
|
|
|
| |
* rtems/src/msgmp.c, rtems/src/msgqtranslatereturncode.c,
rtems/src/semmp.c, rtems/src/semtranslatereturncode.c: Correct
confusion over SuperCore proxy blocking status and Classic API proxy
blocking status constants.
|
| |
|
|
|
|
|
| |
* posix/Makefile.am, rtems/src/tasksetpriority.c: Improve comments and
wrapping.
|
|
|
|
|
|
| |
* libcsupport/src/error.c, libmisc/dummy/dummy.c,
rtems/src/rtemsobjectgetapiclassname.c,
rtems/src/rtemsobjectgetapiname.c: Add 0 for missing initializers.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/task.h, itron/src/def_cyc.c,
itron/src/task.c, libcsupport/src/newlibc_exit.c,
libcsupport/src/sync.c, libfs/src/imfs/imfs_fchmod.c,
posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
posix/src/sysconf.c, rtems/include/rtems/rtems/tasks.h,
rtems/src/tasks.c, score/include/rtems/score/stack.h,
score/inline/rtems/score/stack.inl,
score/inline/rtems/score/thread.inl, score/src/threadhandler.c: Fix
various nested-externs warnings.
|
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/ratemon.h,
rtems/include/rtems/rtems/status.h,
score/include/rtems/score/coremutex.h,
score/include/rtems/score/object.h: Removed extraneous commas.
|
|
|
|
| |
* rtems/include/rtems/rtems/msgmp.h: Fix MP code missed by Sebastian.
|
|
|
|
|
|
|
|
| |
* libmisc/monitor/monitor.h, rtems/include/rtems/rtems/tasks.h,
score/include/rtems/score/thread.h, score/src/threadreset.c,
score/src/threadrestart.c, score/src/threadstart.c: New type
Thread_Entry_numeric_type for numeric arguments in thread entry
functions with at least one numeric argument.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/sem.h, rtems/src/semobtain.c:
Changed option set type to rtems_option.
* score/src/objectgetinfo.c: Check return value of
_Objects_API_maximum_class().
* libmisc/monitor/mon-mpci.c, libmisc/monitor/monitor.h,
rtems/include/rtems/rtems/message.h, rtems/src/msgmp.c,
rtems/src/msgqallocate.c, rtems/src/msgqbroadcast.c,
rtems/src/msgqcreate.c, rtems/src/msgqreceive.c, rtems/src/msgqsend.c,
rtems/src/msgqurgent.c, score/include/rtems/score/coremsg.h,
score/include/rtems/score/mpci.h, score/include/rtems/score/thread.h,
score/inline/rtems/score/coremsg.inl, score/src/coremsg.c,
score/src/coremsgbroadcast.c, score/src/coremsgseize.c,
score/src/coremsgsubmit.c:
Removed parameters of _Message_queue_Allocate(). Changed option set
type to rtems_option. Changed type of maximum message and packet size
to size_t. Changed the input buffer type for message send functions to
"const void *". Changed the pointer to the second return argument in
the thread wait information to a union. This union can contain a
pointer to an immutable or a mutable object. This is somewhat fragile.
An alternative would be to add a third pointer for immutable objects,
but this would increase the structure size.
|
|
|
|
|
|
|
|
|
| |
PR 1212/cpukit
* rtems/src/taskmode.c, score/src/threadtickletimeslice.c: Time slicing
will not happen if the task mode is changed from a non-timeslicing
mode to timeslicing mode if it is done by the executing thread (e.g.
in its task body). This change includes sp44 to demonstrate the
problem and verify the correction.
|
|
|
|
| |
* rtems/src/msgqsend.c, rtems/src/msgqurgent.c: Fix typos.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
PR 1291/cpukit
* itron/inline/rtems/itron/semaphore.inl, itron/src/twai_sem.c,
posix/include/mqueue.h, posix/include/rtems/posix/mqueue.h,
posix/include/rtems/posix/semaphore.h,
posix/include/rtems/posix/time.h, posix/src/condtimedwait.c,
posix/src/mqueuereceive.c, posix/src/mqueuerecvsupp.c,
posix/src/mqueuesend.c, posix/src/mqueuesendsupp.c,
posix/src/mqueuetimedreceive.c, posix/src/mqueuetimedsend.c,
posix/src/mutextimedlock.c, posix/src/mutextranslatereturncode.c,
posix/src/posixtimespecabsolutetimeout.c,
posix/src/prwlocktimedrdlock.c, posix/src/prwlocktimedwrlock.c,
posix/src/semaphoretranslatereturncode.c,
posix/src/semaphorewaitsupp.c, posix/src/semtimedwait.c,
posix/src/semtrywait.c, posix/src/semwait.c,
posix/src/sigtimedwait.c, posix/src/timersettime.c,
posix/src/ualarm.c, rtems/src/semobtain.c,
rtems/src/semtranslatereturncode.c,
score/include/rtems/score/coremutex.h,
score/include/rtems/score/coresem.h, score/src/coresemseize.c: This
patch addresses issues on implementation of the timeout on the
following POSIX services. Some of these services incorrectly took a
timeout as a relative time. Others would compute a 0 delta to timeout
if the absolute time and the current time were equal and thus
incorrectly block the caller forever. The root of the confusion is
that POSIX specifies that if the timeout is incorrect (e.g. in the
past, is now, or is numerically invalid), that it does not matter if
the call would succeed without blocking. This is in contrast to RTEMS
programming style where all errors are checked before any critical
sections are entered. This fix implemented a more uniform way of
handling POSIX absolute time timeouts.
+ pthread_cond_timedwait - could block forever
+ mq_timedreceive - used relative not absolute time
+ mq_timedsend - used relative not absolute time
+ pthread_mutex_timedlock - used relative not absolute time
+ pthread_rwlock_timedrdlock- used relative not absolute time
+ pthread_rwlock_timedwrlock- used relative not absolute time
+ sem_timedwait - could block forever
|
|
|
|
|
|
| |
* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
RTEMS version string.
* sapi/src/getversionstring.c: New file.
|
|
|
|
| |
(shared handler and handler with a handle).
|
|
|
|
|
| |
* libmisc/monitor/mon-prmisc.c, rtems/include/rtems/rtems/attr.h:
Review association tables in monitor.
|
| |
|
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/config.h,
rtems/include/rtems/rtems/tasks.h, rtems/src/taskgetnote.c,
rtems/src/tasks.c, rtems/src/tasksetnote.c, sapi/include/confdefs.h:
Add CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* posix/include/rtems/posix/pthread.h, posix/src/pthread.c,
posix/src/pthreadcreate.c, rtems/include/rtems.h, rtems/src/attr.c,
sapi/include/confdefs.h, sapi/include/rtems/config.h,
score/inline/rtems/score/stack.inl, score/src/isr.c,
score/src/mpci.c, score/src/threadcreateidle.c,
score/src/threadinitialize.c, score/src/threadstackallocate.c: Add
ability for application to configure minimum stack size. Add
RTEMS_CONFIGURED_MINIMUM_STACK_SIZE constant so user can clearly
indicate they want the configured as opposed to the recommended
minimum stack size.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/include/rtems.h, rtems/include/rtems/rtems/clock.h,
rtems/include/rtems/rtems/config.h,
rtems/include/rtems/rtems/dpmem.h,
rtems/include/rtems/rtems/eventset.h,
rtems/include/rtems/rtems/object.h, rtems/include/rtems/rtems/part.h,
rtems/include/rtems/rtems/ratemon.h,
rtems/include/rtems/rtems/region.h, rtems/include/rtems/rtems/sem.h,
rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
rtems/include/rtems/rtems/types.h, rtems/src/ratemonperiod.c: Improve
Classic API Doxygen.
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemonperiod.c,
score/include/rtems/score/thread.h: Complete previous patch. Add
typedef for cpu usage statistics.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/__times.c, libmisc/cpuuse/cpuusagereport.c,
libmisc/cpuuse/cpuusagereset.c, libmisc/monitor/mon-task.c,
rtems/include/rtems/rtems/ratemon.h, rtems/src/ratemongetstatus.c,
rtems/src/ratemonperiod.c, score/include/rtems/score/thread.h,
score/src/threaddispatch.c, score/src/threadinitialize.c,
score/src/threadtickletimeslice.c: Add typedefs for cpu usage and
period timing statistics. Also renamed related variables and
structure members so they are the same whether you are using
nanosecond (e.g. struct timespec) or ticks (e.g. uint32_t)
granularity. This lays the groundwork for future cleanup.
|
|
|
|
|
|
| |
reduce size of data area.
IMFS: Fixed creation of symbolic links to avoid a compiler warning.
DOSFS: Use LibBlock instead of read() to read the boot record.
|
|
|
|
| |
and RTEMS_ID_NONE. No object can have this ID.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/task.h, itron/src/del_tsk.c,
itron/src/exd_tsk.c, itron/src/task.c,
posix/include/rtems/posix/threadsup.h, posix/src/cancel.c,
posix/src/cancelrun.c, posix/src/pthread.c, posix/src/pthreadexit.c,
posix/src/setcancelstate.c, posix/src/setcanceltype.c,
posix/src/testcancel.c, rtems/src/taskdelete.c,
score/inline/rtems/score/object.inl, score/src/objectclose.c,
score/src/threadclose.c: Make all task delete/exit/cancel routines
follow the same critical section pattern. Also ensure that POSIX
cancelation routines are run at thread exit.
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/message.h, sapi/include/confdefs.h,
score/src/coresemseize.c, score/src/threadhandler.c: Comment
improvements from class.
|
|
|
|
| |
* rtems/include/rtems/rtems/timer.h: Fix typo.
|
|
|
|
|
|
|
| |
* rtems/include/rtems.h, rtems/include/rtems/rtems/ratemon.h,
rtems/include/rtems/rtems/status.h,
rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
rtems/inline/rtems/rtems/sem.inl: More Doxygen warnings removed.
|
|
|
|
|
|
|
|
| |
* posix/src/keycreate.c, posix/src/pthreadequal.c,
rtems/src/semtranslatereturncode.c,
score/cpu/powerpc/rtems/score/powerpc.h,
score/src/threadblockingoperationcancel.c: Fix compilation errors
when --enable-rtems-debug is used.
|
|
|
|
|
| |
* rtems/include/rtems/rtems/partmp.h, sapi/include/confdefs.h: Fix
typos added with recent changes.
|
|
|
|
| |
* rtems/mainpage.h: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/Doxyfile, rtems/include/rtems/rtems/asr.h,
rtems/include/rtems/rtems/attr.h,
rtems/include/rtems/rtems/barrier.h,
rtems/include/rtems/rtems/barriermp.h,
rtems/include/rtems/rtems/cache.h,
rtems/include/rtems/rtems/config.h,
rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/event.h,
rtems/include/rtems/rtems/eventmp.h,
rtems/include/rtems/rtems/eventset.h,
rtems/include/rtems/rtems/intr.h,
rtems/include/rtems/rtems/message.h,
rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/mp.h,
rtems/include/rtems/rtems/msgmp.h,
rtems/include/rtems/rtems/options.h,
rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/partmp.h,
rtems/include/rtems/rtems/ratemon.h,
rtems/include/rtems/rtems/region.h,
rtems/include/rtems/rtems/regionmp.h,
rtems/include/rtems/rtems/rtemsapi.h,
rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/semmp.h,
rtems/include/rtems/rtems/signal.h,
rtems/include/rtems/rtems/signalmp.h,
rtems/include/rtems/rtems/status.h,
rtems/include/rtems/rtems/support.h,
rtems/include/rtems/rtems/taskmp.h,
rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
rtems/include/rtems/rtems/types.h, rtems/inline/rtems/rtems/asr.inl,
rtems/inline/rtems/rtems/attr.inl,
rtems/inline/rtems/rtems/barrier.inl,
rtems/inline/rtems/rtems/dpmem.inl,
rtems/inline/rtems/rtems/event.inl,
rtems/inline/rtems/rtems/message.inl,
rtems/inline/rtems/rtems/modes.inl,
rtems/inline/rtems/rtems/options.inl,
rtems/inline/rtems/rtems/part.inl,
rtems/inline/rtems/rtems/ratemon.inl,
rtems/inline/rtems/rtems/region.inl,
rtems/inline/rtems/rtems/sem.inl,
rtems/inline/rtems/rtems/status.inl,
rtems/inline/rtems/rtems/support.inl,
rtems/inline/rtems/rtems/timer.inl: More Doxygen improvements.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/include/rtems.h, rtems/include/rtems/rtems/asr.h,
rtems/include/rtems/rtems/attr.h,
rtems/include/rtems/rtems/barrier.h,
rtems/include/rtems/rtems/barriermp.h,
rtems/include/rtems/rtems/cache.h, rtems/include/rtems/rtems/clock.h,
rtems/include/rtems/rtems/config.h,
rtems/include/rtems/rtems/dpmem.h, rtems/include/rtems/rtems/event.h,
rtems/include/rtems/rtems/eventmp.h,
rtems/include/rtems/rtems/eventset.h,
rtems/include/rtems/rtems/intr.h,
rtems/include/rtems/rtems/message.h,
rtems/include/rtems/rtems/modes.h, rtems/include/rtems/rtems/mp.h,
rtems/include/rtems/rtems/msgmp.h,
rtems/include/rtems/rtems/object.h,
rtems/include/rtems/rtems/options.h,
rtems/include/rtems/rtems/part.h, rtems/include/rtems/rtems/partmp.h,
rtems/include/rtems/rtems/ratemon.h,
rtems/include/rtems/rtems/region.h,
rtems/include/rtems/rtems/regionmp.h,
rtems/include/rtems/rtems/rtemsapi.h,
rtems/include/rtems/rtems/sem.h, rtems/include/rtems/rtems/semmp.h,
rtems/include/rtems/rtems/signal.h,
rtems/include/rtems/rtems/signalmp.h,
rtems/include/rtems/rtems/status.h,
rtems/include/rtems/rtems/support.h,
rtems/include/rtems/rtems/taskmp.h,
rtems/include/rtems/rtems/tasks.h, rtems/include/rtems/rtems/timer.h,
rtems/include/rtems/rtems/types.h, rtems/inline/rtems/rtems/asr.inl,
rtems/inline/rtems/rtems/attr.inl,
rtems/inline/rtems/rtems/barrier.inl,
rtems/inline/rtems/rtems/dpmem.inl,
rtems/inline/rtems/rtems/event.inl,
rtems/inline/rtems/rtems/eventset.inl,
rtems/inline/rtems/rtems/message.inl,
rtems/inline/rtems/rtems/modes.inl,
rtems/inline/rtems/rtems/options.inl,
rtems/inline/rtems/rtems/part.inl,
rtems/inline/rtems/rtems/ratemon.inl,
rtems/inline/rtems/rtems/region.inl,
rtems/inline/rtems/rtems/sem.inl,
rtems/inline/rtems/rtems/status.inl,
rtems/inline/rtems/rtems/support.inl,
rtems/inline/rtems/rtems/tasks.inl,
rtems/inline/rtems/rtems/timer.inl: Initial conversion of Classic API
header files to Doxygen.
* rtems/Doxyfile: New file.
|
|
|
|
|
|
| |
* posix/src/key.c: Include <limits.h>
* posix/src/psignal.c, rtems/src/tasks.c: Do not attempt to process
a NULL extension block.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* rtems/Makefile.am, rtems/include/rtems/rtems/clock.h,
rtems/src/clockget.c:
* rtems/src/clockgetsecondssinceepoch.c,
rtems/src/clockgettickspersecond.c,
rtems/src/clockgettickssinceboot.c, rtems/src/clockgettod.c,
rtems/src/clockgettodtimeval.c: New files.
Refactored rtems_clock_get into 5 methods which are single purpose
and more strongly typed. They are:
rtems_clock_get_tod - Get TOD in Classic API structure
rtems_clock_get_tod_timeval - Get TOD in struct timeval
rtems_clock_get_seconds_since_epoch - Get TOD as seconds since 1988
rtems_clock_get_ticks_since_boot - Get ticks since boot
rtems_clock_get_ticks_per_second - Get ticks per second
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/task.h, itron/src/cre_tsk.c,
posix/src/pthreadcreate.c, rtems/src/taskcreate.c,
rtems/src/taskdelete.c, rtems/src/timerserver.c,
score/src/threadclose.c, score/src/threadcreateidle.c,
score/src/threadinitialize.c: Switch task create and delete
operations to using API Allocator Mutex. This moves almost all uses
of the RTEMS Workspace from dispatching disabled to mutex protected
which should improve deterministic behavior. The implementation was
carefully done to allow task create and delete extensions to invoke
more services. In particular, a task delete extension should be able
to do mutex and file operations.
|