Commit Graph

23 Commits

Author SHA1 Message Date
Ralf Corsepius
9ddff29e12 2011-02-11 Ralf Corsépius <ralf.corsepius@rtems.org>
* cpu.c, irq.c, rtems/score/lm32.h:
	Use "__asm__" instead of "asm" for improved c99-compliance.
2011-02-11 08:57:36 +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
a3bb1addc1 2010-09-26 Yann Sionneau <yann@minet.net>
PR 1697/cpukit
	* rtems/score/cpu.h: lm32 really needs aligned stack. Recent changes
	highlighted that this macro was incorrect.
2010-09-26 23:43:47 +00:00
Joel Sherrill
b999676af0 2010-08-20 <yann.sionneau@telecom-sudparis.eu>
* rtems/score/lm32.h: Add lm32_read_interrupts().
2010-08-20 21:24:16 +00:00
Joel Sherrill
f2edf67da7 2010-07-30 Gedare Bloom <giddyup44@yahoo.com>
PR 1599/cpukit
	* irq.c: Rename _Context_Switch_necessary to _Thread_Dispatch_necessary
	to more properly reflect the intent.
2010-07-30 18:52:14 +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
9939ecc412 2010-06-28 Joel Sherrill <joel.sherrill@oarcorp.com>
PR 1573/cpukit
	* irq.c, 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:31:47 +00:00
Ralf Corsepius
f88a1a014b 2010-05-29 Ralf Corsépius <ralf.corsepius@rtems.org>
* irq.c: Change _exception_stack_frame into void*.
2010-05-29 05:19:13 +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
Ralf Corsepius
6d521f09f1 2010-04-15 Ralf Corsépius <ralf.corsepius@rtems.org>
* rtems/score/cpu.h: Make _gp global.
2010-04-15 04:51:23 +00:00
Joel Sherrill
5632f8da1f 2010-03-27 Joel Sherrill <joel.sherrill@oarcorp.com>
* cpu.c, cpu_asm.S, irq.c: Add include of config.h
2010-03-27 15:02:21 +00:00
Joel Sherrill
daa0addc73 2010-03-02 Michael Walle <michael@walle.cc>
* cpu.c: Provide body for CPU specific Idle thread. This halts on qemu
	but is just a nop on a real cpu.
2010-03-02 16:25:06 +00:00
Ralf Corsepius
42e243eeef Whitespace removal. 2009-12-04 04:27:21 +00:00
Joel Sherrill
af2b90de3f 2009-05-05 Michael Walle <michael@walle.cc>
* cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.
2009-05-05 14:19:58 +00:00
Joel Sherrill
7c4c284c4a 2009-04-14 Michael Walle <michael@walle.cc>
* cpu.h: corrected the registers in Context_Control and
	in CPU_Interrupt_frame to correspond to the saved frame in cpu_asm.S
   	Also switched on CPU_ISR_PASSES_FRAME_POINTER.
 	* cpu_asm.S: Moved the restore part of _CPU_Context_switch for
	easier reading.  Fixed _CPU_Context_restore, it now moves the
	argument and branches to a label in _CPU_Context_switch.  Removed
	unnecessary saves of registers in context switch and irq handling.
	Rewrote irq code to call the C helper.  Added some documentation
	* irq.c: New file derived from c4x and nios2.
2009-04-14 13:44:29 +00:00
Joel Sherrill
504fadbb1a 2009-04-06 Michael Walle <michael@walle.cc>
* cpu_asm.S: We cannot use any other register than r0 without saving
	them to the stack. (_ISR_Handler clears r0 right at the beginning)
2009-04-06 21:23:51 +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
Joel Sherrill
a7db5cd2b0 2008-12-05 Joel Sherrill <joel.sherrill@oarcorp.com>
* .cvsignore: New file.
2008-12-05 19:15:47 +00:00
Joel Sherrill
6b4d0b8e9a 2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
* ChangeLog, Makefile.am, cpu.c, cpu_asm.S, preinstall.am, rtems/asm.h,
	rtems/score/cpu.h, rtems/score/cpu_asm.h, rtems/score/lm32.h,
	rtems/score/types.h: New files.
2008-12-04 22:53:15 +00:00