HariboteOS/day7/include/int.h
2021-03-17 23:52:39 +08:00

28 lines
556 B
C

#ifndef _INT_H_
#define _INT_H_
#define PIC0_ICW1 0x0020
#define PIC0_OCW2 0x0020
#define PIC0_IMR 0x0021
#define PIC0_ICW2 0x0021
#define PIC0_ICW3 0x0021
#define PIC0_ICW4 0x0021
#define PIC1_ICW1 0x00a0
#define PIC1_OCW2 0x00a0
#define PIC1_IMR 0x00a1
#define PIC1_ICW2 0x00a1
#define PIC1_ICW3 0x00a1
#define PIC1_ICW4 0x00a1
void init_pic(void);
void int_handler21(int *esp);
void int_handler27(int *esp);
void int_handler2c(int *esp);
void asm_int_handler21(void);
void asm_int_handler27(void);
void asm_int_handler2c(void);
#endif // _INT_H_