Commit Graph

55 Commits

Author SHA1 Message Date
Ralf Corsepius
566fa34827 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-11 09:11:57 +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
6ff1925393 2010-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/score/cpu.h: Assembler compatibility fixes.
2010-07-27 10:57:31 +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
d5ec048032 2010-06-16 Joel Sherrill <joel.sherrilL@OARcorp.com>
* cpu_asm.S: Use SYM macro to be consistent with other ports.
2010-06-16 17:19:31 +00:00
Joel Sherrill
32eadeb250 2010-04-20 Allan Hessenflow <allanh@kallisti.com>
* cpu_asm.S: L0-L3 were part of the interrupt context, but as
	Mike Frysinger noted they were not being zeroed before calling
	the C handlers. A patch that corrects this, as well as improving
	some of the push/pop order to avoid stalls.
2010-04-20 13:27:48 +00:00
Joel Sherrill
dace69bfc4 2010-04-17 Allan Hessenflow <allanh@kallisti.com>
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Fine tune registers saved in the
	context. The sp and imask registers need to be saved. Also allocated
	12 bytes on the stack at thread entry as the abi requires that.
2010-04-17 19:24:16 +00:00
Joel Sherrill
340d782ab8 2010-04-17 Mike Frysinger <vapier.adi@gmail.com>
* cpu.c: Blackfin ABI requires L registers to be 0 upon function entry.
2010-04-17 17:34:34 +00:00
Joel Sherrill
ff8dd26afa 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am: Remove unused file.
	* irq.c: Removed.
2010-03-27 14:59:26 +00:00
Ralf Corsepius
42e243eeef Whitespace removal. 2009-12-04 04:27:21 +00:00
Joel Sherrill
3fb3de14ff PR fixed. 2009-05-27 12:05:19 +00:00
Joel Sherrill
c7935a4a2a 2009-05-25 Allan Hessenflow <allanh@kallisti.com>
PR 1418/cpukit
	* rtems/score/cpu.h: corrected _CPU_ISR_Flash implementation, added
	core synchronization after all cli/sti.
2009-05-27 12:01:59 +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
Joel Sherrill
df4fcaa0af 2008-09-08 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c: Remove extraneous spaces.
2008-09-08 15:19:23 +00:00
Ralf Corsepius
cfdef83443 2008-09-05 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, rtems/score/cpu.h: Convert to "bool".
2008-09-05 02:00:39 +00:00
Ralf Corsepius
5d42c1b7bc Convert to "bool". 2008-09-05 02:00:15 +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
dc2503a383 2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* ChangeLog: Add correct entry.
2008-08-15 16:41:03 +00:00
Joel Sherrill
4daebbd022 2008-08-14 Sebastian Huber <sebastian.huber@embedded-brains.de>
* rtems/include/rtems/rtems/ratemon.h,
	rtems/include/rtems/rtems/status.h,
	score/include/rtems/score/coremutex.h,
	score/include/rtems/score/object.h: Removed extraneous commas.
2008-08-14 15:25:14 +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
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
47751810c3 2007-12-20 Joel Sherrill <joel.sherrill@OARcorp.com>
* rtems/score/cpu.h: Use correct register name.
2007-12-20 22:38:07 +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
fe8343911c 2007-12-17 Joel Sherrill <joel.sherrill@OARcorp.com>
* cpu.c, irq.c, rtems/score/cpu_asm.h: Sweep to make sure grep for
	COPYRIGHT passes.
2007-12-17 16:12:37 +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
c55364c4a2 2007-09-10 Alain Schaefer <alani@easc.ch>
* cpu_asm.S: Fix two problems:
	    - CC bit has been clobbered and was not correctly restored
	    - bfin hardware does not allow to read instructions from the L1
2007-09-10 22:24:57 +00:00
Joel Sherrill
a321f7a402 2007-09-10 Alain Schaefer <alani@easc.ch>
* rtems/bfin/bf533.h: Add more definitions.
2007-09-10 13:54:12 +00:00
Joel Sherrill
008171099d 2007-05-31 Alain Schaefer <alani@easc.ch>
* rtems/score/cpu.h: Modifiy inline assembly language
	constraints to use a data register as the CTL/STI
	instructions requires. This is not only more correct,
	it avoids GCC PR31787.
2007-05-31 16:55:37 +00:00
Joel Sherrill
d902069a13 2007-05-24 Alain Schaefer <alani@easc.ch>
* rtems/score/cpu.h: Fix incorrect interrupt mask.
2007-05-24 14:24:23 +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
Joel Sherrill
ddb1867f82 2007-04-17 Joel Sherrill <joel@OARcorp.com>
* rtems/bfin/bf533.h: Fix warnings about constants being too large.
2007-04-17 17:10:24 +00:00
Ralf Corsepius
231aac4fc1 Use Context_Control_fp* instead of void* for fp_contexts.
Eliminate evil casts.
2007-04-17 05:18:49 +00:00
Ralf Corsepius
c4881ddb67 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:18:43 +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
Ralf Corsepius
4df1b2e646 2006-11-09 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/bfin/bf533.h, rtems/bfin/bfin.h: Remove stray whitespaces.
	* rtems/score/bfin.h: Use __BFIN__ instead of BFIN.
2006-11-09 11:11:03 +00:00
Ralf Corsepius
a6c5a6d1ab Remove stray whitespaces. 2006-11-09 11:10:50 +00:00
Ralf Corsepius
1cb0a9b404 Use __BFIN__ instead of BFIN. 2006-11-09 11:10:29 +00:00
Ralf Corsepius
fbf8301b58 2006-11-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu_asm.S: Re-add HI, LO.
2006-11-08 08:42:45 +00:00
Ralf Corsepius
3faa99f239 2006-11-08 Ralf Corsépius <ralf.corsepius@rtems.org>
* irq.c: Add missing newline.
	* rtems/score/cpu.h: Eliminate hidden backspaces.
2006-11-08 08:23:35 +00:00
Ralf Corsepius
da95961027 Eliminate hidden backspaces. 2006-11-08 08:23:19 +00:00