Subversion Repositories HelenOS-historic

Rev

Rev 1705 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1705 Rev 1730
Line 24... Line 24...
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24
 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
 */
27
 */
28
 
28
 
29
 /** @addtogroup ppc32proc
29
/** @addtogroup ppc32proc
30
 * @{
30
 * @{
31
 */
31
 */
32
/** @file
32
/** @file
33
 */
33
 */
34
 
34
 
Line 44... Line 44...
44
}
44
}
45
 
45
 
46
/** Perform ppc32 specific tasks needed before the new thread is scheduled. */
46
/** Perform ppc32 specific tasks needed before the new thread is scheduled. */
47
void before_thread_runs_arch(void)
47
void before_thread_runs_arch(void)
48
{
48
{
49
    pht_init();
-
 
50
    tlb_invalidate_all();
49
    tlb_invalidate_all();
51
    asm volatile (
50
    asm volatile (
52
        "mtsprg0 %0\n"
51
        "mtsprg0 %0\n"
53
        :
52
        :
54
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
53
        : "r" (KA2PA(&THREAD->kstack[THREAD_STACK_SIZE - SP_DELTA]))
Line 57... Line 56...
57
 
56
 
58
void after_thread_ran_arch(void)
57
void after_thread_ran_arch(void)
59
{
58
{
60
}
59
}
61
 
60
 
62
 /** @}
61
/** @}
63
 */
62
 */
64
 
-