Moved Ivy lock tracking into per cpu info
[akaros.git] / kern / src / init.c
index 57cfd8a..7f93e1b 100644 (file)
@@ -35,6 +35,9 @@
 #include <arch/ioapic.h>
 #endif
 
+// zra: flag for Ivy
+int booting = 1;
+
 void kernel_init(multiboot_info_t *mboot_info)
 {
        extern char (RO BND(__this, end) edata)[], (RO SNT end)[];
@@ -100,6 +103,9 @@ void kernel_init(multiboot_info_t *mboot_info)
        ne2k_init();
        #endif // __NETWORK__
 
+       // zra: let's Ivy know we're done booting
+       booting = 0;
+
        manager();
 }