《操作系统》的实验代码。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
199 B

10 years ago
  1. #include <x86.h>
  2. #include <intr.h>
  3. /* intr_enable - enable irq interrupt */
  4. void
  5. intr_enable(void) {
  6. sti();
  7. }
  8. /* intr_disable - disable irq interrupt */
  9. void
  10. intr_disable(void) {
  11. cli();
  12. }