diff --git a/DEBUG b/DEBUG new file mode 100644 index 0000000..0f0aa6a --- /dev/null +++ b/DEBUG @@ -0,0 +1,3 @@ +DEBUG_EXEC - Will print out lots of debug data for exec related calls +DEBUG_VFS - Will print out lots of vfs data +DEBUG_VMM - Will print out lots of VMM data diff --git a/sys/i386/i386_exec.c b/sys/i386/i386_exec.c index 41c5a90..5164cbb 100644 --- a/sys/i386/i386_exec.c +++ b/sys/i386/i386_exec.c @@ -687,7 +687,9 @@ interp = (char *) kmalloc(programHeader[i].p_filesz); fseek(fd, programHeader[i].p_offset, 0); fread((void *) interp, programHeader[i].p_filesz, 1, fd); + #ifdef DEBUG_EXEC kprintf("Interp: [%s]\n", interp); + #endif ldAddr = ldEnable(interp); //ef->ld_addr = ldEnable(); break;