diff options
Diffstat (limited to 'src/kernel/fs/ata_pio.c')
-rw-r--r-- | src/kernel/fs/ata_pio.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 +} |