summaryrefslogtreecommitdiffstats
path: root/cpukit/score/cpu/or1k/or1k-context-initialize.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* or1k fix bug: Initialize thread context with higher stack address.Hesham ALMatary2014-09-291-2/+3
| | | | | | Since or1k architecture stack grows down, threads should be initialized with high stack addresses instead of lower ones. This is done in _CPU_Context_Initialize function.
* OpenRISC: Account for red-zone (fixup printf bug).Hesham ALMatary2014-09-161-1/+2
| | | | | | | | | | | | | | This patch allocate a space in the stack to account for red-zone that gcc may utilize for the use of leaf functions. Care must be taken to handle this red-zone from many places: 1- Upon creation of a new thread stack. 2- Once an interrupt entred. Also moving the enable-thread-dispach() and increment ISR level before checking if dispatch needed was required. The previous modifications solved the printf bug which disabled ticker to output strings after context switches that arise from Thread_Delay_ended.
* Add support for OpenRISC - Fixed issuesHesham ALMatary2014-08-121-0/+43
This work is based on the old or32 port (that has been removed back in 2005) authored by Chris Ziomkowski. The patch includes the basic functions every port should implement like: context switch, exception handling, OpenRISC ABI and machine definitions and configurations.