| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
for system information and diagnostics
|
|
|
|
|
| |
* libmisc/shell/shell_script.c: Clean up code for command not found
including the error message.
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/monitor/mon-extension.c, libmisc/monitor/mon-itask.c,
libmisc/monitor/mon-part.c, libmisc/monitor/mon-prmisc.c,
libmisc/monitor/mon-queue.c, libmisc/monitor/mon-region.c,
libmisc/monitor/mon-sema.c, libmisc/monitor/mon-task.c,
libmisc/monitor/monitor.h: Use rtems_object_get_name() instead of
internal routine. This makes it possible to also print string names
of POSIX objects. Adjust task report to realign since we can have
longer names.
|
|
|
|
|
| |
* sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread
body is now completely configured via the Configuration table.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
* libmisc/monitor/mon-monitor.c, libmisc/monitor/mon-object.c,
libmisc/monitor/monitor.h, libmisc/shell/main_chmod.c,
libmisc/shell/main_tty.c, libmisc/shell/main_umask.c,
libmisc/shell/main_whoami.c: Add pthread command to monitor when
POSIX is enabled. Remove include of rtems/monitor.h from files not
related.
|
|
|
|
|
|
| |
* score/cpu/powerpc/rtems/new-exceptions/cpu.h:
use ppc_interrupt_get_disable_mask() to determine
which bits to set/clear from _CPU_ISR_Set_level().
|
|
|
|
|
| |
* score/cpu/powerpc/rtems/powerpc/registers.h:
added ppc_interrupt_get_disable_mask() inline function.
|
|
|
|
| |
* libmisc/shell/shellconfig.h, libmisc/stackchk/stackchk.h: Fix typos.
|
|
|
|
|
|
|
| |
* libmisc/shell/shell.c, libmisc/shell/shell.h: New argument sequence
for rtems_shell_init(). This makes it possible to run the shell
forever or invoke it from a program as a subroutine, have a user
enter commands, and wait for it to exit.
|
|
|
|
|
|
| |
* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
RTEMS version string.
* sapi/src/getversionstring.c: New file.
|
|
|
|
| |
adapted PPC exception code
|
|
|
|
|
|
|
|
|
|
|
| |
* cpukit/score/cpu/powerpc/rtems/new-exceptions/cpu.h,
cpukit/score/cpu/powerpc/rtems/score/cpu.h,
cpukit/score/cpu/powerpc/rtems/score/powerpc.h:
Removed all macro definitions which depended on
the compiler defining a PPC CPU-model dependent
symbol.
Macros which were not used by cpukit have been
moved to libcpu/powerpc/rtems/powerpc/powerpc.h.
|
|
|
|
| |
* include/rtems/status-checks.h: Fix style.
|
| |
|
|
|
|
| |
(shared handler and handler with a handle).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* cpukit/libcsupport/include/chain.h: Removed. Use the SAPI
interface that is supported.
* cpukit/libcsupport/Makefile.am,
cpukit/libcsupport/preinstall.am: Remove chain.h header
references.
* cpukit/sapi/include/rtems/chain.h,
cpukit/sapi/inline/rtems/chain.inl: New. A supported chains
interface.
* cpukit/sapi/Makefile.am, cpukit/sapi/preinstall.am: Updated to
include the new chains interface.
* cpukit/libfs/src/imfs/imfs.h,
cpukit/libfs/src/imfs/imfs_creat.c,
cpukit/libfs/src/imfs/imfs_debug.c,
cpukit/libfs/src/imfs/imfs_directory.c,
cpukit/libfs/src/imfs/imfs_fsunmount.c,
cpukit/libfs/src/imfs/imfs_getchild.c,
cpukit/libfs/src/imfs/imfs_load_tar.c,
cpukit/libfs/src/imfs/imfs_rmnod.c,
cpukit/libfs/src/imfs/memfile.c,
cpukit/libfs/src/nfsclient/src/nfs.c,
cpukit/libcsupport/include/rtems/libio.h,
cpukit/libcsupport/src/malloc_deferred.c,
cpukit/libcsupport/src/mount.c,
cpukit/libcsupport/src/privateenv.c,
cpukit/libcsupport/src/unmount.c: Change to the new chains
interface.
* cpukit/libcsupport/src/malloc_boundary.c: Remove warning.
|
|
|
|
|
|
| |
* score/include/rtems/score/thread.h,
score/src/threaddispatch.c, score/src/threadinitialize.c:
Support rtems_ada_self iff __RTEMS_ADA__ is given.
|
|
|
|
| |
* libmisc/shell/shell_script.c: Remove unused function.
|
|
|
|
| |
* configure.ac: Add __RTEMS_ADA__.
|
|
|
|
|
|
|
|
|
| |
* libnetworking/Makefile.am, libnetworking/libc/gethostnamadr.c,
libnetworking/libc/getservbyname.c,
libnetworking/libc/getservbyport.c: Add initial versions of
getservbyport_r(), gethostbyaddr_r(), and getservbyport_r(). At this
point they are just simple weappers for the version without the _r in
the name.
|
|
|
|
|
| |
* libmisc/monitor/mon-prmisc.c, rtems/include/rtems/rtems/attr.h:
Review association tables in monitor.
|
|
|
|
|
|
|
|
|
|
| |
* configure.ac, rtems/src/semtranslatereturncode.c,
score/include/rtems/score/coremutex.h,
score/include/rtems/score/thread.h,
score/inline/rtems/score/coremutex.inl,
score/src/coremutex.c, score/src/coremutexsurrender.c,
score/src/threadinitialize.c:
Rename __STRICT_ORDER_MUTEX__ to __RTEMS_STRICT_ORDER_MUTEX__.
|
|
|
|
|
|
| |
* configure.ac: Add AM_CONDITIONAL(LIBGNAT).
* libgnat/Makefile.am: Use LIBGNAT.
* wrapup/Makefile.am: Use LIBGNAT.
|
|
|
|
|
| |
* acinclude.m4: Add magic to update cpuopt.h.
* configure.ac: Remove magic to update cpuopt.h.
|
|
|
|
|
|
| |
* acinclude.m4: Add _RTEMS_CPUOPT_INIT, _RTEMS_CPUOPT_FINI.
* configure.ac: Apply _RTEMS_CPU_INIT, _RTEMS_CPUOPT_FINI.
Cleanup mal-formated RTEMS_CPUOPT's.
|
|
|
|
|
| |
* aclocal/rtems-top.m4: Require AC_DISABLE_OPTION_CHECKING.
AC_PREREQ(2.62).
|
|
|
|
|
| |
* sapi/include/confdefs.h: Use the PRIORITY_DEFAULT_MAXIMUM rather
than a number.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: When you disabled newlib reentrancy, it
still reserved memory for the reentrancy structure. This is about 1K
per task. On psim, we now reserve only 1936 bytes and only 240 remain
after all allocations. Further analysis will be required to narrow
that down. In addition, the new constant CONFIGURE_CONFDEFS_DEBUG can
be defined and the structure named Configuration_Memory_Debug will be
instantiated. This structure contains many of the component values
that go into the memory reservation computation. This is helpful when
tracking down problems.
|
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: The math in the _Configure_Object_RAM macro
was always adding heap overhead even when the number of objects
configured was zero and we would not do an allocation. This resulted
in an over estimation of the amount of Workspace required (~2K on
minimum.exe on PowerPC).
|
|
|
|
|
|
|
|
| |
* cpukit/sapi/include/confdefs.h: Add missing quote to string to
remove warning.
* cpukit/score/cpu/m68k/rtems/score/m68k.h: Add the default
priority level for large memory Coldfires.
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* sapi/include/confdefs.h, score/include/rtems/score/priority.h: Add
CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION and
CONFIGURE_MAXIMUM_PRIORITY.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
* score/include/rtems/score/priority.h: Let the CPU define the
maximum and minimum priority levels to reduce the amount of memory
thread chains use.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Rework to be more accurate on allocation. In
particular, there was a report from that Matthew Riek that memory was
being reserved twice for the IDLE task. This was covering up other
places that under allocated memory. Before I was done, I had reworked
the file to be easier to read, maintain and be more accurate.
|
|
|
|
|
|
| |
* score/include/rtems/score/isr.h, score/src/isr.c: Use
CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to avoid allocating
memory for vector table.
|
|
|
|
| |
* score/src/wkspace.c: Fix error in comment.
|
|
|
|
|
|
|
| |
* posix/src/psignal.c: Do not allocate any memory for queued signals if
the configuration parameter is 0. Before we would end up with an
allocation of 0 which rounded up and wasted some memory when POSIX
was configured.
|
|
|
|
|
| |
* libcsupport/src/newlibc_exit.c: Only run the fini section on exit if
the target toolset uses init/fini sections.
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/task.h, itron/src/task.c: ITRON currently
has no functional data in the user extension data area structure so
this disables the definition, allocation and deallocation of that
structure. If we ever have to add data to it, then it will be easy to
reenable.
|
|
|
|
|
|
| |
* score/src/objectgetinfo.c, score/src/objectidtoname.c,
score/src/threadget.c: Make sure the pointer to the API object table
is valid before derefencing it.
|
|
|
|
|
| |
* score/include/rtems/score/interr.h, score/src/interr.c: Convention
calls for leading underscore on private RTEMS variables.
|
|
|
|
|
|
| |
* score/include/rtems/score/object.h,
score/include/rtems/score/watchdog.h: Move #include's out of
extern "C" {}.
|
|
|
|
|
|
| |
* libfs/src/nfsclient/src/nfs.c:BUGFIX: must not attempt to
release node if rtems_filesystem_evaluate_path() fails
in nfs_eval_link() since pathloc contains no valid node.
|
|
|
|
|
|
| |
* libmisc/shell/shell_getchar.c: Minor change so dropping connection
while at prompt results in shell logging out and connection still
being available.
|