diff options
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r-- | kernel/features/proc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c index 43cedb6..19a92d3 100644 --- a/kernel/features/proc.c +++ b/kernel/features/proc.c @@ -486,14 +486,14 @@ void proc_init(void) _eip = ((struct proc *)new->data)->regs.eip; _esp = ((struct proc *)new->data)->regs.useresp; - u32 argc = 2; - char **argv = malloc(sizeof(*argv) * (argc + 1)); - argv[0] = strdup("init"); - argv[1] = (char *)boot_passed->vbe; - argv[2] = NULL; - - ((u32 *)_esp)[0] = argc; // First argument (argc) - ((u32 *)_esp)[-1] = (u32)argv; // Second argument (argv) + /* u32 argc = 2; */ + /* char **argv = malloc(sizeof(*argv) * (argc + 1)); */ + /* argv[0] = strdup("init"); */ + /* argv[1] = (char *)boot_passed->vbe; */ + /* argv[2] = NULL; */ + + /* ((u32 *)_esp)[0] = argc; // First argument (argc) */ + /* ((u32 *)_esp)[-1] = (u32)argv; // Second argument (argv) */ printf("Jumping to userspace!\n"); memory_dir_switch(((struct proc *)new->data)->page_dir); |