Nice job, making umoddi3 call umoddi3 in the usermode stuff :(
[tpg/acess2.git] / Kernel / binary.c
index 4feb1d3..193ff14 100644 (file)
@@ -27,7 +27,7 @@ typedef struct sKernelBin {
 extern int     Proc_Clone(Uint *Err, Uint Flags);
 extern char    *Threads_GetName(int ID);
 extern void    Threads_Exit(int, int);
-extern Uint    MM_ClearUser();
+extern Uint    MM_ClearUser(void);
 extern void    Proc_StartUser(Uint Entrypoint, Uint *Bases, int ArgC, char **ArgV, char **EnvP, int DataSize);
 extern tKernelSymbol   gKernelSymbols[];
 extern void            gKernelSymbolsEnd;
@@ -142,6 +142,7 @@ int Proc_Execve(char *File, char **ArgV, char **EnvP)
                strcpy(envpSaved[i], EnvP[i]);
                strBuf += strlen(EnvP[i])+1;
        }
+       envpSaved[i] = NULL;
        
        savedFile = malloc(strlen(File)+1);
        strcpy(savedFile, File);
@@ -341,7 +342,7 @@ Uint Binary_MapIn(tBinary *binary)
                
        }
        
-       //Log("Mapped '%s' to 0x%x", binary->TruePath, base);
+       Log_Debug("Binary", "PID %i - Mapped '%s' to 0x%x", Threads_GetPID(), binary->TruePath, base);
        
        //LOG("*0x%x = 0x%x\n", binary->Pages[0].Virtual, *(Uint*)binary->Pages[0].Virtual);
        

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