Subversion Repositories HelenOS-historic

Rev

Rev 391 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 391 Rev 413
Line 44... Line 44...
44
    ASSERT(CPU != NULL);
44
    ASSERT(CPU != NULL);
45
 
45
 
46
    /*
46
    /*
47
     * NOTE ON OPERATION ORDERING
47
     * NOTE ON OPERATION ORDERING
48
     *
48
     *
49
     * On entry, cpu_priority_high() must be called before
49
     * On entry, interrupts_disable() must be called before
50
     * exception bit is cleared.
50
     * exception bit is cleared.
51
     */
51
     */
52
 
52
 
53
    cpu_priority_high();
53
    interrupts_disable();
54
    cp0_status_write(cp0_status_read() & ~ (cp0_status_exl_exception_bit |
54
    cp0_status_write(cp0_status_read() & ~ (cp0_status_exl_exception_bit |
55
                        cp0_status_um_bit));
55
                        cp0_status_um_bit));
56
 
56
 
57
    /* Save pstate so that the threads can access it */
57
    /* Save pstate so that the threads can access it */
58
    /* If THREAD->pstate is set, this is nested exception,
58
    /* If THREAD->pstate is set, this is nested exception,