summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 2009-10-29 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-292-0/+16
| | | | | | * rtems/score/cpu.h: Define _CPU_Interrupt_stack_setup() macro which reserves space for the 'vector' arg to _C_dispatch_isr() routine and aligns the irq stack to CPU_STACK_ALIGNMENT.
* 2009-10-28 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-292-7/+12
| | | | | | * rtems/score/cpu.h: Replaced misleading typedef of CPU_Interrupt_frame by 'void'. The i386 port does not pass any frame info to the interrupt handlers.
* 2009-10-28 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-291-0/+21
| | | | | | * ChangeLog, score/cpu/i386/ChangeLog: moved log messages I had erroneously written to cpukit/Changelog to cpukit/score/cpu/i386/ChangeLog.
* 2009-10-28 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-292-10/+69
| | | | | | | | | | | | | | | | | * score/cpu/i386/rtems/score/cpu.h: Added #ifdef ASM constructs so that this header can be included from assembly code. Increased CPU_STACK_ALIGNMENT to 16 bytes. Gcc maintains 16-byte alignment and it may be a advantageous to provide initial 16-byte alignment. When using SSE some gcc versions may produce code that crashes if the stack is not 16-byte aligned. Make sure _CPU_Context_Initialize() sets the thread stack up so that it is aligned to CPU_CACHE_ALIGNMENT. * score/cpu/i386/cpu_asm.S: Align stack to CPU_CACHE_ALIGNMENT before calling C-code.
* 2009-10-27 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-281-0/+1
| | | | * score/cpu/i386/rtems/asm.h: Added definition for cr4 register.
* 2009-10-22 Ralf Corsépius <ralf.corsepius@rtems.org>Ralf Corsepius2009-10-221-2/+16
| | | | * score/cpu/Makefile.am: Update DIST_SUBDIRS.
* * rtems/powerpc/registers.h: Added defines DEAR_BOOKE and DEAR_405.Thomas Doerfler2009-10-214-16/+21
| | | | | | | | * 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-20 Till Straumann <strauman@slac.stanford.edu>Till Straumann2009-10-202-4/+21
| | | | | * score/cpu/i386/cpu.c, score/cpu/i386/cpu.h: let the default exception handler print a stack trace.
* Remove unix subdir.Ralf Corsepius2009-10-141-1/+1
|
* Remove (Abandoned)Ralf Corsepius2009-10-149-2936/+0
|
* 2009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-012-0/+7
| | | | * rtems/score/arm.h: Recognize ARMv7A.
* 2009-10-01 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-10-012-0/+7
| | | | * rtems/score/arm.h: Recognize ARMv6J as needed by arm1136 variants.
* 2009-09-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-272-1/+6
| | | | | * rtems/score/cpu.h: Define CPU_STRUCTURE_ALIGNMENT to be on a 4 byte boundary.
* 2009-09-25 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-09-252-1/+6
| | | | | * rtems/score/cpu.h: Add no return atrribute to _CPU_Context_restore() since it is used for restarting self.
* * rtems/score/cpu.h: Fix for inline asm in _CPU_Fatal_halt().Thomas Doerfler2009-09-185-43/+23
| | | | | * rtems/asm.h: Added macro to define ARM functions. * cpu_asm.S, arm_exc_handler_low.S: Use macro from above.
* 2009-09-10 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-09-112-1/+6
| | | | | * rtems/score/cpu.h: Make heap alignment 4 which is greater than CPU_ALIGNMENT but minimum for heap.
* Define M68K_FP_STATE_SIZE also if used in assembler files.Thomas Doerfler2009-08-242-7/+14
|
* 2009-08-19 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-08-192-1/+7
| | | | | * rtems/score/cpu.h: Mark _CPU_Context_restore() as noreturn so the compiler will not generate code thinking it returns.
* 2009-08-11 Josh Switnicki <josh.switnicki@utoronto.ca>Joel Sherrill2009-08-114-115/+111
| | | | | * cpu.c, cpu_asm.S, rtems/score/cpu.h: Fix bug in _CPU_Context_Initialize.
* 2009-08-05 Josh Switnicki <josh.switnicki@utoronto.ca>Joel Sherrill2009-08-06151-0/+154011
| | | | | | * 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-03 Roger Dahlkvist <ruppe@kth.se>Joel Sherrill2009-08-031-1/+1
| | | | * score/cpu/Makefile.am: nios2 was not in the list.
* 2009-07-28 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-284-96/+103
| | | | | | | * 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-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-07-233-10/+32
| | | | * cpu.c, cpu_asm.S: Unsuccessful attempt to fix.
* 2009-07-17 Josh Switnicki <josh.switnicki@utoronto.ca>Joel Sherrill2009-07-173-23/+30
| | | | | | | *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.
* adding lpc24xx BSP partsThomas Doerfler2009-07-173-0/+520
|
* removing unneeded filesThomas Doerfler2009-07-173-199/+0
|
* exception handler maintenanceThomas Doerfler2009-07-176-1037/+350
|
* 2009-07-09 Josh Switnicki <josh.switnicki@utoronto.ca>Joel Sherrill2009-07-102-3/+9
| | | | | | * 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-03 Josh Switnicki <josh.switnicki@utoronto.ca>Joel Sherrill2009-07-066-38/+761
| | | | | | | | | | | | | | | | | * 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-06-18 Chris Johns <chrisj@rtems.org>Chris Johns2009-06-171-2/+3
| | | | | * score/cpu/mips/rtems/mips/idtcpu.h: Missed another WAIT define. Removed.
* Fixed nested includes.Chris Johns2009-06-141-1/+1
|
* 2009-06-15 Chris Johns <chrisj@rtems.org>Chris Johns2009-06-141-1/+2
| | | | | * score/cpu/mips/rtems/mips/idtcpu.h: Remote WAIT define. Horrible overload.
* PR fixed.Joel Sherrill2009-05-271-1/+1
|
* 2009-05-25 Allan Hessenflow <allanh@kallisti.com>Joel Sherrill2009-05-272-5/+11
| | | | | | PR 1418/cpukit * rtems/score/cpu.h: corrected _CPU_ISR_Flash implementation, added core synchronization after all cli/sti.
* cpu.c, cpu_asm.S, rtems/score/cpu.h: Cleanup of the floating point context ↵Thomas Doerfler2009-05-154-296/+293
| | | | initialization, save and restore code.
* 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-052-1/+11
| | | | | * rtems/score/cpu.h: Lower number of priorities and do not inline as much.
* 2009-05-05 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-052-4/+8
| | | | * rtems/score/cpu.h: Remove warnings.
* 2009-05-05 Michael Walle <michael@walle.cc>Joel Sherrill2009-05-054-0/+31
| | | | * cpu_asm.S, irq.c, rtems/score/cpu.h: Add lm32 gdb stub support.
* 2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-052-2/+7
| | | | | * rtems/score/cpu.h: Lower minimum stack size to 512 and CPU alignment to 4.
* 2009-05-04 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-05-042-0/+14
| | | | * cpu_asm.c: Add stub for setjmp/longjmp. Remove when in newlib.
* 2009-04-14 Michael Walle <michael@walle.cc>Joel Sherrill2009-04-145-140/+220
| | | | | | | | | | | | * 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-06 Michael Walle <michael@walle.cc>Joel Sherrill2009-04-062-0/+6
| | | | | * 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-03-12 Joel Sherrill <joel.sherrill@OARcorp.com>Joel Sherrill2009-03-1210-17/+57
| | | | | | | | 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-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-03-022-6/+4
| | | | * cpu_asm.S: Eliminate extern of unused variables.
* 2009-03-02 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-03-022-1/+5
| | | | * cpu.c: Remove stray semi-colon.
* 2009-02-27 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-02-272-1/+5
| | | | * rtems/score/cpu.h: AVR stack grows down.
* * rtems/powerpc/registers.h: Added Freescale Book E ImplementationThomas Doerfler2009-02-272-0/+33
| | | | | Standards (EIS) special purpose register definitions for MMU and L1 cache.
* 2009-02-17 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-02-172-2/+12
| | | | | | * 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-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-02-1230-24/+74
| | | | | * cpu.c, rtems/score/cpu.h: Change prototype of IDLE thread to consistently return void * and take a uintptr_t argument.
* 2009-02-12 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2009-02-124-3/+13
| | | | | * rtems/score/cpu.h: Change prototype of IDLE thread to consistently return void * and take a uintptr_t argument.