From c6657aac0c5d5ecf347bc082cb6df38e1174d297 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 18 Mar 2020 16:41:21 +0100 Subject: Replaced asm calls with sweet function --- src/kernel/fs/ata_pio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/kernel/fs/ata_pio.c') diff --git a/src/kernel/fs/ata_pio.c b/src/kernel/fs/ata_pio.c index b6dcdcc..ef9a23e 100644 --- a/src/kernel/fs/ata_pio.c +++ b/src/kernel/fs/ata_pio.c @@ -81,7 +81,7 @@ uint8_t *ata_read28(struct ata_interface *interface, uint32_t sector) uint8_t ata_write28(struct ata_interface *interface, uint32_t sector, const uint8_t *contents) { if (sector > 0x0FFFFFFF) return 1; - asm ("cli"); + cli(); outb(interface->device_port, (uint8_t) ((interface->master ? 0xE0 : 0xF0) | ((sector & 0x0F000000) >> 24))); @@ -122,4 +122,4 @@ uint8_t ata_clear28(struct ata_interface *interface, uint32_t sector) { uint8_t empty_sector[512] = {0}; return ata_write28(interface, sector, empty_sector); -} \ No newline at end of file +} -- cgit v1.2.3