Commit Graph

719 Commits

Author SHA1 Message Date
Joel Sherrill
293c0e30f8 2002-03-13 Greg Menke <gregory.menke@gsfc.nasa.gov>
* cpu_asm.S: Fixed a sneaky return from int w/ ints disabled bug.
	* rtems/score/cpu.h: Fixed register numbering in comments and made
	interrupt enable/disable more robust.
2002-03-15 19:47:36 +00:00
Joel Sherrill
544a600848 2002-03-15 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/m68k.h: m68k_swap_u32 fix typo.
2002-03-15 13:56:21 +00:00
Joel Sherrill
8264d230a9 2002-03-05 Greg Menke <gregory.menke@gsfc.nasa.gov>
* cpu_asm.S: Added support for the debug exception vector, cleaned
	up the exception processing & exception return stuff.  Re-added
	EPC in the task context structure so the gdb stub will know where
	a thread is executing.  Should've left it there in the first place...
	* idtcpu.h: Added support for the debug exception vector.
	* cpu.c: Added ___exceptionTaskStack to hold a pointer to the
	stack frame in an interrupt so context switch code can get the
	userspace EPC when scheduling.
	* rtems/score/cpu.h: Re-added EPC to the task context.
2002-03-08 16:24:48 +00:00
Joel Sherrill
9f9871f81e 2002-03-06 Victor V. Vengerov <vvv@oktet.ru>
* rtems/score/m68k.h [M68K_COLDFIRE_ARCH] (CPU_swap_u16, CPU_swap_u32):
	Generic implementation of endian swap primitives added for Coldfire
	family.
2002-03-06 14:37:38 +00:00
Joel Sherrill
bd1ecb00d9 2002-02-27 Greg Menke <gregory.menke@gsfc.nasa.gov>
* cpu_asm.S: Fixed exception return address, modified FP context
	switch so FPU is properly enabled and also doesn't screw up the
	exception FP handling.
	* idtcpu.h: Added C0_TAR, the MIPS target address register used for
	returning from exceptions.
	* iregdef.h: Added R_TAR to the stack frame so the target address
	can be saved on a per-exception basis.  The new entry is past the
	end of the frame gdb cares about, so doesn't affect gdb or cpu.h
	stuff.
	* rtems/score/cpu.h: added an #ifdef so cpu_asm.S can include it
	to obtain FPU defines without systax errors generated by the C
	defintions.
	* cpu.c: Improved interrupt level saves & restores.
2002-03-01 16:21:12 +00:00
Joel Sherrill
2433bcaf86 2001-02-27 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: Fix conditional to match current GCC.
2002-02-27 21:45:19 +00:00
Joel Sherrill
afb802cd59 2002-02-13 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Fix the test to determine cpu context size.
2002-02-13 14:29:42 +00:00
Joel Sherrill
9099a851f3 2002-02-08 Joel Sherrill <joel@OARcorp.com>
* iregdef.h, rtems/score/cpu.h: Reordered register in the
	exception stack frame to better match gdb's expectations.
2002-02-08 23:04:03 +00:00
Joel Sherrill
a37b8f95b7 2001-02-05 Joel Sherrill <joel@OARcorp.com>
* cpu_asm.S: Enhanced to save/restore more registers on
	exceptions.
	* rtems/score/cpu.h (CPU_Interrupt_frame): Enhanced to list every
	register individually and document when it is saved.
	* idtcpu.h: Added constants for the coprocessor 1 registers
	revision and status.
2002-02-05 21:04:39 +00:00
Joel Sherrill
7d7e9fbb6a 2001-02-05 Joel Sherrill <joel@OARcorp.com>
* .cvsignore: Added stamp-h.in.
2002-02-05 20:07:35 +00:00
Joel Sherrill
9535ba4603 2001-02-05 Joel Sherrill <joel@OARcorp.com>
* rtems/Makefile.am, rtems/score/Makefile.am: Removed again.
2002-02-05 16:17:37 +00:00
Joel Sherrill
0bc5329df8 2001-02-04 Joel Sherrill <joel@OARcorp.com>
* rtems/score/cpu.h: IDLE task should not be FP.  This was a mistake
	in the previous patch that has now been confirmed.
2002-02-04 20:05:30 +00:00
Joel Sherrill
96ecd879f8 2001-02-04 Joel Sherrill <joel@OARcorp.com>
* configure.ac: Removed references to rtems/Makefile and
	rtems/score/Makefile.
2002-02-04 19:49:08 +00:00
Joel Sherrill
e6dec71c27 2001-02-01 Greg Menke <gregory.menke@gsfc.nasa.gov>
* cpu.c: Enhancements and fixes for modifying the SR when changing
	the interrupt level.
	* cpu_asm.S: Fixed handling of FP enable bit so it is properly
	managed on a per-task basis, improved handling of interrupt levels,
	and made deferred FP contexts work on the MIPS.
	* rtems/score/cpu.h: Modified to support above changes.
2002-02-01 15:00:30 +00:00
Joel Sherrill
6d41a8747c 2002-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect 2002-01-23 changes.
2002-02-01 14:11:39 +00:00
Joel Sherrill
d8a78f4fb5 2002-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect 2002-01-23 changes.
2002-01-31 21:33:38 +00:00
Joel Sherrill
1e69b29461 2002-01-31 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
	* Makefile.am: Reflect changes above.
2002-01-31 21:33:01 +00:00
Joel Sherrill
845fac3384 2001-01-30 Joel Sherrill <joel@OARcorp.com>
* Makefile.am: Corrected so .h files from rtems/score/ are installed.
2002-01-30 22:46:17 +00:00
Joel Sherrill
1dba8de01a 2001-01-30 Joel Sherrill <joel@OARcorp.com>
* Makefile.am: Corrected so .h files from rtems/score/ are installed.
2002-01-30 22:18:04 +00:00
Joel Sherrill
14926c2e4b 2002-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
	* Makefile.am: Reflect changes above.
2002-01-30 17:48:22 +00:00
Joel Sherrill
8b25dc6bd0 2002-01-29 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
	* Makefile.am: Reflect changes above.
2002-01-30 17:45:23 +00:00
Joel Sherrill
7a01fba127 2002-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
	* Makefile.am: Reflect changes above.
2002-01-30 14:34:00 +00:00
Joel Sherrill
dfca13fc63 2002-01-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Reflect changes from 2002-01-23.
2002-01-30 14:33:30 +00:00
Joel Sherrill
a94c2fbba4 2002-01-29 Joel Sherrill <joel@OARcorp.com>
* include/rtems/score/watchdog.h: Added WATCHDOG_MAXIMUM_INTERVAL.
2002-01-29 18:18:26 +00:00
Joel Sherrill
59bcc90fee 2002-01-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
	AC_CONFIG_SRCDIR(asm.h).
2002-01-24 14:13:40 +00:00
Joel Sherrill
c3a79faaf2 2002-01-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* configure.ac: Reflect changes above.
2002-01-24 14:13:31 +00:00
Joel Sherrill
1feedea303 2002-01-23 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Merge in rtems/Makefile.am and
	rtems/score/Makefile.am. Remove gensize. Require automake-1.5.
	* rtems/Makefile.am: Removed.
	* rtems/score/Makefile.am: Removed.
	* rtems/score/.cvsignore: Add unixsize.h*. Add stamp-h*.
	* configure.ac: Add AM_CONFIG_HEADER(rtems/score/unixsize.h).
	* rtems/score/cpu.h: Replace CPU_CONTEXT_SIZE_IN_BYTES with
	SIZEOF_CPU_CONTEXT.
2002-01-24 14:13:15 +00:00
Joel Sherrill
b0f78e882a 2002-01-21 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/Makefile.am: New.
	* rtems/.cvsignore: New.
	* rtems/score/Makefile.am: New.
	* rtems/score/.cvsignore: New.
	* rtems/score/ppc.h: Relocated from shared/.
	* rtems/score/ppctypes.h: Relocated from shared/.
	* asm.h: Relocated from shared/.
	* shared/Makefile.am: Removed.
	* shared/asm.h: Removed.
	* shared/ppc.h: Removed.
	* shared/ppctypes.h: Removed.
	* shared/.cvsignore: Removed.
	* Makefile.am: Reflect changes above.
	* configure.ac: Reflect changes above.
2002-01-22 17:55:27 +00:00
Joel Sherrill
5addee5839 2002-01-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/system.h: Fix typo in yesterday's change:
	RTEMS_MULTILIBS.
2002-01-20 17:05:36 +00:00
Joel Sherrill
61129cc54f 2001-01-18 Joel Sherrill <joel@OARcorp.com>
* include/rtems/system.h: Only include cpuopts.h when building a
	multilib configuration.  Some ports still need targopts.h but this
	small modification lets those ports work non-multilib while
	fixing being fixed for multilib.
2002-01-18 22:33:49 +00:00
Joel Sherrill
38fcef5cf4 2002-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* asm.h: Remove #include <rtems/score/targopts.h>.
	Add #include <rtems/score/cpuopts.h>.
2002-01-16 22:52:51 +00:00
Joel Sherrill
d49ce826ae 2002-02-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* asm.h: Remove #include <rtems/score/targopts.h>.
	Add #include <rtems/score/cpuopts.h>.
	* configure.ac: Remove RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP).
2002-01-16 22:52:41 +00:00
Joel Sherrill
b8caf37ea3 2002-01-07 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* rtems/score/cpu.h: #include <rtems/bspIo.h>.
2002-01-08 12:03:05 +00:00
Joel Sherrill
1bab6c6d02 2002-02-05 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Remove RTEMS_CHECK_CUSTOM_BSP.
2002-01-06 20:10:21 +00:00
Joel Sherrill
d56918c9bd 2002-01-03 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* cpu.c: Include rtems/bspIo.h instead of bspIo.h.
2002-01-06 20:05:09 +00:00
Joel Sherrill
b72e368c35 2002-01-04 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* include/rtems/seterr.h: Add do {..} while (0) in defines.
	Rename set_errno_and_return_minus_one into
	rtems_set_errno_and_return_minus_one.
2002-01-04 18:29:03 +00:00
Joel Sherrill
e6dc43dac4 2001-12-20 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* configure.ac: Use RTEMS_ENV_RTEMSCPU.
2001-12-20 17:32:10 +00:00
Joel Sherrill
b804d632c0 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* inline/rtems/score/object.inl, macros/rtems/score/object.inl: Add
	add casts to Objects_Id in _Objects_Build_ids to avoid implicit
	typecasts from enum to int16 on bit16 targets (here: h8300).
2001-12-20 17:30:18 +00:00
Joel Sherrill
ca837f8ac6 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* src/Makefile.am: Add multilib support.
2001-12-19 14:36:53 +00:00
Joel Sherrill
e9718415b4 2001-12-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Add multilib support.
2001-12-19 14:36:28 +00:00
Joel Sherrill
7e950a4420 2001-12-09 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* asm.h: include cpuopts.h instead of targopts.h
	* rtems/score/arm.h: Use __arm__.
2001-12-18 14:09:49 +00:00
Joel Sherrill
89ee0b6936 2001-11-28 Joel Sherrill <joel@OARcorp.com>,
This was tracked as PR91.
	* include/rtems/score/isr.h, inline/rtems/score/isr.inl,
	macros/rtems/score/isr.inl: Modified to allow any port to provide
	its own implementation of the macro _ISR_Is_in_progress.  If the
	port overrides this macro, it must provide a non-inlined function
	implementation.
2001-11-28 18:28:24 +00:00
Joel Sherrill
4db3028304 2001-11-28 Joel Sherrill <joel@OARcorp.com>,
This was tracked as PR91.
	* rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which
	is used to specify if the port uses the standard macro for this (FALSE).
	A TRUE setting indicates the port provides its own implementation.
2001-11-28 18:16:00 +00:00
Joel Sherrill
75ad73760f 2001-11-28 Joel Sherrill <joel@OARcorp.com>,
This was tracked as PR91.
	* rtems/score/cpu.h: Added CPU_PROVIDES_ISR_IS_IN_PROGRESS macro which
	is used to specify if the port uses the standard macro for this (FALSE).
	A TRUE setting indicates the port provides its own implementation.
	* rtems/score/c_isr.inl: Deleted and contents merged into cpu.c.
	* cpu.c: Received contents of c_isr.inl.
	* Makefile.am: Deleted reference to c_isr.inl.
2001-11-28 18:15:51 +00:00
Joel Sherrill
a862d15b19 2001-11-20 Joel Sherrill <joel@OARcorp.com>
* support/new_exception_processing/configure.ac,
	support/new_exception_processing/rtems/score/c_isr.inl,
	support/new_exception_processing/rtems/score/cpu.h,
	support/old_exception_processing/configure.ac,
	support/old_exception_processing/rtems/score/c_isr.inl,
	support/old_exception_processing/rtems/score/cpu.h,
	support/old_exception_processing/rtems/score/ppc_offs.h: New files
	missed in previous commit.
2001-11-20 20:53:39 +00:00
Joel Sherrill
94ab166c67 2001-11-20 Joel Sherrill <joel@OARcorp.com>
* src/threadhandler.c: When __USE__MAIN__ is defined by the toolset,
	invoke the global constructors via __main.  Reported as tested by
	Alexandra Kossovsky <sasha@oktet.ru> and  Victor V. Vengerov
	<vvv@oktet.ru> in conjunction with a new set of tool RPMs
	(gcc2.95.3newlib1.9.0-3).  This was tracked as GNATS PR tools/84.
2001-11-20 18:22:35 +00:00
Joel Sherrill
ffcb102fd9 2001-11-14 Joel Sherrill <joel@OARcorp.com>
* shared/ppc.h: The mpc8260 uses the new exception processing model
	and thus does not need to define PPC_USE_SPRG.
2001-11-14 20:45:36 +00:00
Joel Sherrill
2b5c094f1c 2001-11-14 Andrew Dachs <A.Dachs@SSTL.co.uk>
* shared/ppc.h: mpc8260 has double FPU not single FPU.
2001-11-14 20:16:53 +00:00
Joel Sherrill
95e0ca9337 2001-11-08 Dennis Ehlin (ECS) <Dennis.Ehlin@ecs.ericsson.se>
This modification is part of the submitted modifications necessary to
	support the IBM PPC405 family.  This submission was reviewed by
	Thomas Doerfler <Thomas.Doerfler@imd-systems.de> who ensured it did
	not negatively impact the ppc403 BSPs.  The submission and tracking
	process was captured as PR50.
	* shared/asm.h, shared/ppc.h: Added PPC405 support.
2001-11-08 23:32:59 +00:00
Joel Sherrill
c31c15c16c 2001-11-07 Joel Sherrill <joel@OARcorp.com>
Reported by Todor.Todorov@barco.com and tracked as PR36.
	* include/rtems/score/object.h: Added prototype for
	_Objects_Get_by_index().
	* src/objectget.c, src/objectgetisr.c: Corrected procedure for
	getting index from Id so it is correct and optimal for both single
	and multiprocessor configurations.
2001-11-07 22:42:04 +00:00