os_kernel_lab/labcodes/lab5/kern/driver/intr.c

16 lines
199 B
C
Raw Normal View History

2012-08-22 12:32:13 +08:00
#include <x86.h>
#include <intr.h>
/* intr_enable - enable irq interrupt */
void
intr_enable(void) {
sti();
}
/* intr_disable - disable irq interrupt */
void
intr_disable(void) {
cli();
}