Commit Graph

202 Commits

Author SHA1 Message Date
Ralf Corsepius
0e9008738c 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h, rtems/score/m68k.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-11 09:22:30 +00:00
Joel Sherrill
a44edd152f 2010-07-29 Gedare Bloom <giddyup44@yahoo.com>
PR 1635/cpukit
	* 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:52:00 +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
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
4ad5526709 2010-04-08 Till Straumann <strauman@slac.stanford.edu>
* cpu_asm.S, rtems/score/cpu.h: On uC5282, the thread restart needed to
	reload the frame pointer. As part of doing this, the code was moved
	from inline asm to the .S file.
2010-04-08 16:37:34 +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
Joel Sherrill
15fef9307a 2009-09-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Define CPU_STRUCTURE_ALIGNMENT to be on a 4 byte
	boundary.
2009-09-27 18:56:47 +00:00
Thomas Doerfler
da422590ae Define M68K_FP_STATE_SIZE also if used in assembler files. 2009-08-24 10:29:10 +00:00
Thomas Doerfler
3b7e9bcfcd cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point context initialization, save and restore code. 2009-05-15 07:20:38 +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
59b68bd1c8 2009-02-12 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Change prototype of IDLE thread to consistently
	return void * and take a uintptr_t argument.
2009-02-12 15:55:54 +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
314b835657 2008-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/m68k.h: Don't include rtems/score/types.h,
	rtems/stdint.h.
2008-12-17 06:35:31 +00:00
Ralf Corsepius
1cb54d1f38 #include <stdint.h> instead of <rtems/stdint.h>. 2008-12-11 00:47:56 +00:00
Joel Sherrill
4bbf70bd98 2008-09-19 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/m68k.h: Move set cacr, acr0, acr1 routines here to get
	them out of a BSP.
2008-09-19 15:52:09 +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
Joel Sherrill
edb1810e66 2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, rtems/score/cpu.h: Remove extraneous spaces.
2008-09-08 15:19:14 +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
1a7c300001 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Fix type when initializing FP context.
2008-08-19 18:46:20 +00:00
Joel Sherrill
60a3fa0c2e 2008-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, rtems/score/cpu.h: Add extern for bfffo table and rename it to
	indicate that it is specific to this architecture.
2008-08-19 14:19:12 +00:00
Joel Sherrill
432a662c1b 2008-07-31 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Correct prototype of Idle threads.
2008-07-31 14:55:54 +00:00
Thomas Doerfler
e0b8176076 added support for mcf548x 2008-07-11 10:05:13 +00:00
Thomas Doerfler
eed0491225 added irq-extension.h declarations 2008-07-10 12:56:31 +00:00
Chris Johns
805cddc0c4 hris Johns <chrisj@rtems.org>
* 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-16 23:37:42 +00:00
Joel Sherrill
1603ecd4b4 2008-06-13 Joel Sherrill <joel.sherrill@oarcorp.com>
* 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 22:13:02 +00:00
Chris Johns
e339d8b718 hris Johns <chrisj@rtems.org>
* 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-11 08:19:13 +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
253e4cf38f Update copyright date. 2008-02-26 16:35:47 +00:00
Joel Sherrill
b4df56ddb4 2008-01-22 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu_asm.S: Spacing and comment alignment.
2008-01-22 15:18:26 +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
7ccdfbb1c3 2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/m68k/m68302.h, rtems/m68k/m68360.h: Sweep to make sure grep for
	COPYRIGHT passes.
2007-12-17 16:12:41 +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
f9f8239628 2007-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Eliminate the interrupt_vector_table field in the
	m68k CPU Table since it is never read.
2007-11-26 21:19:52 +00:00
Ralf Corsepius
44ad1151c4 2007-08-04 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/m68k.h: Add stubs for mcf5307, mcf5407, mcfv4e.
2007-08-04 06:10:36 +00:00
Ralf Corsepius
ee69dc6967 2007-07-31 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu_asm.S, rtems/score/cpu.h, rtems/score/m68k.h:
	Replace M68K_COLDFIRE_ARCH with __mcoldfire__.
2007-07-31 16:48:47 +00:00
Ralf Corsepius
97c73edae6 Replace M68K_COLDFIRE_ARCH with __mcoldfire__. 2007-07-31 16:48:38 +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
203ed7ff8c Include <rtems/stdint.h> instead of <stdint.h>. 2007-05-09 15:56:13 +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
e08e6c4c21 2007-04-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h:
	  Use Context_Control_fp* instead of void* for fp_contexts.
2007-04-17 05:50:50 +00:00
Ralf Corsepius
14865ec7b9 Use Context_Control_fp* instead of void* for fp_contexts. 2007-04-17 05:50:27 +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
e5f55a1008 Fix formatting. 2006-06-21 13:52:18 +00:00
Till Straumann
412da6df02 PR1091/patch
* cpu_asm.S: Reduce mask from 0xffc to 0x3fc so only the vector
	bits are used when calculating the exception vector.
2006-06-19 23:22:04 +00:00
Joel Sherrill
32ecfd6f2e Formatting 2006-03-01 15:24:12 +00:00
Eric Norum
f7842ce207 Just "cc" in the clobbered register list for interrupt enable/disable/flash
operations.  The "memory" barrier will move the the generic interrupt
enable/disable/flash macros.
2006-02-28 20:50:03 +00:00