blob: b057fdf950f19de309d321691daed422aa024d17 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
// TITLE("Jazz I/O Interrupt Dispatch")
//++
//
// Copyright (c) 1990 Microsoft Corporation
//
// Module Name:
//
// jxdmadsp.s
//
// Abstract:
//
// This module implements the code necessary to do the second level dispatch
// for I/O interrupts on Jazz.
//
// Author:
//
// David N. Cutler (davec) 12-May-1990
//
// Environment:
//
// Kernel mode only.
//
// Revision History:
//
//--
#include "halmips.h"
#if defined(_DUO_)
#include "duodef.h"
#endif
#if defined(_JAZZ_)
#include "jazzdef.h"
#endif
SBTTL("Local Device First Level Dispatch")
//++
//
// Routine Description:
//
// This routine is entered as the result of an interrupt being generated
// for a local device.
//
// Arguments:
//
// s8 - Supplies a pointer to a trap frame.
//
// Return Value:
//
// None.
//
//--
LEAF_ENTRY(HalpDmaDispatch)
#if defined(_DUO_)
lbu t0,DMA_VIRTUAL_BASE + 0x48 // get interrupt source vector
#endif
#if defined(_JAZZ_)
lbu t0,INTERRUPT_VIRTUAL_BASE + 0x0 // get interrupt source vector
#endif
lw a0,KiPcr + PcInterruptRoutine + (DEVICE_VECTORS * 4)(t0) //
lw t1,InDispatchAddress - InDispatchCode(a0) // get dispatch address
subu a0,a0,InDispatchCode // compute address of interrupt object
j t1 // transfer control to interrupt routine
.end HalpDmaDispatch
|