2011-09-02 Sebastian Huber * rtems/score/nios2-utility.h: Use the same values for defines used by Altera HAL. 2011-09-02 Sebastian Huber * rtems/score/nios2-utility.h: Avoid redefines with Altera HAL. Declare _Nios2_ISR_Set_level(). * nios2-context-initialize.c: Use _Nios2_ISR_Set_level(). * nios2-isr-set-level.c: Define _Nios2_ISR_Set_level(). 2011-09-01 Sebastian Huber * cpu.c, cpu_asm.S: Removed files. * nios2-context-initialize.c, nios2-context-switch.S, nios2-fatal-halt.c, nios2-initialize-vectors.c, nios2-initialize.c, nios2-isr-get-level.c, nios2-isr-install-raw-handler.c, nios2-isr-install-vector.c, nios2-isr-is-in-progress.c, nios2-isr-set-level.c, nios2-thread-dispatch-disabled.c, rtems/score/nios2-utility.h: New files. * Makefile.am, preinstall.am: Reflect changes above. * irq.c: Update due to API changes. * rtems/score/cpu.h: New functions _CPU_Initialize_vectors(), _CPU_ISR_Set_level(), and _CPU_Fatal_halt() (instead of macros). Support for external interrupt controller (EIC). Documentation changes. 2011-08-18 Chris Johns * cpu.c: Fix the ISR get level for the IIC. Make _CPU_Context_Initialize a function rather than inlined. * cpu_asm.S: Do not enable interrupt on return, rather resume the state on entry to the ISR. * irq.c, nios2/nios2-iic-low-level.S: Change the ISR handler so the ipending decoding is in C and within the interrupt context. This is usable with the Altera HAL directly. * rtems/score/cpu.h: Add ienable and ipending interfaces. Add some comments. Remove _CPU_Context_Initialize. 2011-08-14 Chris Johns * rtems/score/cpu.h: Clear the vector table for simple vectored interrupts. * irq.c: Add support for using the IIC with the Altera HAL. 2011-08-10 Sebastian Huber * rtems/score/cpu.h: Removed superfluous comments. Format. Include by assembler support. Removed superfluous floating-point support. Stack alignment is now 4. 2011-08-10 Sebastian Huber * rtems/score/cpu.h, cpu.c: Removed superfluous functions. 2011-08-09 Sebastian Huber * nios2-iic-low-level.S: New file. * cpu_asm.S: Moved low-level interrupt handling into new file. * Makefile.am: Reflect change from above. 2011-08-09 Sebastian Huber * cpu_asm.S, rtems/score/cpu.h: There is no need to save the global pointer (gp) in the thread register context since it is a system wide constant and set-up with the C runtime environment. 2011-07-24 Joel Sherrill * cpu.c: Remove /*PAGE markers which were interpreted by a long dead print script. 2011-05-18 Ralf Corsépius * Makefile.am: Reformat. 2011-02-11 Ralf Corsépius * irq.c: Use "__asm__" instead of "asm" for improved c99-compliance. 2010-10-21 Joel Sherrill * 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-07-30 Gedare Bloom PR 1599/cpukit * irq.c: Rename _Context_Switch_necessary to _Thread_Dispatch_necessary to more properly reflect the intent. 2010-07-29 Gedare Bloom 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-16 Sebastian Huber * rtems/score/cpu.h: Include first. * rtems/score/types.h: Use header file. 2010-06-28 Joel Sherrill 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-03-27 Joel Sherrill * cpu.c, cpu_asm.S, irq.c: Add include of config.h 2009-03-02 Joel Sherrill * cpu_asm.S: Eliminate extern of unused variables. 2009-03-02 Joel Sherrill * cpu.c: Remove stray semi-colon. 2009-02-12 Joel Sherrill * cpu.c, rtems/score/cpu.h: Change prototype of IDLE thread to consistently return void * and take a uintptr_t argument. 2009-02-11 Joel Sherrill * cpu.c, rtems/score/cpu.h: Eliminate _CPU_Thread_dispatch_pointer and passing address of _Thread_Dispatch to _CPU_Initialize. Clean up comments. 2008-09-11 Ralf Corsépius * rtems/score/types.h: Do not define boolean, single_precision, double_precision unless RTEMS_DEPRECATED_TYPES is given. 2008-09-08 Joel Sherrill * rtems/score/cpu.h: Remove extraneous spaces. 2008-08-21 Ralf Corsépius * rtems/score/types.h: Include stdbool.h. Use bool as base-type for boolean. 2008-07-31 Joel Sherrill * cpu.c, rtems/score/cpu.h: Correct prototype of Idle threads. 2008-06-05 Joel Sherrill * 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. 2007-12-17 Joel Sherrill * rtems/score/cpu.h: Add _CPU_Context_Get_SP() for stack check utility. 2007-12-17 Joel Sherrill * irq.c: Sweep to make sure grep for COPYRIGHT passes. 2007-12-04 Joel Sherrill * 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-03 Joel Sherrill * 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-04-17 Ralf Corsépius * rtems/score/cpu.h: Use Context_Control_fp* instead of void* for fp_contexts. Eliminate evil casts. 2006-11-17 Ralf Corsépius * rtems/score/types.h: Remove unsigned64, signed64. 2006-08-10 Joel Sherrill * .cvsignore: New file. 2006-08-09 Kolja Waschk * rtems/score/cpu.h, rtems/score/cpu_asm.h, rtems/score/nios2.h, rtems/score/types.h: New files. 2006-08-09 Kolja Waschk * ChangeLog, Makefile.am, cpu.c, cpu_asm.S, irq.c, preinstall.am, rtems/asm.h: New files. 2005-12-09 Kolja Waschk Derived from no_cpu