refactor: make the demos into dedicated files
[lunaix-os.git] / lunaix-os / kernel / proc0.c
index 4cc414c4d28cd92b8b91ae66b40bc2b496ecf6ab..79ef12e9e46e49da80ae6eff80cf7d08d8340a4c 100644 (file)
@@ -31,11 +31,17 @@ unlock_reserved_memory();
 void
 __do_reserved_memory(int unlock);
 
+//#define DEMO_SIGNAL
+
 void __USER__
 __proc0_usr()
 {
     if (!fork()) {
+#ifdef DEMO_SIGNAL
+        asm("jmp _signal_demo_main");
+#else
         asm("jmp _lxinit_main");
+#endif
     }
 
     while (1) {