Commit Graph

161 Commits

Author SHA1 Message Date
Ralf Corsepius
3631c234d8 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/powerpc/registers.h, rtems/score/cpu.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-11 09:24:09 +00:00
Sebastian Huber
7171baf72b 2011-01-31 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Changed Freescale EIS prefix.  More
	Freescale EIS defines.  Added MSR_IS, MSR_DS, and MSR_PMM defines.
2011-01-31 15:46:13 +00:00
Sebastian Huber
20109f3089 2011-01-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Added BOOKE_PIR define.
2011-01-26 15:20:46 +00:00
Sebastian Huber
4b25ab8b9c 2010-10-29 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Added HID2 define.  Fixed comments.
2010-10-29 07:32:30 +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
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
af16a7d29a 2010-07-16 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/new-exceptions/cpu.h: Removed file.
	* Makefile.am, preinstall.am: Reflect change above.
	* rtems/score/cpu.h: Include <rtems/score/types.h> first.  Added
	contents of <rtems/new-exceptions/cpu.h>.
	* rtems/score/types.h: Use <rtems/score/basedefs.h> header file.
2010-07-16 08:45:02 +00:00
Sebastian Huber
390dadd2c5 2010-06-30 Peter Dufault <dufault@hda.com>
PR 1588/cpukit
	* rtems/powerpc/registers.h: Renamed defines SR0 .. SR15 in
	PPC_SR0 ..  PPC_SR15.
2010-06-30 07:43:00 +00:00
Joel Sherrill
b275a14463 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1573/cpukit
	* rtems/new-exceptions/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:33:15 +00:00
Joel Sherrill
8eff201acf 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Add include of config.h
2010-03-27 15:02:31 +00:00
Till Straumann
6c28773ec4 2009-12-01 Till Straumann <strauman@slac.stanford.edu>
* score/cpu/powerpc/rtems/score/cpu.h: Added space for non-
	volatile AltiVec registers to context struct. Added declaration
	for AltiVec-related routines to be implemented by CPU/BSP
	support.
2009-12-02 01:24:52 +00:00
Thomas Doerfler
3fcc78aef9 move timebase access functions from cpukit to libcpu 2009-10-30 19:28:46 +00:00
Thomas Doerfler
2067679bb3 * rtems/powerpc/registers.h: Added defines DEAR_BOOKE and DEAR_405.
* rtems/score/cpu.h: Changed fpscr field to an integer type in
        Context_Control_fp.  Fixed warnings in PPC_Set_timebase_register().
        Changed _CPU_Context_Initialize_fp() to initialize all fields and
        avoid floating-point instructions.
        * rtems/score/powerpc.h: Removed PPC_INIT_FPSCR define.
2009-10-21 13:19:09 +00:00
Thomas Doerfler
cd4ed38422 * rtems/powerpc/registers.h: Added Freescale Book E Implementation
Standards (EIS) special purpose register definitions for MMU and L1
	cache.
2009-02-27 11:06:21 +00:00
Joel Sherrill
ef1be69b65 2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/new-exceptions/cpu.h, 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:44:59 +00:00
Joel Sherrill
5c8d42b7b2 2008-09-14 Joel Sherrill <joel.sherrill@oarcorp.com>
* rtems/score/cpu.h: Move extern of bsp_clicks_per_usec so it is not
	nested inside braces.
2008-09-14 23:17:13 +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
8f5cdbb8ec 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/new-exceptions/cpu.h, rtems/score/cpu.h: Convert to "bool".
2008-09-05 01:59:18 +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
Joel Sherrill
b281e425ab 2008-08-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/powerpc/registers.h: Removed obsolete defines MSR_, MSR_KERNEL
	and MSR_USER.  Added missing prototypes.
2008-08-14 15:24:51 +00:00
Joel Sherrill
334b3c1e83 2008-08-04 Sebastian Huber <sebastian.huber@embedded-brains.de>
* 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 13:32:27 +00:00
Thomas Doerfler
d3c321367c Changed special purpose register inline functions to macros.
fixed some minors in mpc83xx support
added file for mpc55xx watchdog support
2008-07-18 15:56:48 +00:00
Thomas Doerfler
3c6fe2e7f9 added haleakala BSP contributed by Michael Hamel 2008-07-14 08:46:06 +00:00
Thomas Doerfler
767cdd8470 adapted for modified exception code 2008-07-11 10:04:40 +00:00
Ralf Corsepius
3556e40610 2008-02-20 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/old-exceptions/cpu.h: Remove (Abandoned).
	* rtems/score/cpu.h: Remove ref to rtems/old-exceptions/cpu.h.
	* Makefile.am: Remove ref to rtems/old-exceptions/cpu.h.
2008-02-20 03:03:16 +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
43b4c7aa51 2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/powerpc/registers.h, rtems/score/cpu.h: Sweep to make sure grep
	for COPYRIGHT passes.
2007-12-17 16:12:45 +00:00
Till Straumann
aeca15c87b 2007-12-03 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/registers.h: added definitions for MSR_CE,
	MSR_DE (bookE).
2007-12-07 21:24:33 +00:00
Joel Sherrill
e7344db98f 2007-12-06 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/old-exceptions/cpu.h: Remove extra ifndef.
2007-12-06 23:23:05 +00:00
Joel Sherrill
2906c7a5b4 2007-12-04 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h,
	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:05 +00:00
Till Straumann
8dc42d3e8b 2007-12-03 Till Straumann <strauman@slac.stanford.edu>
* rtems/score/cpu.h: Added comment that GDB patch sim/2376
	is needed for reading the time-base with the new (more
	portable) method.
2007-12-03 23:20:30 +00:00
Joel Sherrill
282048a516 2007-12-03 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/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:01 +00:00
Till Straumann
e72dc606b6 2007-11-30 Till Straumann <strauman@slac.stanford.edu>
* rtems/score/cpu.h: Wonderful bookE doesn't have mftb/mftbu;
	( CPU_Get_timebase_low() ) they only define the TBRU/TBRL SPRs
	so we use these. Should work on all CPUs.
2007-12-01 00:47:13 +00:00
Joel Sherrill
e34ac1f3b8 2007-11-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h,
	rtems/score/cpu.h: Eliminate PowerPC specific elements from the CPU
	Table. They have been replaced with variables named bsp_XXX as
	needed.
2007-11-28 21:43:56 +00:00
Till Straumann
61c98010e6 2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* rtems/score/powerpc.h: Added a '__ppc_generic' CPU variant.
	The goal would be making cpukit and hopefully libcpu work
	for all (or at least most) CPUs/BSPs with -D__ppc_generic so
	that eventually all tests [#if defined(<cpu_flavor>)] for CPU
	flavors can be eliminated.
2007-11-14 05:19:59 +00:00
Till Straumann
6ae32a269e 2007-11-13 Till Straumann <strauman@slac.stanford.edu>
* rtems/powerpc/registers.h: Added SPR definitions for BookE
	DECAR, TCR, TSR.
2007-11-14 04:26:00 +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
8ea0d7dabd 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:58:04 +00:00
Ralf Corsepius
195e209a90 2006-12-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/ppc.h: Remove (Deprecated in 4.7).
	* Makefile: Remove rtems/score/ppc.h.
2006-12-12 13:26:06 +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
a19034d902 2006-08-09 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Because gcc implicitly uses floating point turn on
	floating point for all threads if there is a hardware FPU.
2006-08-09 23:04:47 +00:00
Till Straumann
a031fc2272 * rtems/old-exceptions/cpu.h, rtems/powerpc/registers.h:
Checked inline assembly; added early-clobber '&' to output operands
	of multi-instruction asms.
2006-07-13 00:36:15 +00:00
Joel Sherrill
5961b4c784 2006-01-16 Joel Sherrill <joel@OARcorp.com>
* rtems/new-exceptions/cpu.h, rtems/old-exceptions/cpu.h,
	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:30 +00:00
Ralf Corsepius
7a3f0188b5 2005-11-08 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/types.h: Eliminate unsigned16, unsigned32.
2005-11-08 19:01:45 +00:00
Joel Sherrill
086c1c3b9e Fixed formatting. 2005-11-07 16:19:21 +00:00
Till Straumann
2628ebba04 2005-11-02 straumanatslacdotstanford.edu
* rtems/powerpc/registers.h: recognize mpc7457 CPU; added definitions
    for high bats (#4..7) on 7450 CPUs
2005-11-02 23:25:39 +00:00
Ralf Corsepius
c6ea319b12 2005-10-27 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/asm.h: Remove private version of CONCAT macros.
	Include <rtems/concat.h> instead.
2005-10-27 07:29:04 +00:00
Jennifer Averett
7bd80cff8d 2005-05-06 Jennifer Averett <jennifer.averett@oarcorp.com>
* rtems/score/powerpc.h: Removed warning
2005-05-06 20:08:09 +00:00
Ralf Corsepius
8d1928f562 2005-02-21 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/score/powerpc.h: Add  "defined(mpc7400) || defined(mpc7450)
	|| defined(mpc7455)" to altivec (gcc-3.2.x compatibility).
2005-02-21 16:40:43 +00:00
Ralf Corsepius
e170e571d6 2005-02-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* rtems/new-exceptions/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
	CPU_IDLE_TASK_IS_FP): Remove.
	* rtems/old-exceptions/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
	CPU_IDLE_TASK_IS_FP): Remove.
	* rtems/score/cpu.h (CPU_HARDWARE_FP, CPU_ALL_TASKS_ARE_FP,
	CPU_IDLE_TASK_IS_FP, CPU_SOFTWARE_FP): New.
2005-02-18 11:28:56 +00:00