Subversion Repositories HelenOS

Rev

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

Rev 3489 Rev 3493
Line 98... Line 98...
98
   
98
   
99
    status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0);
99
    status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0);
100
    if (status & INTR_DISPATCH_STATUS_BUSY)
100
    if (status & INTR_DISPATCH_STATUS_BUSY)
101
        panic("Interrupt Dispatch Status busy bit set\n");
101
        panic("Interrupt Dispatch Status busy bit set\n");
102
   
102
   
-
 
103
    ASSERT(!(pstate_read() & PSTATE_IE_BIT));
-
 
104
   
103
    do {
105
    do {
104
        set_intr_w_data(func);
106
        set_intr_w_data(func);
105
        asi_u64_write(ASI_INTR_W,
107
        asi_u64_write(ASI_INTR_W,
106
            (mid << INTR_VEC_DISPATCH_MID_SHIFT) |
108
            (mid << INTR_VEC_DISPATCH_MID_SHIFT) |
107
            VA_INTR_W_DISPATCH, 0);
109
            VA_INTR_W_DISPATCH, 0);