Misc changes, working on the VTerm's VT100 support and CLIShell's input
[tpg/acess2.git] / Usermode / Libraries / ld-acess.so_src / main.c
index fb9cd35..678dc9a 100644 (file)
@@ -22,9 +22,6 @@ extern void   gLinkedBase;
 int SoMain(Uint base, int arg1)\r
 {\r
         int    ret;\r
-       \r
-       SysDebug("SoMain: base = 0x%x", base);\r
-       SysDebug("SoMain: arg1 = 0x%x", arg1);\r
         \r
        // - Assume that the file pointer will be less than 4096\r
        if(base < 0x1000) {\r
@@ -79,11 +76,11 @@ int DoRelocate( Uint base, char **envp, char *Filename )
 */\r
 int CallUser(Uint entry, Uint sp)\r
 {\r
-       SysDebug("CallUser: (entry=0x%x, sp=0x%x)", entry, sp);\r
+       //SysDebug("CallUser: (entry=0x%x, sp=0x%x)", entry, sp);\r
        *(Uint*)(sp-4) = 0;     // Clear return address\r
        __asm__ __volatile__ (\r
        "mov %%eax, %%esp;\n\t"\r
        "jmp *%%ecx"\r
-       : : "a"(sp-4), "c"(entry));\r
+       : : "a"(sp), "c"(entry));\r
        for(;;);\r
 }\r

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