exec.h
ubixos/types.h
ubixos/sched.h
src/sys/init/main.c
src/sys/kernel/exec.c
src/sys/kernel/syscall.c
src/sys/kernel/systemtask.c
src/sys/kernel/ubthread.c
src/sys/ubixfs/ubixfs.c
sys/thread.h
ubixos/sched.h
ubixos/types.h
sys/_types.h
vfs/file.h
sys/tss.h
vfs/mount.h
ubixfs/dirCache.h
src/sys/include/ubixos/exec.h
ubixos/tty.h
src/sys/kernel/ubthread.c
src/sys/kernel/systemtask.c
src/sys/ubixfs/ubixfs.c
src/sys/init/main.c
src/sys/kernel/syscall.c
src/sys/include/ubixos/exec.h
src/sys/kernel/exec.c
void void execFile (char *file, int argc, char **argv, int console) execFile char * file int argc char ** argv int console _current assert tssStruct::back_link tssStruct::cr3 tssStruct::cs tssStruct::ds tssStruct::ebp tssStruct::edi elfHeader::eEntry tssStruct::eflags elfHeader::eIdent tssStruct::eip elfHeader::ePhnum elfHeader::ePhoff tssStruct::es tssStruct::esi tssStruct::esp tssStruct::esp0 tssStruct::esp1 tssStruct::esp2 elfHeader::eType fclose fopen fread tssStruct::fs fseek taskStruct::gid tssStruct::gs taskStruct::id tssStruct::io_map K_PANIC KERNEL_PAGE_DEFAULT kernelPageDirectory kfree kmalloc kpanic kprintf tssStruct::ldt memset taskStruct::oInfo tty_termNode::owner PAGE_DEFAULT PAGE_PRESENT PAGE_STACK PAGE_USER fileDescriptorStruct::perms elfProgramHeader::phMemsz elfProgramHeader::phVaddr READY sched_setStatus schedNewTask tssStruct::ss tssStruct::ss0 tssStruct::ss1 tssStruct::ss2 STACK_ADDR taskStruct::td taskStruct::term tssStruct::trace_bitmap taskStruct::tss tty_find taskStruct::uid thread::vm_daddr vmm_remapPage vmm_setPageAttributes vmmCreateVirtualSpace vmmFindFreePage osInfo::vmStart x1000 x18 x30 kmain
uInt32 uInt32 execThread (void(*tproc)(void), uInt32, char *) execThread void(*)(void) tproc uInt32 char * assert tssStruct::back_link tssStruct::cr3 tssStruct::cs tssStruct::ds tssStruct::ebp tssStruct::edi tssStruct::eflags tssStruct::eip tssStruct::es tssStruct::esi tssStruct::esp tssStruct::esp0 tssStruct::esp1 tssStruct::esp2 tssStruct::fs tssStruct::gs taskStruct::id taskStruct::imageFd tssStruct::io_map kernelPageDirectory kpanic tssStruct::ldt taskStruct::oInfo READY sched_setStatus schedNewTask tssStruct::ss tssStruct::ss0 tssStruct::ss1 tssStruct::ss2 tssStruct::trace_bitmap taskStruct::tss osInfo::vmStart kmain ubthread_create
void void sys_exec (char *file, char *ap) sys_exec char * file char * ap

New exec...

Clean the virtual of COW pages left over from the fork

Adjust iframe

build argc and argv[]

Start of Env

_current
elfHeader::eEntry
elfHeader::eIdent
i386_frame::eip
elfHeader::ePhnum
elfHeader::ePhoff
ET_EXEC
elfHeader::eType
fclose
fopen
fread
fseek
taskStruct::id
taskStruct::imageFd
K_PANIC
kfree
kmalloc
kprintf
memset
taskStruct::oInfo
PAGE_DEFAULT
PAGE_PRESENT
PAGE_SHIFT
PAGE_USER
elfProgramHeader::phMemsz
elfProgramHeader::phOffset
elfProgramHeader::phVaddr
PT_INTERP
PT_LOAD
PT_PHDR
round_page
taskStruct::td
trunc_page
thread::vm_daddr
thread::vm_dsize
vmm_remapPage
vmm_setPageAttributes
vmmFindFreePage
osInfo::vmStart
x1000
sysExec

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: exec_8h.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #ifndef_EXEC_H
    #define_EXEC_H

    #include<ubixos/types.h>
    #include<ubixos/sched.h>

    uInt32execThread(void(*tproc)(void),uInt32,char*);
    voidexecFile(char*file,intargc,char**argv,intconsole);
    voidsys_exec(char*file,char*ap);

    #endif

    /***
    END
    ***/