summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/main.c b/main.c
index a075def..563f216 100644
--- a/main.c
+++ b/main.c
@@ -60,12 +60,14 @@ main()
p->ppid = 0;
setupsegs(p);
- // become interruptable
- write_eflags(read_eflags() | FL_IF);
-
// turn on timer and enable interrupts on the local APIC
lapic_timerinit();
lapic_enableintr();
+ // init disk device
+ ide_init();
+
+ // become interruptable
+ write_eflags(read_eflags() | FL_IF);
p = newproc();
// load_icode(p, _binary_usertests_start, (unsigned) _binary_usertests_size);