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