aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/fs/install.c
diff options
context:
space:
mode:
authorMarvin Borner2020-03-18 16:41:21 +0100
committerMarvin Borner2020-03-18 16:41:21 +0100
commitc6657aac0c5d5ecf347bc082cb6df38e1174d297 (patch)
tree5db660dd74d9741cf1105290d4584d9a1fdb7020 /src/kernel/fs/install.c
parentadd6efeb22ffb7695d5c9addcef073fc653f700e (diff)
Replaced asm calls with sweet function
Diffstat (limited to 'src/kernel/fs/install.c')
-rw-r--r--src/kernel/fs/install.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/kernel/fs/install.c b/src/kernel/fs/install.c
index 84d74fd..0c3d824 100644
--- a/src/kernel/fs/install.c
+++ b/src/kernel/fs/install.c
@@ -1,5 +1,6 @@
#include <kernel/graphics/vesa.h>
#include <kernel/fs/ata_pio.h>
+#include <kernel/io/io.h>
#include <kernel/fs/marfs/marfs.h>
#include <kernel/fs/iso9660/iso9660.h>
#include <kernel/fs/atapi_pio.h>
@@ -12,7 +13,7 @@
void install_melvix()
{
info("You're booting from a CD, Melvix will only run after an installation");
- asm ("cli");
+ cli();
struct ata_interface *primary_master = new_ata(1, 0x1F0);
if (marfs_init(primary_master) != 0) {
panic("No HDD found!");
@@ -90,4 +91,4 @@ void install_melvix()
// timer_wait(200);
acpi_poweroff();
halt_loop();
-} \ No newline at end of file
+}