AcessNative - Debugging and implementing, getting there now
[tpg/acess2.git] / AcessNative / acesskernel_src / main.c
index 3f152ef..3f72413 100644 (file)
@@ -6,6 +6,7 @@
  */
 #include <stdio.h>
 #include <stdlib.h>
+#include <signal.h>
 
 // === IMPORTS ===
 extern int     UI_Initialise(int Width, int Height);
@@ -13,21 +14,29 @@ extern int  VFS_Init(void);
 extern int     Video_Install(char **Arguments);
 extern int     NativeKeyboard_Install(char **Arguments);
 extern int     VT_Install(char **Arguments);
+extern int     VFS_Mount(const char *Device, const char *MountPoint, const char *Filesystem, const char *Options);
 extern int     SyscallServer(void);
 
+// === GLOBALS ===
+const char     *gsAcessDir = "../Usermode/Output/i386";
+
 // === CODE ===
 int main(int argc, char *argv[])
 {
        // Parse command line settings
-       
+
+       // - Ignore SIGUSR1 (used to wake threads)
+       signal(SIGUSR1, SIG_IGN);
+               
        // Start UI subsystem
-       UI_Initialise(640, 480);
+       UI_Initialise(800, 480);
        
        // Initialise VFS
        VFS_Init();
        // - Start IO Drivers
        Video_Install(NULL);
        NativeKeyboard_Install(NULL);
+       NativeFS_Install(NULL);
        // - Start VTerm
        {
                char    *args[] = {
@@ -38,6 +47,10 @@ int main(int argc, char *argv[])
                VT_Install(args);
        }
        
+       VFS_Mount(gsAcessDir, "/Acess", "nativefs", "");
+
+       Debug_SetKTerminal("/Devices/VTerm/8");
+       
        // Start syscall server
        // - Blocks
        SyscallServer();

UCC git Repository :: git.ucc.asn.au