Go to the source code of this file.
Variables | |
| define | PIC_MASTER_PORT |
| master define | PIC_MASTER_PORT2 |
| master define | PIC_SLAVE_PORT |
| slave define | PIC_SLAVE_PORT2 |
| slave define | PIC_EOI |
| end of interrupt global _PicIrqDisable global | _PicIrqEnable [section.text] |
| code | section |
| _PicIrqDisable | __pad0__ |
| _PicIrqDisable get paramter passed pushfd | cli |
| disable all maskable interrupt mov | ah |
| disable all maskable interrupt mov | cl = 8 |
| cmp jae | L_DisableHighIrq |
| if = 8 | |
| jump to disable high irq | L_DisableLowIrq |
| get current master pic setting or | al |
| write to | popfd |
| pop register back | ret |
| return | |
| _PicIrqEnable | __pad1__ |
| _PicIrqEnable get irq number | pushfd |
| shift s bit to corrospand cmp compare cl with jae | L_EnableHighIrq |
| if jump EnableHighIrq | L_EnableLowIrq |
| end of interrupt global _PicIrqDisable global _PicIrqEnable[section.text] |
| jump to disable high irq L_DisableLowIrq |
| pop eflags of cpu ret L_EnableHighIrq |
| if jump EnableHighIrq L_EnableLowIrq |
| define PIC_MASTER_PORT |
| unmask int bit in master out PIC_MASTER_PORT2 |
| master define PIC_SLAVE_PORT |
| unmask int bit in slave out PIC_SLAVE_PORT2 |
| _PicIrqEnable get irq number pushfd |
1.5.9