Fixes to Libc, Doxygen Comments and VTerm layout
[tpg/acess2.git] / Kernel / system.c
index 26ce100..27c3502 100644 (file)
@@ -9,6 +9,7 @@
 extern int     Modules_LoadBuiltins();
 extern int     PCI_Install();
 extern void    DMA_Install();
+extern void    Debug_SetKTerminal(char *File);
 
 // === PROTOTYPES ===
 void   System_Init(char *ArgString);
@@ -19,7 +20,6 @@ void  System_ExecuteScript();
  int   System_Int_GetString(char *Str, char **Dest);
 
 // === GLOBALS ===
-char   *gsInitPath = "/Acess/Bin/init";
 char   *gsConfigScript = "/Acess/Conf/BootConf.cfg";
 
 // === CODE ===
@@ -30,6 +30,9 @@ void System_Init(char *ArgString)
        DMA_Install();
        Modules_LoadBuiltins();
        
+       // Set the debug to be echoed to the terminal
+       Debug_SetKTerminal("/Devices/vterm/0");
+       
        // - Parse Kernel's Command Line
        System_ParseCommandLine(ArgString);
        
@@ -233,10 +236,10 @@ void System_ExecuteScript()
                }
                // - Load Module
                else if(strncmp("module ", fData+i, 6) == 0) {
+                       //char  *tmp;
                        i += 7;
                        i += System_Int_GetString(fData+i, &sArg1);
                        if(!sArg1)      goto read2eol;
-                       //Log("[CFG ] Load Module '%s'\n", sArg1);
                        Module_LoadFile(sArg1, "");     //!\todo Use the rest of the line as the argument string
                }
                // - Load Module

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