Changeset View
Changeset View
Standalone View
Standalone View
sys/i386/i386/atpic_vector.s
Show All 40 Lines | |||||
#include "assym.s" | #include "assym.s" | ||||
/* | /* | ||||
* Macros for interrupt entry, call to handler, and exit. | * Macros for interrupt entry, call to handler, and exit. | ||||
*/ | */ | ||||
#define INTR(irq_num, vec_name) \ | #define INTR(irq_num, vec_name) \ | ||||
.text ; \ | .text ; \ | ||||
SUPERALIGN_TEXT ; \ | SUPERALIGN_TEXT ; \ | ||||
IDTVEC(vec_name ##_pti) ; \ | |||||
IDTVEC(vec_name) ; \ | IDTVEC(vec_name) ; \ | ||||
PUSH_FRAME ; \ | PUSH_FRAME ; \ | ||||
SET_KERNEL_SREGS ; \ | SET_KERNEL_SREGS ; \ | ||||
cld ; \ | cld ; \ | ||||
; \ | ; \ | ||||
FAKE_MCOUNT(TF_EIP(%esp)) ; \ | FAKE_MCOUNT(TF_EIP(%esp)) ; \ | ||||
pushl %esp ; \ | pushl %esp ; \ | ||||
pushl $irq_num; /* pass the IRQ */ \ | pushl $irq_num; /* pass the IRQ */ \ | ||||
Show All 22 Lines |