mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: use list.h for DPC queues
This commit is contained in:
@@ -3,13 +3,13 @@
|
||||
|
||||
#include <arch/context.h>
|
||||
#include <stdbool.h>
|
||||
#include <list.h>
|
||||
|
||||
typedef void * dpcarg_t;
|
||||
typedef void (*dpcfn_t)(context_t *, dpcarg_t);
|
||||
|
||||
typedef struct _dpc_t {
|
||||
struct _dpc_t *next;
|
||||
struct _dpc_t *prev;
|
||||
list_node_t list_node;
|
||||
bool enqueued;
|
||||
dpcfn_t fn;
|
||||
dpcarg_t arg;
|
||||
|
||||
@@ -46,7 +46,7 @@ typedef struct cpu_t {
|
||||
timer_t *timer;
|
||||
|
||||
isr_t *dpcisr;
|
||||
dpc_t *dpcqueue;
|
||||
list_t dpcqueue;
|
||||
|
||||
thread_t *idlethread;
|
||||
timerentry_t schedtimerentry;
|
||||
|
||||
Reference in New Issue
Block a user