#define ASSERT(CONDITION)
This is outside the header guard so that debug.h may be included multiple times with different settin...
enum intr_level intr_disable(void)
Disables interrupts and returns the previous interrupt status.
enum intr_level intr_get_level(void)
Returns the current interrupt status.
enum intr_level intr_set_level(enum intr_level level)
Enables or disables interrupts as specified by LEVEL and returns the previous interrupt status.
intr_level
Interrupts on or off?
@ INTR_OFF
Interrupts disabled.
uint8_t intq_getc(struct intq *q)
Removes a byte from Q and returns it.
void intq_putc(struct intq *q, uint8_t byte)
Adds BYTE to the end of Q.
void intq_init(struct intq *q)
Initializes interrupt queue Q.
bool intq_full(const struct intq *q)
Returns true if Q is full, false otherwise.
void serial_notify(void)
The fullness of the input buffer may have changed.
A circular queue of bytes.