Thomas Doerfler
da422590ae
Define M68K_FP_STATE_SIZE also if used in assembler files.
2009-08-24 10:29:10 +00:00
Joel Sherrill
db0df7b6df
2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>
...
* rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the
compiler will not generate code thinking it returns.
2009-08-19 16:39:05 +00:00
Joel Sherrill
cdfe85a7f3
2009-08-11 Josh Switnicki <josh.switnicki@utoronto.ca>
...
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Fix bug in
_CPU_Context_Initialize.
2009-08-11 17:03:01 +00:00
Joel Sherrill
04a62dce21
2009-08-05 Josh Switnicki <josh.switnicki@utoronto.ca>
...
* Makefile.am: added AVR specific Header files to score/cpu/avr/avr.
These are from avr-libc 1.6 and assumed to exist by AVR applications.
* preinstall.am: Regenerated.
2009-08-06 14:52:07 +00:00
Joel Sherrill
8960aa5417
2009-08-03 Roger Dahlkvist <ruppe@kth.se>
...
* score/cpu/Makefile.am: nios2 was not in the list.
2009-08-03 14:22:10 +00:00
Joel Sherrill
b32020b470
2009-07-28 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Context switch now works well
enough to run ticker to completion with the simulator clock idle
task. But if you comment out the printk's in _CPU_Context_Initialize,
it hangs. This remains to be investigated.
2009-07-28 23:14:23 +00:00
Joel Sherrill
3da35a18e5
2009-07-23 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c, cpu_asm.S: Unsuccessful attempt to fix.
2009-07-23 17:40:06 +00:00
Joel Sherrill
b4404843ec
2009-07-17 Josh Switnicki <josh.switnicki@utoronto.ca>
...
*cpu_asm.S: implemented _CPU_Context_Restore by adding tags to
restore section of context switch.
Fixed bug in _CPU_Context_Switch. The wrong registers were being
used for pointer to running task Context_Control struct.
2009-07-17 18:33:35 +00:00
Thomas Doerfler
9364cf663f
adding lpc24xx BSP parts
2009-07-17 15:16:50 +00:00
Thomas Doerfler
ebe76f940b
removing unneeded files
2009-07-17 13:59:43 +00:00
Thomas Doerfler
632e4306dc
exception handler maintenance
2009-07-17 13:50:31 +00:00
Joel Sherrill
36c2586f92
2009-07-09 Josh Switnicki <josh.switnicki@utoronto.ca>
...
* cpu_asm.S: Fixed bug in _CPU_Context_Switch. The wrong registers
were being used for pointer to running task Context_Control
struct.
2009-07-10 19:07:54 +00:00
Joel Sherrill
7c46cf58b3
2009-07-03 Josh Switnicki <josh.switnicki@utoronto.ca>
...
* cpu.c: Implemented _CPU_Context_Initialize as a C function instead
of a macro. It works with limited functionality. Implemented
_CPU_Thread_Idle_body to use sleep instruction.
* Makefile.am: Changed cpu_asm.c -> cpu_asm.S
* cpu_asm.S: renamed from cpu_asm.c and implemented functions is asm
* rtems/asm.h: Appended "macros.inc" to the end of "asm.h"
* rtems/score/cpu.h:
+ Included "avr/io.h".
+ Added use 16 bit object definition.
+ Modified Context_Control struct to relect the registers
that need to be saved.
+ Implemented _CPU_ISR_Disable, _CPU_ISR_Enable, and _CPU_ISR_Flash.
Added function definitions for _CPU_Context_Initialize and
_CPU_Push.
2009-07-06 15:36:23 +00:00
Chris Johns
bf7cc57b0a
2009-06-18 Chris Johns <chrisj@rtems.org>
...
* score/cpu/mips/rtems/mips/idtcpu.h: Missed another WAIT
define. Removed.
2009-06-17 21:15:16 +00:00
Chris Johns
3967dbe4d3
Fixed nested includes.
2009-06-14 23:33:44 +00:00
Chris Johns
4896ab5dfc
2009-06-15 Chris Johns <chrisj@rtems.org>
...
* score/cpu/mips/rtems/mips/idtcpu.h: Remote WAIT define. Horrible
overload.
2009-06-14 23:31:05 +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
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
e8de5c718d
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: Lower number of priorities and do not inline as
much.
2009-05-05 21:17:11 +00:00
Joel Sherrill
4848b56083
2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: Remove warnings.
2009-05-05 19:37:10 +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
6eae3bdd5b
2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: Lower minimum stack size to 512 and CPU alignment
to 4.
2009-05-05 01:11:05 +00:00
Joel Sherrill
aaa5c0d08c
2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu_asm.c: Add stub for setjmp/longjmp. Remove when in newlib.
2009-05-04 20:34:42 +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
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
b7f49f7ed4
2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu_asm.S: Eliminate extern of unused variables.
2009-03-02 18:34:12 +00:00
Joel Sherrill
f547bc8a1f
2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c: Remove stray semi-colon.
2009-03-02 12:12:17 +00:00
Joel Sherrill
fd234b864c
2009-02-27 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: AVR stack grows down.
2009-02-27 18:19:33 +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
94dd4f6cdf
2009-02-17 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/sh.h: SH2E and SH3E have a DSP rather than an FPU. They
are not compatible. We currently only support the FPU found on the
SH3 and SH4.
2009-02-17 20:39:44 +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
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
8bbead13c0
2009-02-12 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c: Change prototype of IDLE thread to consistently return void *
and take a uintptr_t argument.
2009-02-12 15:55:36 +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
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
9cf17fb8cf
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: Use a 16 bit object id on this target.
2009-02-11 19:35:30 +00:00
Joel Sherrill
ef47bc78fc
2009-02-11 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* rtems/score/cpu.h: Do not unroll any code on this target and use a
16-bit object id.
2009-02-11 19:35:09 +00:00
Joel Sherrill
e64a143b27
2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* varvects.h: Fix prototype.
2009-01-05 19:58:41 +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
Joel Sherrill
78aa0609b4
2008-12-11 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c, cpu_asm.c: Remove warnings -- even if code is just temporary.
2008-12-11 21:10:26 +00:00
Ralf Corsepius
1cb54d1f38
#include <stdint.h> instead of <rtems/stdint.h>.
2008-12-11 00:47:56 +00:00
Ralf Corsepius
601b863e65
Add prototypes, eliminate nested externs.
2008-12-09 08:35:36 +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
15e44fd15b
2008-12-04 Jukka Pietarinen <jukka.pietarinen@mrf.fi>
...
* configure.ac, librpc/src/xdr/xdr_float.c, score/cpu/Makefile.am: Add
Lattice Mico32 support.
2008-12-04 22:53:33 +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
Joel Sherrill
63ca296656
2008-12-01 Joel Sherrill <joel.sherrill@OARcorp.com>
...
* cpu.c: Links hello again.
2008-12-01 17:30:11 +00:00
Joel Sherrill
274ee57ad2
2008-11-26 Joel Sherrill <joel.sherrill@oarcorp.com>
...
* cpu.c, cpu_asm.c: Add debug printk() calls until the BSP/port can
initialize and shutdown completely cleanly. When this works,
implement context switch. Testing on avrtest and simulavr.
2008-11-26 14:29:56 +00:00