From cd384b9b0cd7aecbc3f0bcd9cd8a7316d48e8dcf Mon Sep 17 00:00:00 2001 From: Fabian Date: Thu, 21 Jul 2022 22:07:45 +0900 Subject: [PATCH] ide: map at isa ports too (for serenityos, #299) --- src/ide.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ide.js b/src/ide.js index 8d83dbe8..5d7cd783 100644 --- a/src/ide.js +++ b/src/ide.js @@ -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,