Skip to content

Commit

Permalink
ide: map at isa ports too (for serenityos, #299)
Browse files Browse the repository at this point in the history
  • Loading branch information
copy committed Jul 25, 2022
1 parent bd82892 commit 91669a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ function IDEDevice(cpu, master_buffer, slave_buffer, is_cd, nr, bus)
this.pci_space = [
0x86, 0x80, 0x10, 0x70, 0x05, 0x00, 0xA0, 0x02,
0x00, 0x80, 0x01, 0x01, 0x00, 0x00, 0x00, 0x00,
0 | 1, 0, 0x00, 0x00,
0 | 1, 0, 0x00, 0x00,
this.ata_port & 0xFF | 1, this.ata_port >> 8, 0x00, 0x00,
this.ata_port_high & 0xFF | 1, this.ata_port_high >> 8, 0x00, 0x00,
0x00, 0x00, 0x00, 0x00, // second device
0x00, 0x00, 0x00, 0x00, // second device
this.master_port & 0xFF | 1, this.master_port >> 8, 0x00, 0x00,
Expand Down

0 comments on commit 91669a6

Please sign in to comment.