HariboteOS/day25/include/int.h
2021-05-26 20:44:33 +08:00

31 lines
646 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);
int *int_handler0c(int *esp);
int *int_handler0d(int *esp);
void int_handler2c(int *esp);
void asm_int_handler0c(void);
void asm_int_handler0d(void);
void asm_int_handler20(void);
void asm_int_handler21(void);
void asm_int_handler27(void);
void asm_int_handler2c(void);
#endif // _INT_H_