Subversion Repositories HelenOS

Rev

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

Rev 2341 Rev 2343
Line 71... Line 71...
71
 *
71
 *
72
 * @param ipl Saved interrupt priority level.
72
 * @param ipl Saved interrupt priority level.
73
 */
73
 */
74
void interrupts_restore(ipl_t ipl)
74
void interrupts_restore(ipl_t ipl)
75
{
75
{
76
    /*
-
 
77
    current_status_reg_control_write( (current_status_reg_read() &
76
    current_status_reg_control_write(
78
        ~STATUS_REG_IRQ_DISABLED_BIT) | (ipl & STATUS_REG_IRQ_DISABLED_BIT) );
77
        (current_status_reg_read() & ~STATUS_REG_IRQ_DISABLED_BIT) |
79
    */
-
 
80
 
-
 
81
    current_status_reg_control_write(current_status_reg_read() |
-
 
82
            (ipl & STATUS_REG_IRQ_DISABLED_BIT));
78
        (ipl & STATUS_REG_IRQ_DISABLED_BIT)
-
 
79
    );
83
}
80
}
84
 
81
 
85
/** Read interrupt priority level.
82
/** Read interrupt priority level.
86
 *
83
 *
87
 * @return Current interrupt priority level.
84
 * @return Current interrupt priority level.