Fork us on GitHub Follow us on Facebook Follow us on Twitter

Ignore:
Timestamp:
2016-05-04T22:35:03Z (5 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
master
Children:
0f17bff
Parents:
650cd22
Message:

Use macros instead of magic numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ia32/include/arch/interrupt.h

    r650cd22 r4b0206c  
    5050#define IVT_FREEBASE  (IVT_IRQBASE + IRQ_COUNT)
    5151
     52#define EXC_DE 0
     53#define EXC_NM 7
     54#define EXC_SS 12
     55#define EXC_GP 13
     56#define EXC_PF 14
     57#define EXC_XM 19
     58
    5259#define IRQ_CLK       0
    5360#define IRQ_KBD       1
     
    6572#endif
    6673
    67 #define VECTOR_DEBUG              1
     74#define VECTOR_DE                 (IVT_EXCBASE + EXC_DE)
     75#define VECTOR_NM                 (IVT_EXCBASE + EXC_NM)
     76#define VECTOR_SS                 (IVT_EXCBASE + EXC_SS)
     77#define VECTOR_GP                 (IVT_EXCBASE + EXC_GP)
     78#define VECTOR_PF                 (IVT_EXCBASE + EXC_PF)
     79#define VECTOR_XM                 (IVT_EXCBASE + EXC_XM)
    6880#define VECTOR_CLK                (IVT_IRQBASE + IRQ_CLK)
    6981#define VECTOR_PIC_SPUR           (IVT_IRQBASE + IRQ_PIC_SPUR)
Note: See TracChangeset for help on using the changeset viewer.