ignore IP7 (timer interrupt?) for now
This commit is contained in:
parent
8f113587dd
commit
bcc219de11
3 changed files with 3 additions and 2 deletions
|
@ -44,6 +44,7 @@ constant CP0_STATUS_IM5($2000) // Interrupt Mask 5 (External)
|
||||||
constant CP0_STATUS_IM6($4000) // Interrupt Mask 6 (External)
|
constant CP0_STATUS_IM6($4000) // Interrupt Mask 6 (External)
|
||||||
constant CP0_STATUS_IM7($8000) // Interrupt Mask 7 (External)
|
constant CP0_STATUS_IM7($8000) // Interrupt Mask 7 (External)
|
||||||
constant CP0_STATUS_IM_ALL($FF00) // all interrupt masks
|
constant CP0_STATUS_IM_ALL($FF00) // all interrupt masks
|
||||||
|
constant CP0_STATUS_IM_WANTED($7F00) // FIXME: just the interrupts we can deal with
|
||||||
|
|
||||||
// note that these are all masks.
|
// note that these are all masks.
|
||||||
constant CP0_CAUSE_CODE($007C) // actually supposed to be called ExcCode
|
constant CP0_CAUSE_CODE($007C) // actually supposed to be called ExcCode
|
||||||
|
|
|
@ -20,7 +20,7 @@ macro SetIntMask() {
|
||||||
sw t0, MI_INTR_MASK(a0)
|
sw t0, MI_INTR_MASK(a0)
|
||||||
// careful not to touch unrelated flags here
|
// careful not to touch unrelated flags here
|
||||||
mfc0 t1, CP0_Status
|
mfc0 t1, CP0_Status
|
||||||
lli t0, CP0_STATUS_IM_ALL
|
lli t0, CP0_STATUS_IM_WANTED
|
||||||
or t1, t0
|
or t1, t0
|
||||||
mtc0 t1, CP0_Status
|
mtc0 t1, CP0_Status
|
||||||
}
|
}
|
||||||
|
|
|
@ -40,7 +40,7 @@ Start:
|
||||||
|
|
||||||
// enable CPU interrupts.
|
// enable CPU interrupts.
|
||||||
mfc0 t1, CP0_Status
|
mfc0 t1, CP0_Status
|
||||||
ori t1, CP0_STATUS_IM_ALL | CP0_STATUS_IE
|
ori t1, CP0_STATUS_IM_WANTED | CP0_STATUS_IE
|
||||||
mtc0 t1, CP0_Status
|
mtc0 t1, CP0_Status
|
||||||
|
|
||||||
// enable even more interrupts.
|
// enable even more interrupts.
|
||||||
|
|
Loading…
Add table
Reference in a new issue