kernel: don't use typedef for enums or non-opaque structs
This commit is contained in:
@@ -64,7 +64,7 @@ extern void syscall_gate();
|
||||
extern uintptr_t pf_faultptr(void);
|
||||
|
||||
static int_hook isr_handlers[NR_IDT_ENTRIES];
|
||||
static queue_t irq_hooks[32];
|
||||
static struct queue irq_hooks[32];
|
||||
|
||||
static struct idt idt;
|
||||
static int idt_initialised = 0;
|
||||
@@ -233,8 +233,8 @@ void isr_dispatch(struct cpu_context *regs)
|
||||
void irq_dispatch(struct cpu_context *regs)
|
||||
{
|
||||
irq_ack(regs->int_no);
|
||||
queue_t *hooks = &irq_hooks[regs->int_no - IRQ0];
|
||||
queue_foreach(irq_hook_t, hook, hooks, irq_entry) {
|
||||
struct queue *hooks = &irq_hooks[regs->int_no - IRQ0];
|
||||
queue_foreach(struct irq_hook, hook, hooks, irq_entry) {
|
||||
hook->irq_callback();
|
||||
}
|
||||
}
|
||||
@@ -244,14 +244,14 @@ void syscall_dispatch(struct cpu_context *regs)
|
||||
|
||||
}
|
||||
|
||||
void hook_irq(irq_vector_t vec, irq_hook_t *hook)
|
||||
void hook_irq(enum irq_vector vec, struct irq_hook *hook)
|
||||
{
|
||||
queue_t *hook_queue = &irq_hooks[vec - IRQ0];
|
||||
struct queue *hook_queue = &irq_hooks[vec - IRQ0];
|
||||
queue_push_back(hook_queue, &hook->irq_entry);
|
||||
}
|
||||
|
||||
void unhook_irq(irq_vector_t vec, irq_hook_t *hook)
|
||||
void unhook_irq(enum irq_vector vec, struct irq_hook *hook)
|
||||
{
|
||||
queue_t *hook_queue = &irq_hooks[vec - IRQ0];
|
||||
struct queue *hook_queue = &irq_hooks[vec - IRQ0];
|
||||
queue_delete(hook_queue, &hook->irq_entry);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user