aboutsummaryrefslogtreecommitdiff
path: root/include/arch/irq.h
blob: 0c8ecf9b96035eed0d196b61845fd5b554fcd0ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef APOS_IRQ_H
#define APOS_IRQ_H

/**
 * @file irq.h
 * Arch-specific interrupt handling, generally implemented in
 * arch/whatever/kernel/irq.c
 *
 * \todo These should probably also be stat_t...
 */

#if defined(riscv64)
#include "../../arch/riscv64/include/irq.h"
#elif defined(riscv32)
#include "../../arch/riscv32/include/irq.h"
#endif

/**
 * Initialize IRQ subsystem.
 *
 * @param fdt Global FDT pointer.
 */
void init_irq(void *fdt);

/** Enable IRQs. */
void enable_irq();

/** Disable IRQs. */
void disable_irq();

#endif /* APOS_IRQ_H */