mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 15:08:21 +00:00
interrupt: add a new 'priv' field
This field is needed for interrupt handlers that need context in order to know what to do.
This commit is contained in:
@@ -28,6 +28,7 @@ typedef struct _isr_t {
|
|||||||
struct _isr_t *prev;
|
struct _isr_t *prev;
|
||||||
void (*func)(struct _isr_t *self, context_t *ctx);
|
void (*func)(struct _isr_t *self, context_t *ctx);
|
||||||
void (*eoi)(struct _isr_t *self);
|
void (*eoi)(struct _isr_t *self);
|
||||||
|
void *priv;
|
||||||
long id;
|
long id;
|
||||||
long priority;
|
long priority;
|
||||||
bool pending;
|
bool pending;
|
||||||
|
|||||||
Reference in New Issue
Block a user