| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
* sapi/include/confdefs.h: Rename STACK_CHECKER_ON to more appropriate
CONFIGURE_STACK_CHECKER_ENABLED.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/src/free.c, libcsupport/src/malloc.c,
libcsupport/src/malloc_initialize.c, libcsupport/src/malloc_p.h,
libcsupport/src/malloc_sbrk_helpers.c,
libcsupport/src/malloc_statistics_helpers.c,
libcsupport/src/malloc_walk.c, libcsupport/src/mallocfreespace.c,
libcsupport/src/mallocinfo.c, libcsupport/src/realloc.c,
libcsupport/src/rtems_memalign.c, sapi/include/confdefs.h,
score/inline/rtems/score/thread.inl: Add support for optionally
having a unified work area. In other words, the RTEMS Workspace and C
Program Heap are the same pool of memory.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Makefile.am, preinstall.am, libcsupport/Makefile.am,
libcsupport/include/rtems/libcsupport.h,
libcsupport/include/rtems/libio.h, libcsupport/src/base_fs.c,
libcsupport/src/libio_init.c, libcsupport/src/newlibc_exit.c,
libcsupport/src/newlibc_init.c, libcsupport/src/sync.c,
libfs/Makefile.am, libfs/src/imfs/deviceio.c,
sapi/include/confdefs.h: Merge GSOC project code to add simple device
only filesystem (devfs), optionally completely drop out filesystem,
and to clean up disabling newlib reentrancy support. This dropped 17K
from the minimum.exe for sparc/sis and arm/rtl22xx_t now has a 15K
code space.
* libcsupport/src/__usrenv.c, libcsupport/src/newlibc_reent.c,
libfs/src/devfs/devclose.c, libfs/src/devfs/devfs.h,
libfs/src/devfs/devfs_eval.c, libfs/src/devfs/devfs_init.c,
libfs/src/devfs/devfs_mknod.c, libfs/src/devfs/devfs_node_type.c,
libfs/src/devfs/devfs_show.c, libfs/src/devfs/devioctl.c,
libfs/src/devfs/devopen.c, libfs/src/devfs/devread.c,
libfs/src/devfs/devstat.c, libfs/src/devfs/devwrite.c,
libfs/src/imfs/deviceerrno.c: New files.
* libcsupport/src/newlibc.c: Removed.
|
|
|
|
|
| |
* sapi/include/confdefs.h: Revert previous patch. Does not apply to
head.
|
|
|
|
|
|
| |
PR 564/cpukit
* sapi/include/confdefs.h: Fix incorrect name. Was missed in an earlier
renaming sweep.
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Add debug information for
per task allocations.
* score/src/objectextendinformation.c: Do not allocate memory for name
tables because we do not use name tables any longer.
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Make sure
CONFIGURE_TIMER_FOR_SHARED_MEMORY_DRIVER is defined to 0 in single
processor configurations.
|
|
|
|
|
| |
* sapi/include/confdefs.h: Account for needed a Classic API Timer when
using the Shared Memory MPCI driver.
|
| |
|
|
|
|
|
| |
* sapi/include/confdefs.h: Add CONFIGURE_BSP_PREREQUISITE_DRIVERS and
CONFIGURE_APPLICATION_PREREQUISITE_DRIVERS.
|
|
|
|
|
| |
PR 1301/cpukit
* sapi/src/debug.c: Let _Debug_Is_enabled return TRUE|FALSE.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libblock/Makefile.am: Removed src/show_bdbuf.c.
* libblock/src/show_bdbuf.c: Removed.
* libblock/include/rtems/bdbuf.h, cpukit/libblock/src/bdbuf.c:
Rewritten the bdbuf code. Remove pre-emption disable, score
access, fixed many bugs and increased performance.
* libblock/include/rtems/blkdev.h: Added
RTEMS_BLKDEV_CAPABILITIES block device request. Cleaned up
comments. Added block and user fields to the sg buffer
request. Move to rtems_* namespace.
* libblock/include/rtems/diskdevs.h,
cpukit/libblock/src/diskdevs.c: Move to rtems_* namespace. Add a
capabilities field for drivers. Change rtems_disk_lookup to
rtems_disk_obtain to match the release call. You do not lookup and
release a disk, you obtain and release a disk.
* libblock/include/rtems/ide_part_table.h,
libblock/include/rtems/ramdisk.h, libblock/src/ide_part_table.c:
Move to rtems_* namespace.
* libblock/include/rtems/nvdisk.h: Formatting change.
* libblock/src/blkdev.c: Move to rtems_* namespace. Change
rtems_disk_lookup to rtems_disk_obtain
* libblock/src/flashdisk.c: Move to rtems_* namespace. Use the new
support for the block number in the scatter/grather request
struct. This allows non-continuous buffer requests for those
drivers that can support increasing performance.
* libblock/src/nvdisk.c: Move to rtems_* namespace. Removed
warnings. Added better error checking. Fixed some comments.
* libblock/src/ramdisk.c: Move to rtems_* namespace. Added some
trace functions to help debugging upper layers. Use the new
support for the block number in the scatter/grather request
struct. This allows non-continuous buffer requests for those
drivers that can support increasing performance.
* libfs/src/dosfs/fat.c, libfs/src/dosfs/fat.h: Use new chains
API. Removed temporary hack and changed
set_errno_and_return_minus_one to
rtems_set_errno_and_return_minus_one. Move fat_buf_access from
header and stopped it being inlined. Updated to libblock changes.
* libfs/src/dosfs/fat_fat_operations.c,
libfs/src/dosfs/fat_file.c, libfs/src/dosfs/msdos_create.c,
libfs/src/dosfs/msdos_dir.c, libfs/src/dosfs/msdos_eval.c,
libfs/src/dosfs/msdos_file.c, libfs/src/dosfs/msdos_format.c,
libfs/src/dosfs/msdos_free.c, libfs/src/dosfs/msdos_initsupp.c,
libfs/src/dosfs/msdos_misc.c, libfs/src/dosfs/msdos_mknod.c: Use
new chains API. Removed temporary hack and changed
set_errno_and_return_minus_one to
rtems_set_errno_and_return_minus_one. Updated to libblock changes.
* libmisc/Makefile.am: Add new ls and rm command files.
* libmisc/shell/cmp-ls.c, libmisc/shell/extern-ls.h,
libmisc/shell/filemode.c, libmisc/shell/print-ls.c,
libmisc/shell/pwcache.c, libmisc/shell/utils-ls.c,
libmisc/shell/vis.c, shell/vis.h: New.
* libmisc/shell/extern-cp.h, libmisc/shell/main_cp.c,
libmisc/shell/utils-cp.c: Fixed the usage call bug.
* libmisc/shell/main_blksync.c: Updated to the new block IO ioctl
command.
* libmisc/shell/main_ls.c, libmisc/shell/main_rm.c: Updated to BSD
commands with more features.
* score/src/coremutex.c: Fix the strick order mutex code.
* libmisc/shell/shell.c: Change shell tasks mode to be timeslice
and no ASR.
* sapi/include/confdefs.h: Change ata_driver_task_priority to
rtems_ata_driver_task_priority. Add the new BD buf cache
parameters with defaults.
* score/src/interr.c: Do not return if the CPU halt call returns.
|
|
|
|
|
| |
* sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread
body is now completely configured via the Configuration table.
|
|
|
|
|
|
| |
* rtems/include/rtems.h, sapi/Makefile.am: Add simple helper to get
RTEMS version string.
* sapi/src/getversionstring.c: New file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
* libcsupport/preinstall.am, sapi/include/confdefs.h: Add baseline
interface for Watchdog Driver.
* libcsupport/include/rtems/watchdogdrv.h: New file.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* sapi/include/rtems/init.h, sapi/src/exinit.c: Refactored and renamed
initialization routines to rtems_initialize_data_structures,
rtems_initialize_before_drivers, rtems_initialize_device_drivers, and
rtems_initialize_start_multitasking. This opened the sequence up so
that bootcard() could provide a more robust and flexible framework
which is easier to explain and understand. This also lays the
groundwork for sharing the division of available memory between the
RTEMS workspace and heap and the C library initialization across all
BSPs.
|
|
|
|
|
| |
* sapi/src/exinit.c, score/src/threadstartmultitasking.c: Improve
comments.
|
|
|
|
|
|
| |
* rtems/include/rtems/rtems/message.h, sapi/include/confdefs.h,
score/src/coresemseize.c, score/src/threadhandler.c: Comment
improvements from class.
|
|
|
|
|
|
| |
PR 1285/rtems
* sapi/include/rtems/config.h: Remove obsolete
rtems_configuration_get_maximum_devices().
|
|
|
|
|
| |
* rtems/include/rtems/rtems/partmp.h, sapi/include/confdefs.h: Fix
typos added with recent changes.
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libmisc/dummy/dummy.c, sapi/include/confdefs.h: Add checks for
application configuration errors. If any POSIX objects or a POSIX
init thread is configured without POSIX being configure, then error
out. Similarly for ITRON. Add
CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER configuration
parameter so the application has to explicitly configure the Clock
driver in or out if the Timer driver is not configured. Also verify
RTEMS was built for multiprocessing, if the user tries to configure a
multiprocessing application.
|
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Do not reserve 2 * minimum stack size
for the ITRON initialization tasks ALL the time.
Do not reserve memory for the object name table since it does not
exist any longer.
* sapi/include/rtems/sptables.h: Fix typo.
|
|
|
|
|
|
| |
* sapi/include/rtems/config.h, sapi/include/rtems/sptables.h: Add
missing field to default multiprocessing configuration table. Also
document fields in Doxygen format.
|
|
|
|
|
|
|
| |
* sapi/include/confdefs.h, score/src/mpci.c, score/src/objectmp.c,
score/src/objectnametoid.c, score/src/objectnametoidstring.c:
Multiprocessing compiles again and survives initialization. The
recent object name and confdefs.h changes had broken it.
|
|
|
|
|
|
|
| |
* sapi/include/rtems/fatal.h, score/include/rtems/score/coremutex.h,
score/include/rtems/score/interr.h,
score/inline/rtems/score/thread.inl, score/src/coremutexseize.c:
Modifications to aid in full path testing.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* itron/include/rtems/itron/object.h, itron/src/cre_tsk.c,
libblock/src/show_bdbuf.c, libmisc/capture/capture-cli.c,
libmisc/capture/capture.c, libmisc/monitor/mon-manager.c,
libmisc/stackchk/check.c, posix/src/condinit.c,
posix/src/keycreate.c, posix/src/mqueuecreatesupp.c,
posix/src/mqueuedeletesupp.c, posix/src/mqueuenametoid.c,
posix/src/mqueueopen.c, posix/src/mqueueunlink.c,
posix/src/mutexinit.c, posix/src/pbarrierinit.c,
posix/src/prwlockinit.c, posix/src/pspininit.c,
posix/src/pthreadcreate.c, posix/src/pthreadexit.c,
posix/src/semaphorecreatesupp.c, posix/src/semaphorenametoid.c,
posix/src/timercreate.c, rtems/src/barrierident.c,
rtems/src/dpmemident.c, rtems/src/msgqident.c, rtems/src/partident.c,
rtems/src/ratemonident.c, rtems/src/regionident.c,
rtems/src/semident.c, rtems/src/taskident.c, rtems/src/timerident.c,
sapi/src/extensionident.c, score/Makefile.am,
score/include/rtems/score/object.h,
score/inline/rtems/score/object.inl, score/src/apimutexallocate.c,
score/src/objectextendinformation.c,
score/src/objectgetnameasstring.c, score/src/objectmp.c,
score/src/objectnametoid.c: Convert the Objects_Name type from a
simple type to a union of an unsigned 32 bit integer and a pointer.
This should help eliminate weird casts between u32 and pointers in
various places. The APIs now have to explicitly call _u32 or _string
versions of helper routines. This should also simplify things and
eliminate the need for ugly casts in some cases.
* score/src/objectclearname.c, score/src/objectcomparenameraw.c,
score/src/objectcomparenamestring.c, score/src/objectcopynameraw.c,
score/src/objectcopynamestring.c: Removed.
|
|
|
|
| |
* sapi/include/confdefs.h: Add CONFIGURE_MALLOC_DIRTY.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/Makefile.am: Add malloc_sbrk_helpers.c.
* libcsupport/include/rtems/malloc.h,
libcsupport/src/malloc.c, libcsupport/src/malloc_initialize.c,
libcsupport/src/malloc_p.h,
libcsupport/src/malloc_statistics_helpers.c: Make sbrk()
support pluggable and optional. This eliminates the need for
heap extend and sbrk in the minimum footprint which is ~2.5K on
the SPARC.
* sapi/include/confdefs.h: Add the following configuration points:
+ CONFIGURE_MALLOC_STATISTICS
+ CONFIGURE_MALLOC_BSP_SUPPORTS_SBRK
* libcsupport/src/malloc_sbrk_helpers.c: New file.
|
|
|
|
|
|
|
|
| |
* score/src/threadhandler.c, sapi/src/exshutdown.c:
cannot call _fini via atexit() from rtems_shutdown_executive()
because at the point where rtems_shutdown_executive is called
the C-library is already dead.
Instead, register an atexit(_fini) after calling _init().
|
|
|
|
|
| |
* sapi/include/confdefs.h: Revert. Requires info not available at
preprocessing time.
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Catch the error when the user lowers the
maximum number of drivers below the number of statically configured
ones.
|
|
|
|
|
|
|
| |
* sapi/src/extension.c, sapi/src/extensioncreate.c,
sapi/src/extensiondelete.c, sapi/src/extensionident.c: Extension
Manager clean up. Update object id switches to new pattern. Catch
some NULL parameter errors.
|
|
|
|
|
|
| |
* libcsupport/preinstall.am, posix/preinstall.am, rtems/Makefile.am,
rtems/preinstall.am, sapi/Makefile.am, sapi/preinstall.am,
score/Makefile.am, score/preinstall.am: Revert testing patch.
|
|
|
|
|
|
|
|
|
|
|
| |
* libcsupport/preinstall.am, posix/preinstall.am, posix/src/aio.c,
posix/src/clockgetcpuclockid.c, posix/src/clockgetenableattr.c,
posix/src/clockgettime.c, posix/src/clocksetenableattr.c,
posix/src/clocksettime.c, posix/src/devctl.c,
posix/src/pthreadcreate.c, posix/src/pthreadgetcpuclockid.c,
posix/src/types.c, rtems/preinstall.am, sapi/Makefile.am,
sapi/preinstall.am, score/Makefile.am, score/preinstall.am: Eliminate
POSIX_NOT_IMPLEMENTED(). Return ENOSYS instead.
|
|
|
|
|
|
|
|
|
| |
* Makefile.am: Added libmisc/shell/shellconfig.h to the installed
header list.
* libmisc/shell/shell_cmdset.c: Let the Initial command add occur
in any order rather than before any commands have been added. Also
made the command's strings be copies rather than references.
* sapi/src/ioregisterdriver.c: Return the I/O initialise calls result.
|
|
|
|
| |
* sapi/include/rtems/config.h: Correct idle task prototype.
|
|
|
|
| |
* sapi/include/rtems/config.h: Fix idle thread prototype.
|
|
|
|
|
|
| |
* sapi/include/confdefs.h: Separate the concept of configuring the
interrupt stack size from actually reserving memory for it in the
RTEMS Workspace.
|
|
|
|
| |
* sapi/include/rtems/config.h: Correct previous commit.
|