mirror of
https://github.com/tailix/kernel.git
synced 2024-10-30 12:03:52 -04:00
Add comments
This commit is contained in:
parent
ef2a7507b7
commit
cb4ebffe88
1 changed files with 4 additions and 0 deletions
|
@ -13,15 +13,19 @@ void pic_remap(const unsigned char master_irq_start, const unsigned char slave_i
|
|||
{
|
||||
logger_info_from("pic", "Remap the IRQ table.");
|
||||
|
||||
// Start the initialization sequence
|
||||
outportb(PIC_MASTER_COMMAND, 0x11);
|
||||
outportb(PIC_SLAVE_COMMAND, 0x11);
|
||||
|
||||
// Set IRQ vectors
|
||||
outportb(PIC_MASTER_DATA, master_irq_start);
|
||||
outportb(PIC_SLAVE_DATA, slave_irq_start);
|
||||
|
||||
// Connect master and slave with each other
|
||||
outportb(PIC_MASTER_DATA, 0x04);
|
||||
outportb(PIC_SLAVE_DATA, 0x02);
|
||||
|
||||
// 8086/88 (MCS-80/85) mode
|
||||
outportb(PIC_MASTER_DATA, 0x01);
|
||||
outportb(PIC_SLAVE_DATA, 0x01);
|
||||
|
||||
|
|
Loading…
Reference in a new issue