diff options
author | Ian McFarlane <i.mcfarlane2002@gmail.com> | 2025-04-20 16:02:30 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-20 23:44:39 -0400 |
commit | b7e9d50ba785ba45ed74c363d1a791fa875cc8e8 (patch) | |
tree | 3b74f40e662451ead7711f0021cb025a9374d332 /kernel | |
parent | oob check (diff) | |
download | comus-b7e9d50ba785ba45ed74c363d1a791fa875cc8e8.tar.gz comus-b7e9d50ba785ba45ed74c363d1a791fa875cc8e8.tar.bz2 comus-b7e9d50ba785ba45ed74c363d1a791fa875cc8e8.zip |
add ata_init to main and fix some compilation problems
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/drivers/ata.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/drivers/ata.c b/kernel/drivers/ata.c index 2e9fe28..727d738 100644 --- a/kernel/drivers/ata.c +++ b/kernel/drivers/ata.c @@ -163,8 +163,8 @@ static void ide_channel_write(struct ide_channel *channel, const uint8_t reg, outb(channel->io_base + reg - 0x06, data); } else if (reg < 0x0E) { outb(channel->control_base + reg - 0x0A, data); - // someone on OSdev said this was the correct thing - // https://wiki.osdev.org/Talk:PCI_IDE_Controller + // someone on OSdev said this was the correct thing + // https://wiki.osdev.org/Talk:PCI_IDE_Controller // outb(channel->control_base + reg - 0x0C, data); } else if (reg < 0x16) { outb(channel->bus_master_ide_base + reg - 0x0E, data); |