summaryrefslogtreecommitdiffstats
path: root/cpukit/score (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add missing prototypes.Ralf Corsepius2008-08-192-4/+4
|
* 2008-08-18 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-183-2/+6
| | | | * cpu.c, rtems/score/cpu.h: Add void.
* 2008-08-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-08-184-11/+21
| | | | | | | | | | | | * 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.
* 2008-08-16 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2008-08-161-0/+4
| | | | * rtems/score/cpu.h, rtems/score/i386.h: Add missing prototypes.
* Add missing prototypes.Ralf Corsepius2008-08-162-4/+4
|
* Cosmetic indentation fixes.Ralf Corsepius2008-08-161-7/+7
|
* 2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-151-0/+10
| | | | * ChangeLog: Add correct entry.
* 2008-08-14 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-147-537/+634
| | | | | | | * 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.
* 2008-08-14 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-142-8/+11
| | | | | * rtems/powerpc/registers.h: Removed obsolete defines MSR_, MSR_KERNEL and MSR_USER. Added missing prototypes.
* 2008-08-05 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-084-39/+50
| | | | | | | | * 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.
* 2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-073-1/+9
| | | | | | | * score/include/rtems/score/sysstate.h, score/inline/rtems/score/sysstate.inl, score/src/thread.c: Make _System_state_Is_multiprocessing unused when multiprocessing is not enabled. Saves one more variable from single processor configuration.
* 2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-059-39/+60
| | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de>Joel Sherrill2008-08-052-1/+7
| | | | | | * rtems/new-exceptions/cpu.h: Changed define CPU_INTERRUPT_MAXIMUM_VECTOR_NUMBER to UINT32_MAX to avoid comparison between signed and unsigned.
* 2008-08-05 Xudong Guan <xudong.guan@criticalsoftware.com>Joel Sherrill2008-08-051-1/+1
| | | | | | | | | 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.
* 2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-043-38/+9
| | | | | | PR 1294/bsps * rtems/score/cpu.h, rtems/score/sparc.h: Correct prototype and usage of sparc_disable_interrupts.
* 2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-042-0/+5
| | | | * rtems/score/cpu.h: Spacing.
* 2008-08-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-08-042-6/+6
| | | | | | | | PR 1265/cpukit * score/include/rtems/score/object.h, score/src/objectallocatebyindex.c: Rename index argument to avoid warning when rtems.h and string.h are included at the same time by user code.
* Add missing prototype.Ralf Corsepius2008-08-011-1/+1
|
* Add missing prototypesRalf Corsepius2008-08-011-1/+1
|
* 2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-07-3127-19/+56
| | | | * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads.
* 2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-07-316-3/+15
| | | | * rtems/score/cpu.h: Correct prototype of Idle threads.
* Add prototypes.Ralf Corsepius2008-07-291-1/+1
|
* Remove stray args in function call.Ralf Corsepius2008-07-291-1/+1
|
* 2008-07-29 Chris Johns <chrisj@rtems.org>Chris Johns2008-07-292-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* 2008-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-231-25/+6
| | | | | * sapi/include/confdefs.h, score/src/threadcreateidle.c: Idle thread body is now completely configured via the Configuration table.
* 2008-07-18 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-07-183-65/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Changed special purpose register inline functions to macros.Thomas Doerfler2008-07-182-0/+8
| | | | | fixed some minors in mpc83xx support added file for mpc55xx watchdog support
* 2008-07-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-161-2/+2
| | | | | | * 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().
* 2008-07-16 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-161-0/+10
| | | | | * score/cpu/powerpc/rtems/powerpc/registers.h: added ppc_interrupt_get_disable_mask() inline function.
* added haleakala BSP contributed by Michael HamelThomas Doerfler2008-07-142-0/+7
|
* added support for mcf548xThomas Doerfler2008-07-114-2/+183
|
* adapted for modified exception codeThomas Doerfler2008-07-114-40/+117
|
* 2008-07-10 Till Straumann <strauman@slac.stanford.edu>Till Straumann2008-07-103-439/+37
| | | | | | | | | | | * 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.
* added irq-extension.h declarationsThomas Doerfler2008-07-102-0/+11
|
* Support rtems_ada_self iff __RTEMS_ADA__ is given.Ralf Corsepius2008-07-023-0/+6
|
* Rename __STRICT_ORDER_MUTEX__ to __RTEMS_STRICT_ORDER_MUTEX__.Ralf Corsepius2008-06-306-12/+12
|
* hris Johns <chrisj@rtems.org>Chris Johns2008-06-161-0/+1
| | | | | | | | * 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.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-131-3/+11
| | | | | | * sapi/include/confdefs.h, score/include/rtems/score/priority.h: Add CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION and CONFIGURE_MAXIMUM_PRIORITY.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-132-5/+14
| | | | | * rtems/score/m68k.h: There is no point in defining the maximum priorities to 255. priority.h will default it to this.
* 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-136-14/+42
| | | | | | | | | | | | | * 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.
* 2008-06-10 Chris Johns <chrisj@rtems.org>Chris Johns2008-06-111-0/+14
| | | | | | * 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.
* hris Johns <chrisj@rtems.org>Chris Johns2008-06-114-194/+244
| | | | | | | | * cpu_asm.S: Add Coldfire FPU support. * rtems/score/m68k.h: Change the Coldfire CPU defines to be based on the instruction set. Add Tiny RTEMS support to the small memory model RTEMS processors. * rtems/score/cpu.h: Handle the new Tiny RTEMS support.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-061-3/+3
| | | | | | * 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.
* 2008-06-06 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-064-8/+9
| | | | | | | | | | | | | * 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.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-052-0/+4
| | | | | | * score/include/rtems/score/isr.h, score/src/isr.c: Use CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to avoid allocating memory for vector table.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-051-1/+1
| | | | * score/src/wkspace.c: Fix error in comment.
* 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-0522-1/+227
| | | | | | | | * rtems/score/cpu.h: Add CPU_SIMPLE_VECTORED_INTERRUPTS porting parameter to indicate that the port uses the Simple Vectored Interrupt model or the Programmable Interrupt Controller Model. The PIC model is implemented primarily in the BSP and it is responsible for all memory allocation.
* 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-043-2/+15
| | | | | | * 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.
* 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2008-06-042-1/+7
| | | | | | * rtems/score/cpu.h: Use a constant for CPU_STACK_MINIMUM_SIZE so it can be used in cpp expressions. Using sizeof() requires actually compiling the file.
* 2008-06-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2008-06-022-4/+4
| | | | | * score/include/rtems/score/interr.h, score/src/interr.c: Convention calls for leading underscore on private RTEMS variables.