interrupt.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2021-07-16 JasonHu first version
  9. */
  10. #ifndef __INTERRUPT_H__
  11. #define __INTERRUPT_H__
  12. #define MAX_INTR_NR 0x81
  13. #define EXCEPTION_INTR_BASE 0x00
  14. #define IRQ_INTR_BASE 0x20
  15. #define SYSCALL_INTR_BASE 0x80
  16. #define MAX_IRQ_NR 16
  17. #define EXCEPTION_PAGE_FAULT 14
  18. #define IRQ0_CLOCK 0
  19. #define IRQ1_KEYBOARD 1
  20. #define IRQ2_CONNECT 2 /* connect to slave */
  21. #define IRQ3_SERIAL2 3
  22. #define IRQ4_SERIAL1 4
  23. #define IRQ5_PARALLEL2 5
  24. #define IRQ6_FLOPPY 6
  25. #define IRQ7_PARALLEL1 7
  26. #define IRQ8_RTCLOCK 8 /* real-time clock */
  27. #define IRQ9_REDIRECT 9 /* redirect to IRQ2 */
  28. #define IRQ10_RESERVED 10
  29. #define IRQ11_RESERVED 11
  30. #define IRQ12_MOUSE 12
  31. #define IRQ13_FPU 13
  32. #define IRQ14_HARDDISK 14
  33. #define IRQ15_RESERVE 15
  34. #include "i386.h"
  35. #endif /* __INTERRUPT_H__ */