Commit Graph

1944 Commits

Author SHA1 Message Date
Jennifer Averett
0f98487dae 2011-12-09 Jennifer Averett
* cpu.c: Correct typo.
2011-12-09 14:04:37 +00:00
Sebastian Huber
a89ae540c1 2011-12-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/src/heapiterate.c, score/src/pheapiterate.c: New files.
	* score/Makefile.am: Reflect changes above.
	* score/include/rtems/score/heap.h: Declare _Heap_Iterate() and define
	Heap_Block_visitor.
	* score/include/rtems/score/protectedheap.h: Declare
	_Protected_heap_Iterate().
	* score/src/heapgetinfo.c: Use _Heap_Iterate().
2011-12-06 14:23:26 +00:00
Sebastian Huber
7e0ef0f7b3 2011-12-06 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: More register defines.
2011-12-06 14:06:39 +00:00
Ralf Corsepius
04bf7cbf60 2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/schedulercbsattachthread.c,
	score/src/schedulercbsdestroyserver.c,
	score/src/schedulercbsdetachthread.c,
	score/src/schedulercbsgetapprovedbudget.c,
	score/src/schedulercbsgetexecutiontime.c,
	score/src/schedulercbsgetparameters.c,
	score/src/schedulercbsgetremainingbudget.c,
	score/src/schedulercbssetparameters.c:
	Remove checks for server_id < 0 (server_id is unsigned).
2011-12-06 07:12:42 +00:00
Ralf Corsepius
a10bf3725d 2011-12-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/inline/rtems/score/coremsg.inl (_CORE_message_queue_Send,
	_CORE_message_queue_Urgent):
2011-12-03 05:43:19 +00:00
Ralf Corsepius
a7d3e93bb4 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/rbtreeextract.c:
	Make _RBTree_Extract_validate_unprotected static.
	* score/src/rbtreeinsert.c:
	Make _RBTree_Validate_insert_unprotected static.
2011-12-02 16:46:49 +00:00
Ralf Corsepius
32a19d68f3 2011-12-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/src/tasks.c: Make _RTEMS_tasks_Create_extension,
	_RTEMS_tasks_Start_extension, _RTEMS_tasks_Delete_extension,
	_RTEMS_tasks_Switch_extension, _RTEMS_tasks_Post_switch_extension
	static.
	* score/src/scheduleredf.c: Make _Scheduler_EDF_RBTree_compare_function
	static.
2011-12-02 13:47:28 +00:00
Ralf Corsepius
6611a434e2 2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/objectinitializeinformation.c
	(_Objects_Initialize_information): Remove unused var "name_length".
2011-11-30 05:24:19 +00:00
Joel Sherrill
b0bd1b697c 2011-11-29 Joel Sherrill <joel.sherrilL@OARcorp.com>
PR 1967/cpukit
	* score/include/rtems/score/object.h,
	score/src/objectinitializeinformation.c: Remove
	OBJECTS_NAME_ALIGNMENT and uses.
2011-11-29 21:55:18 +00:00
Joel Sherrill
ece175945c 2011-11-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1941/cpukit
	* libmisc/monitor/mon-server.c, score/include/rtems/system.h: Remove
	use of RTEMS_offset() in favor of standard offsetof(). This was
	undocumented and there was only one internal use. Change noted in
	4.11 release notes.
2011-11-28 17:51:47 +00:00
Joel Sherrill
7e8ed4defc 2011-11-28 Werner Almesberger <werner@almesberger.net>
PR 1956/cpukit
	* rtems/score/cpu.h: Correct multiple alignment constants. Improve
	comments.
2011-11-28 17:36:35 +00:00
Joel Sherrill
e5a80202a8 2011-11-28 Werner Almesberger <werner@almesberger.net>
PR 1961/cpukit
	* score/src/coremsgsubmit.c: Close window caused by using message
	pending count rather than directly obtaining unused buffer.
2011-11-28 16:36:14 +00:00
Gedare Bloom
b4959ec327 2011-11-26 Gedare Bloom <gedare@rtems.org>
PR 1963
	* score/include/rtems/score/rbtree.h: Fix _RBTree_Container_of macro to
	use correct arithmetic.
2011-11-26 18:15:39 +00:00
Gedare Bloom
e3a1488ab6 2011-11-26 Gedare Bloom <gedare@rtems.org>
PR 1964
	* score/inline/rtems/score/chain.inl: Fix chain is first and last.
2011-11-26 18:10:39 +00:00
Sebastian Huber
6962842f55 Typo. 2011-11-20 14:59:41 +00:00
Sebastian Huber
bb92954067 2011-11-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1965/cpukit
	* rtems/score/arm.h: Select ARMv4 multilib implementation for
	__ARM_ARCH_7A__.
2011-11-19 14:34:10 +00:00
Sebastian Huber
b4f635e9d0 2011-11-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1924/cpukit
	* sapi/include/rtems/config.h: New fields stack_space_size,
	unified_work_area, and stack_allocator_avoids_work_space in
	rtems_configuration_table.
	* sapi/include/confdefs.h: Removed rtems_unified_work_area (this is
	now part of the Configuration).  Separate work space and stack space
	estimate.  Added CONFIGURE_TASK_STACK_ALLOCATOR_AVOIDS_WORK_SPACE
	configuration option.
	* libmisc/shell/main_wkspaceinfo.c, score/src/wkspace.c,
	libcsupport/src/malloc_initialize.c: Update due to API changes.
2011-11-10 14:40:13 +00:00
Joel Sherrill
529aa9d4a6 Move entries to correct file. 2011-11-09 18:51:59 +00:00
Joel Sherrill
634b14e551 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1954/cpukit
	* score/cpu/lm32/rtems/score/lm32.h: Protect against macro expansion.
2011-11-09 18:51:13 +00:00
Joel Sherrill
0f7afe507a 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1957/cpukit
	* score/include/rtems/score/coremutex.h,
	score/inline/rtems/score/threadmp.inl: Add parentheses to protect
	macro arguments.
2011-11-09 18:42:17 +00:00
Joel Sherrill
552a80fcbc 2011-11-09 Werner Almesberger <werner@almesberger.net>
PR 1955/cpukit
	* rtems/score/cpu.h: Convert CPU_swap_u16 into a static inline.
2011-11-09 15:15:25 +00:00
Sebastian Huber
6343ea4ef9 2011-11-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Removed unused register_pc from Context_Control.
2011-11-07 07:58:17 +00:00
Sebastian Huber
e2691dcb5d 2011-11-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1949/cpukit
	PR 1950/cpukit
	* rtems/score/arm.h: Select ARMv4 multilib implementation for
	__ARM_ARCH_6J__.
2011-11-07 07:48:11 +00:00
Ralf Corsepius
68b1b174d3 2011-10-24 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1942/cpukit:
	* score/src/schedulercbsdetachthread.c: Move initialization of var
	"sched_info" down (Avoid it being used uninitialized).
2011-10-24 12:54:50 +00:00
Sebastian Huber
d4a9594039 2011-10-21 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-mpu-configuration.c, nios2-mpu-descriptor.c,
	nios2-mpu-disable-protected.c, nios2-mpu-reset.c: New files.
	* Makefile.am: Reflect changes above.
	* rtems/score/nios2-utility.h, nios2-context-initialize.c: Added
	support for the memory protection unit (MPU).
2011-10-21 08:44:23 +00:00
Ralf Corsepius
050adc2712 2011-10-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/include/rtems/score/rbtree.h (_RBTree_Container_of):
	Use offsetof. Don't cast to size_t. Include <stddef.h>.
2011-10-20 11:58:54 +00:00
Jennifer Averett
35453000cc 2011-10-17 Daniel Hellstrom <daniel@gaisler.com>
PR 1935/cpukit
	* score/include/rtems/score/smplock.h, score/src/smplock.c: SMP nested
	count variable was being overritten when nested lock was taken more
	than once.
2011-10-17 18:51:44 +00:00
Sebastian Huber
d63f1c9243 2011-10-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1938/cpukit
	* score/include/rtems/score/thread.h: Removed obsolete suspend_count
	field from Thread_Control.
2011-10-17 15:54:41 +00:00
Joel Sherrill
8f582bc637 2011-10-07 Daniel Hellstrom <daniel@gaisler.com>
PR 1932/cpukit
	* cpu_asm.S: At some point the interrupt trap handler causes a
	window-overflow and the window overflow trap handler crashes when
	writing to 0. I found that this is because the WIM was bad, to the
	window overflow handler uses a uninitialized stack pointer in a
	window never used.
	 * g3=CWP, not WIM
	 * CWP is incremented by done_flushing no need doing that here also
	 * I see no reason to create an additional stack frame (save)
	 * Must turn off traps when updating WIM (maybe already done by caller?)
2011-10-07 14:31:44 +00:00
Joel Sherrill
100446d412 2011-10-07 Daniel Hellstrom <daniel@gaisler.com>
PR 1931/cpukit
	* score/src/percpu.c: The stack must be aligned to CPU alignment
	requirement.
2011-10-07 14:29:19 +00:00
Ralf Corsepius
742c140497 2011-10-07 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/threadhandler.c: Don't undefine __USE_INIT_FINI__ for
	the avr.
2011-10-07 11:06:21 +00:00
Joel Sherrill
4eeed0051b 2011-10-06 Gedare Bloom <giddyup44@yahoo.com>
PR 1918/cpukit
	* cpu.c: Initialize context with cleared g4 register.
2011-10-06 16:42:52 +00:00
Jennifer Averett
1072d53dcd 2011-10-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1922
	* score/include/rtems/score/schedulercbs.h, score/src/schedulercbs.c:
	EDF and CBS scheduler: extern declarations fix.
2011-10-04 15:18:59 +00:00
Ralf Corsepius
f2f1d34212 2011-10-03 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/src/scheduleredfupdate.c: Remove unused var "the_node".
2011-10-03 03:36:45 +00:00
Sebastian Huber
2d5458434b 2011-09-30 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-context-switch.S: Use small-data area access for
	_Per_CPU_Information fields.
2011-09-30 08:02:56 +00:00
Sebastian Huber
8d7aea0d28 2011-09-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* score/include/rtems/score/tod.h: Declare _TOD_Set_with_timestamp()
	and _TOD_Get_as_timestamp().
	* score/src/coretodset.c: Define _TOD_Set_with_timestamp().
	* score/src/coretodget.c: Define _TOD_Get_as_timestamp().
	* rtems/src/clockset.c: Use _TOD_Set_with_timestamp().
	* score/include/rtems/score/timestamp64.h, score/src/ts64set.c:
	Changed parameter types of _Timestamp64_Set().
	* rtems/src/clocktodtoseconds.c: Year 2100 is not a leap year.
2011-09-29 09:55:54 +00:00
Sebastian Huber
3a42e6fd10 2011-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1914/cpukit
	* score/src/timespecgreaterthan.c, score/src/ts64greaterthan.c:
	Removed files.
	* score/Makefile.am: Reflect changes above.
	* score/include/rtems/score/timespec.h,
	score/include/rtems/score/timestamp.h,
	score/include/rtems/score/timestamp64.h, score/src/ts64addto.c,
	score/src/ts64divide.c, score/src/ts64dividebyinteger.c,
	score/src/ts64equalto.c, score/src/ts64getnanoseconds.c,
	score/src/ts64getseconds.c, score/src/ts64lessthan.c,
	score/src/ts64set.c, score/src/ts64settozero.c,
	score/src/ts64subtract.c, score/src/ts64toticks.c,
	score/src/ts64totimespec.c: Use CPU_TIMESTAMP_USE_STRUCT_TIMESPEC,
	CPU_TIMESTAMP_USE_INT64, and CPU_TIMESTAMP_USE_INT64_INLINE.  Removed
	copy and paste.
2011-09-28 14:42:12 +00:00
Sebastian Huber
9c121991d7 2011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1914/cpukit
	* rtems/score/cpu.h: Select timestamp implementation.
2011-09-27 09:18:25 +00:00
Sebastian Huber
abd2530921 Typo. 2011-09-27 09:14:46 +00:00
Sebastian Huber
d063076340 2011-09-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1914/cpukit
	* rtems/score/cpu.h: Select timestamp implementation.
2011-09-27 09:14:03 +00:00
Joel Sherrill
a7d04d6333 2011-09-26 Petr Benes <benesp16@fel.cvut.cz>
PR 1923/testing
	* score/src/schedulercbsgetexecutiontime.c: Improve coverage.
2011-09-27 00:58:42 +00:00
Sebastian Huber
c5ed14844e 2011-09-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/armv7m.h, armv7m-context-initialize.c,
	armv7m-context-restore.c, armv7m-context-switch.c,
	armv7m-exception-handler-get.c, armv7m-exception-handler-set.c,
	armv7m-exception-priority-get.c, armv7m-exception-priority-set.c,
	armv7m-initialize.c, armv7m-isr-dispatch.c, armv7m-isr-enter-leave.c,
	armv7m-isr-level-get.c, armv7m-isr-level-set.c,
	armv7m-isr-vector-install.c, armv7m-multitasking-start-stop.c: New
	files.
	* Makefile.am, preinstall.am: Reflect changes above.
	* rtems/score/arm.h: Define ARM_MULTILIB_ARCH_V4 and
	ARM_MULTILIB_ARCH_V7M.
	* rtems/score/cpu.h, cpu_asm.S, cpu.c, arm_exc_abort.S,
	arm_exc_handler_high.c, arm_exc_handler_low.S, arm_exc_interrupt.S:
	Define CPU_HAS_HARDWARE_INTERRUPT_STACK to FALSE.  Use
	ARM_MULTILIB_ARCH_V4 and ARM_MULTILIB_ARCH_V7M.
2011-09-24 12:56:51 +00:00
Sebastian Huber
86c847c1da 2011-09-24 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1921/cpukit
	* score/inline/rtems/score/thread.inl,
	score/src/threadstartmultitasking.c: Allow CPU port to provide
	optional multitasking start and stop.
2011-09-24 12:45:55 +00:00
Sebastian Huber
f40139bb9b 2011-09-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
PR 1914/cpukit
	* rtems/score/cpu.h: Document CPU_TIMESTAMP_USE_STRUCT_TIMESPEC,
	CPU_TIMESTAMP_USE_INT64, and CPU_TIMESTAMP_USE_INT64_INLINE.
2011-09-22 07:16:06 +00:00
Joel Sherrill
40ee2fc0be 2011-09-20 Petr Benes <benesp16@fel.cvut.cz>
PR 1916/testing
	* rtems/src/ratemondelete.c, score/src/schedulercbsreleasejob.c,
	score/src/scheduleredfupdate.c, score/src/scheduleredfyield.c: Rework
	to improve coverage.
2011-09-20 13:06:42 +00:00
Sebastian Huber
9f1412b9dc 2011-09-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* nios2-eic-il-low-level.S, nios2-eic-rsie-low-level.S: New files.
	* Makefile.am: Reflect changes above.
	* rtems/score/cpu.h, rtems/score/nios2-utility.h,
	nios2-thread-dispatch-disabled.c, nios2-context-switch.S: Added
	support for thread stack protection via the MPU.
2011-09-16 10:25:22 +00:00
Sebastian Huber
3ce764a9eb 2011-09-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/arm.h: More CPU_MODEL_NAME variants.
2011-09-16 09:47:09 +00:00
Joel Sherrill
fdc70e2d4e 2011-09-15 Joel Sherrill <joel.sherrill@oarcorp.com>
* score/include/rtems/score/thread.h: Ensure CBS builds with POSIX
	disabled.
2011-09-15 17:09:15 +00:00
Joel Sherrill
82db8e5675 2011-09-15 Petr Benes <benesp16@fel.cvut.cz>
PR 1906/cpukit
	* sapi/Makefile.am, sapi/preinstall.am, sapi/include/confdefs.h,
	score/Makefile.am, score/preinstall.am: Add the CBS (Constant
	Bandwidth Server) scheduler. This is a complex scheduling policy
	built atop of the EDF scheduler. Unlike other schedulers, this one
	provides a user API and handles not only deadlines of tasks but also
	claimed budget per period. The main aim of the scheduler is isolation
	of tasks so that each task is guaranteed to meet all deadlines
	regardless of how other tasks behave.
	* sapi/include/rtems/cbs.h, sapi/inline/rtems/cbs.inl,
	score/include/rtems/score/schedulercbs.h, score/src/schedulercbs.c,
	score/src/schedulercbsattachthread.c,
	score/src/schedulercbscleanup.c,
	score/src/schedulercbscreateserver.c,
	score/src/schedulercbsdestroyserver.c,
	score/src/schedulercbsdetachthread.c,
	score/src/schedulercbsgetapprovedbudget.c,
	score/src/schedulercbsgetexecutiontime.c,
	score/src/schedulercbsgetparameters.c,
	score/src/schedulercbsgetremainingbudget.c,
	score/src/schedulercbsgetserverid.c,
	score/src/schedulercbsreleasejob.c,
	score/src/schedulercbssetparameters.c,
	score/src/schedulercbsunblock.c: New files.
2011-09-15 15:49:32 +00:00
Sebastian Huber
e41cec318a 2011-09-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Request cache alignment and small data area in
	CPU_STRUCTURE_ALIGNMENT.
2011-09-14 14:25:36 +00:00