{
int iv;
if (!(iv = isrm_ivexalloc(irq_handler))) {
- panickf("out of IV resource. (irq=%d)", irq);
+ fail("out of IV resource.");
return 0; // never reach
}
}
ptr_t
-isrm_get_payload(int iv)
+isrm_get_payload(const isr_param* param)
{
+ int iv = param->execp->vector;
assert(iv < 256);
return ivhand_payload[iv];