Subversion Repositories HelenOS

Rev

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

Rev 3489 Rev 3493
Line 65... Line 65...
65
 * @param n Ignored.
65
 * @param n Ignored.
66
 * @param istate Ignored.
66
 * @param istate Ignored.
67
 */
67
 */
68
void interrupt(int n, istate_t *istate)
68
void interrupt(int n, istate_t *istate)
69
{
69
{
-
 
70
    uint64_t status;
70
    uint64_t intrcv;
71
    uint64_t intrcv;
71
    uint64_t data0;
72
    uint64_t data0;
-
 
73
    status = asi_u64_read(ASI_INTR_DISPATCH_STATUS, 0);
-
 
74
    if (status & (!INTR_DISPATCH_STATUS_BUSY))
-
 
75
        panic("Interrupt Dispatch Status busy bit not set\n");
72
 
76
 
73
    intrcv = asi_u64_read(ASI_INTR_RECEIVE, 0);
77
    intrcv = asi_u64_read(ASI_INTR_RECEIVE, 0);
74
#if defined (US)
78
#if defined (US)
75
    data0 = asi_u64_read(ASI_INTR_R, ASI_UDB_INTR_R_DATA_0);
79
    data0 = asi_u64_read(ASI_INTR_R, ASI_UDB_INTR_R_DATA_0);
76
#elif defined (US3)
80
#elif defined (US3)