summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/nios2 (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-03-16cpukit: add and use CPU_Uint32ptr typeGedare Bloom1-0/+3
2015-03-05score: Delete unused CPU_UNROLL_ENQUEUE_PRIORITYSebastian Huber1-5/+0
2015-01-13nios2: Disable assembler warningSebastian Huber1-2/+3
Close #2232.
2014-10-09nios2-iic-irq.c: Fix warningsJoel Sherrill1-0/+6
2014-10-09nios2-iic-irq.c: Include <rtems/score/interr.h> so it buildsJoel Sherrill1-0/+1
2014-09-10Let CPU/BSP Fatal handler have access to sourceDaniel Hellstrom3-3/+4
Without the source the error code does not say that much. Let it be up to the CPU/BSP to determine the error code reported on fatal shutdown. This patch does not change the current behaviour, just adds the option to handle the source of the fatal halt.
2014-04-29score: Statically initialize _ISR_Vector_tableSebastian Huber3-27/+1
2014-04-03score: Rename Priority_bit_map_ControlSebastian Huber1-1/+1
Rename Priority_bit_map_Control in Priority_bit_map_Word.
2014-03-21Change all references of rtems.com to rtems.org.Chris Johns30-30/+30
2014-02-21score: Rename _Internal_error_Occurred()Sebastian Huber3-3/+3
Rename _Internal_error_Occurred() into _Terminate().
2014-02-14score: Add CPU counter supportSebastian Huber2-0/+13
Add a CPU counter interface to allow access to a free-running counter. It is useful to measure short time intervals. This can be used for example to enable profiling of critical low-level functions. Add two busy wait functions rtems_counter_delay_ticks() and rtems_counter_delay_nanoseconds() implemented via the CPU counter.
2014-02-04Add thread-local storage (TLS) supportSebastian Huber2-2/+5
Tested and implemented on ARM, m68k, PowerPC and SPARC. Other architectures need more work.
2013-11-26nios2: TyposSebastian Huber1-2/+2
2013-09-03nios2: Include proper header fileSebastian Huber1-1/+1
2013-08-28score: Simplify <rtems/score/cpuatomic.h>WeiY1-30/+6
Add proper license and copyright.
2013-08-09score/cpu: Add CPU_Per_CPU_controlSebastian Huber1-0/+6
Add CPU port specific per-CPU control.
2013-07-17update-all-architectures-to-new-atomic-implementationWeiY1-6/+4
2013-06-14score: Add and use _Thread_Dispatch_is_enabled()Sebastian Huber1-1/+1
Delete _Thread_Dispatch_in_critical_section() and _Thread_Is_dispatching_enabled().
2013-05-10score: Add CPU context validationSebastian Huber4-0/+194
2013-05-10Revert bootstrap whitespace changes.Chris Johns1-0/+1
2013-05-01Using the generic atomic ops to implement UP mode atomic for all ↵WeiY3-0/+44
architectures. SMP atomic port will be later.
2013-03-11nios2: DocumentationSebastian Huber1-13/+2
2013-03-11nios2: Use NIOS2_CTLREG_INDEX_STATUSJeffrey O. Hill1-1/+2
2013-03-11nios2: Set CPU_ISR_PASSES_FRAME_POINTER to FALSEJeffrey O. Hill2-23/+3
This reflects what is currently happening. Define CPU_Interrupt_frame type to void to prevent accidental usage.
2013-03-11nios2: Add _Nios2_Count_leading_zeros()Jeffrey O. Hill3-0/+75
Add _Nios2_Count_trailing_zeros(). They are currently more efficient than the corresponding GCC builtins.
2013-03-11nios2: Rename fileJeffrey O. Hill2-1/+1
2013-03-08RTEMS: Delete ChangeLog files.Gedare Bloom1-259/+0
This commit deletes all RTEMS ChangeLog files. These files have been abandoned since converting to git version control. The historical data may be recovered by checking out any commit before this one. Most of the contents of these ChangeLog files can also be found in the git log. Two external ChangeLog files, ChangeLog.slac and ChangeLog.zlib, remain.
2013-01-14NIOS2: Fix register restore sequence in epilogueSebastian Huber1-3/+3
This fix is critical. The previous implementation leads to system corruption.
2013-01-09score: Doxygen Clean Up Task #17Alex Ivanov3-18/+30
2013-01-08score: Doxygen Clean Up Task #16Alex Ivanov3-17/+24
2012-12-02score misc: Clean up Doxygen #13 (GCI 2012)Mathew Kallada10-6/+76
This patch is a task from GCI 2012 which improves the Doxygen comments in the RTEMS source. http://www.google-melange.com/gci/task/view/google/gci2012/8013205
2012-11-27score: Add CPU_Exception_frameSebastian Huber3-0/+27
Add CPU port type CPU_Exception_frame and function _CPU_Exception_frame_print(). The CPU ports of avr, bfin, h8300, lm32, m32c, m32r, m68k, nios2, sh, sparc64, and v850 use an empty default implementation of _CPU_Exception_frame_print(). Add rtems_exception_frame and rtems_exception_frame_print(). Add RTEMS_FATAL_SOURCE_EXCEPTION for CPU exceptions. Use rtems_fatal() with source RTEMS_FATAL_SOURCE_EXCEPTION in CPU ports of i386, powerpc, and sparc for unexpected exceptions. Add third parameter to RTEMS_BSP_CLEANUP_OPTIONS() which controls the BSP_PRINT_EXCEPTION_CONTEXT define used in the default bsp_fatal_extension(). Add test sptests/spfatal26.
2012-11-22score: PR1607: Add and use CPU_SIZEOF_POINTERSebastian Huber1-0/+2
Add and use new CPU port define CPU_SIZEOF_POINTER. It must be an integer literal that can be used by the assembler. This value will be used to calculate offsets of structure members. These offsets will be used in assembler code. The size of a pointer is part of the application binary interface (ABI) and thus independent of the actual programming language. The compiler will provide defines to determine the current ABI. We use these defines to select the appropriate CPU_SIZEOF_POINTER value. Static assertions in the new file "cpukit/score/src/percpuasm.c" will ensure that the value of CPU_SIZEOF_POINTER is consistent with the current compiler settings. Also the offset values used by assembler code are verfied.
2012-05-11Remove All CVS Id Strings Possible Using a ScriptJoel Sherrill26-54/+0
Script does what is expected and tries to do it as smartly as possible. + remove occurrences of two blank comment lines next to each other after Id string line removed. + remove entire comment blocks which only exited to contain CVS Ids + If the processing left a blank line at the top of a file, it was removed.
2012-05-07Revert: Remove CVS IdsJoel Sherrill1-0/+4
See http://www.rtems.org/pipermail/rtems-devel/2012-May/001006.html for details.
2012-05-04Remove CVS-Ids.Ralf Corsépius1-4/+0
2012-04-11nios2: New functionsSebastian Huber2-0/+49
Add o _Nios2_MPU_Get_region_descriptor(), and o _Nios2_MPU_Set_region_registers().
2012-04-11nios2: API changeSebastian Huber3-4/+4
2012-03-30NIOS2: Add MPU support functionsSebastian Huber4-21/+165
2012-03-30NIOS2: Fix outermost interrupt checkSebastian Huber1-1/+4
This fix is critical. The previous implementation leads to system corruption.
2012-02-01Remove all .cvsignore files.Joel Sherrill1-2/+0
2011-10-212011-10-21 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber8-2/+409
* nios2-mpu-configuration.c, nios2-mpu-descriptor.c, nios2-mpu-disable-protected.c, nios2-mpu-reset.c: New files. * Makefile.am: Reflect changes above. * rtems/score/nios2-utility.h, nios2-context-initialize.c: Added support for the memory protection unit (MPU).
2011-09-302011-09-30 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-4/+7
* nios2-context-switch.S: Use small-data area access for _Per_CPU_Information fields.
2011-09-272011-09-27 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-0/+7
PR 1914/cpukit * rtems/score/cpu.h: Select timestamp implementation.
2011-09-162011-09-16 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber8-4/+401
* nios2-eic-il-low-level.S, nios2-eic-rsie-low-level.S: New files. * Makefile.am: Reflect changes above. * rtems/score/cpu.h, rtems/score/nios2-utility.h, nios2-thread-dispatch-disabled.c, nios2-context-switch.S: Added support for thread stack protection via the MPU.
2011-09-142011-09-14 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-4/+6
* rtems/score/cpu.h: Request cache alignment and small data area in CPU_STRUCTURE_ALIGNMENT.
2011-09-092011-09-09 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-2/+6
* nios2-thread-dispatch-disabled.c: Use offsetof() instead of RTEMS_offsetof().
2011-09-022011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber4-5/+10
* rtems/score/nios2-utility.h, nios2-isr-set-level.c, nios2-isr-get-level.c: Renamed functions.
2011-09-022011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber2-12/+9
* rtems/score/nios2-utility.h: Use the same values for defines used by Altera HAL.
2011-09-022011-09-02 Sebastian Huber <sebastian.huber@embedded-brains.de>Sebastian Huber4-13/+48
* 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().