Commit Graph

201 Commits

Author SHA1 Message Date
Ralf Corsepius
f8958d9c7d 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/mips.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-11 08:54:08 +00:00
Joel Sherrill
031785a6cd 2011-01-04 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: _Thread_Executing was not used.
2011-01-04 15:33:31 +00:00
Joel Sherrill
479cbaf81d 2010-10-21 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add RTEMS_COMPILER_NO_RETURN_ATTRIBUTE to
	_CPU_Context_restore() because it does not return. Telling GCC this
	avoids generation of dead code.
2010-10-21 22:18:05 +00:00
Joel Sherrill
bfc76f9e1b 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* cpu_asm.S: Rename _Context_Switch_necessary to
	_Thread_Dispatch_necessary to more properly reflect the intent.
2010-07-30 18:52:12 +00:00
Joel Sherrill
4ef13360d6 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
	* rtems/score/cpu.h, rtems/score/types.h: Refactoring of priority
	handling, to isolate the bitmap implementation of priorities in the
	supercore so that priority management is a little more modular. This
	change is in anticipation of scheduler implementations that can
	select how they manage tracking priority levels / finding the highest
	priority ready task. Note that most of the changes here are simple
	renaming, to clarify the use of the bitmap-based priority management.
2010-07-29 17:51:56 +00:00
Sebastian Huber
89b85e5100 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Include <rtems/score/types.h> first.
	* rtems/score/types.h: Use <rtems/score/basedefs.h> header file.
2010-07-16 08:46:29 +00:00
Joel Sherrill
9787ee22a1 2010-07-01 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/asm.h, rtems/score/cpu.h: cpu.h defines were not available to
	assembly programs. This resulted in percpu.h (when included from
	assembly) not being able to detect that the MIPS does not have a
	dedicated software managed interrupt stack.
2010-07-01 19:43:29 +00:00
Joel Sherrill
6d42b4c60a 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1573/cpukit
	* cpu_asm.S, rtems/score/cpu.h: Add a per cpu data structure which
	contains the information required by RTEMS for each CPU core. This
	encapsulates information such as thread executing, heir, idle and
	dispatch needed.
2010-06-29 00:34:00 +00:00
Joel Sherrill
9b5f06cd43 2010-06-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu_asm.S: Remove trailing tabs.
2010-06-16 17:25:55 +00:00
Joel Sherrill
a0cb87cbfc 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move _CPU_Context_Initialize() to cpu.c so
	it is easier to make warning free.
2010-04-25 21:37:46 +00:00
Joel Sherrill
524055a909 2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* rtems/score/cpu.h: Remove warning in _CPU_Context_Initialize.
2010-04-25 14:58:27 +00:00
Joel Sherrill
febaa8a411 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.S: Add include of config.h
2010-03-27 15:03:09 +00:00
Ralf Corsepius
5bb38e1566 Whitespace removal. 2009-12-04 05:25:30 +00:00
Chris Johns
bf7cc57b0a 2009-06-18 Chris Johns <chrisj@rtems.org>
* score/cpu/mips/rtems/mips/idtcpu.h: Missed another WAIT
        define. Removed.
2009-06-17 21:15:16 +00:00
Chris Johns
3967dbe4d3 Fixed nested includes. 2009-06-14 23:33:44 +00:00
Chris Johns
4896ab5dfc 2009-06-15 Chris Johns <chrisj@rtems.org>
* score/cpu/mips/rtems/mips/idtcpu.h: Remote WAIT define. Horrible
        overload.
2009-06-14 23:31:05 +00:00
Joel Sherrill
0067feb693 2009-03-12 Joel Sherrill <joel.sherrill@OARcorp.com>
PR 1385/cpukit
	* cpu_asm.S: When the type rtems_boolean was switched to the C99 bool,
	the size changed from 4 bytes to 1 byte. The interrupt dispatching
	code accesses two boolean variables for scheduling purposes and the
	assembly implementations of this code did not get updated.
2009-03-12 14:16:50 +00:00
Joel Sherrill
cca8379862 2009-02-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, rtems/score/cpu.h: Change prototype of IDLE thread to
	consistently return void * and take a uintptr_t argument.
2009-02-12 15:55:55 +00:00
Joel Sherrill
c03e2bc8c7 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and
	passing address of _Thread_Dispatch to _CPU_Initialize. Clean up
	comments.
2009-02-11 21:45:05 +00:00
Ralf Corsepius
1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00
Ralf Corsepius
383871acea Fix typo. 2008-12-07 11:25:55 +00:00
Ralf Corsepius
6162bc2a1d 2008-09-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Do not define boolean, single_precision,
	double_precision unless RTEMS_DEPRECATED_TYPES is given.
2008-09-11 14:10:16 +00:00
Ralf Corsepius
b7b6100115 2008-08-21 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Include stdbool.h.
	Use bool as base-type for boolean.
2008-08-21 04:10:51 +00:00
Ralf Corsepius
30e2df697a Include stdbool.h. Use bool as base-type for boolean. 2008-08-21 04:10:35 +00:00
Joel Sherrill
3c87adba3f 2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads.
2008-07-31 14:55:56 +00:00
Joel Sherrill
2fd427c792 2008-06-05 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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-05 14:30:07 +00:00
Joel Sherrill
5a5bfea588 2008-06-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* 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-04 14:55:01 +00:00
Joel Sherrill
0ca6d0d938 2007-12-17 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility.
2007-12-17 22:35:25 +00:00
Joel Sherrill
ee29de05bc 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Move interrupt_stack_size field from CPU
	Table to Configuration Table. Eliminate CPU Table from all ports.
	Delete references to CPU Table in all forms.
2007-12-04 22:19:10 +00:00
Joel Sherrill
4b89ba70ea 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Moved most of the remaining CPU Table fields to
	the Configuration Table. This included pretasking_hook,
	predriver_hook, postdriver_hook, idle_task, do_zero_of_workspace,
	extra_mpci_receive_server_stack, stack_allocate_hook, and
	stack_free_hook. As a side-effect of this effort some multiprocessing
	code was made conditional and some style clean up occurred.
2007-12-03 22:22:55 +00:00
Joel Sherrill
e4d4eb9c54 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Eliminate the clicks_per_microsecond field in the
	MIPS CPU Table and define another mechanism for drivers to obtain
	this information.
2007-11-26 22:36:04 +00:00
Ralf Corsepius
72b4469ed4 2007-08-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Use uintptr_t instead of uint32_t.
2007-08-04 06:07:30 +00:00
Ralf Corsepius
11f2bf591f 2007-08-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* score/cpu/mips/rtems/score/cpu.h: Use uintptr_t instead of
	  uint32_t.
2007-08-04 06:06:26 +00:00
Joel Sherrill
60f016f59d 2007-05-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* score/cpu/arm/cpu.c, score/cpu/avr/cpu.c, score/cpu/bfin/cpu.c,
	score/cpu/c4x/cpu.c, score/cpu/h8300/cpu.c, score/cpu/i386/cpu.c,
	score/cpu/m68k/cpu.c, score/cpu/mips/cpu.c, score/cpu/nios2/cpu.c,
	score/cpu/no_cpu/cpu.c, score/cpu/sh/cpu.c, score/cpu/sparc/cpu.c,
	cpukit/sapi/src/exinit.c: Move copying of CPU Table to shared
	executive initialization.
2007-05-22 20:57:34 +00:00
Ralf Corsepius
8b56aa3dea 2007-05-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Remove CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES.
2007-05-09 15:28:52 +00:00
Ralf Corsepius
f2c2caa5e9 2007-04-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h:
	  Use Context_Control_fp* instead of void* for fp_contexts.
	  Eliminate evil casts.
2007-04-17 05:43:02 +00:00
Ralf Corsepius
0edd196e46 Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
2007-04-17 05:42:54 +00:00
Ralf Corsepius
63a88eb0bc Regenerate. 2007-01-08 08:43:28 +00:00
Ralf Corsepius
795da078a1 2006-11-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Remove unsigned64, signed64.
2006-11-17 05:58:06 +00:00
Joel Sherrill
cf5f68d602 2006-06-02 Greg Menke <gregory.menke@gsfc.nasa.gov>
* cpu.c: Added __mips==32 to fix build problems on those targets
	caused by the Bruce Robinson.
2006-06-10 12:33:12 +00:00
Greg Menke
25571ae49f Added __mips==32 to fix build problems on those targets caused by the B.Robinson patch 2006-06-10 10:42:07 +00:00
Greg Menke
7c99007641 B.Robinson MIPS patch 2006-06-08 18:03:55 +00:00
Ralf Corsepius
a3de1b48f6 2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* cpu.c (_CPU_Initialize): Add fpu initialization.
2006-03-17 08:38:26 +00:00
Ralf Corsepius
01a76a6f9f 2006-03-17 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Setup CPU_*_ENDIAN from GCC's__MIPS{EL|EB}__.
	(Partial merger of submission by Bruce Robinson <brucer@pmccorp.com>).
2006-03-17 05:24:30 +00:00
Joel Sherrill
ece004d72a 2006-01-16 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Part of a large patch to improve Doxygen output.
	As a side-effect, grammar and spelling errors were corrected, spacing
	errors were address, and some variable names were improved.
2006-01-16 15:12:44 +00:00
Ralf Corsepius
2eb7d07e17 Regenerate. 2006-01-14 06:20:35 +00:00
Ralf Corsepius
e24ae58a97 Regenerate. 2006-01-13 08:43:48 +00:00
Ralf Corsepius
4e971660a1 Remove all-local. 2006-01-12 09:57:43 +00:00
Ralf Corsepius
6ce2a66b94 Regenerate. 2006-01-12 04:24:13 +00:00
Ralf Corsepius
dbe8e5194c Cleanups 2006-01-12 04:19:28 +00:00