aboutsummaryrefslogtreecommitdiff
path: root/kernel/features
diff options
context:
space:
mode:
authorMarvin Borner2021-03-03 21:30:32 +0100
committerMarvin Borner2021-03-03 21:30:32 +0100
commit2a9cd43240d33138e127db1ebf10b5e9534b558f (patch)
tree32696cff350d68c9609f63d7336c1f02bf8afdbe /kernel/features
parentd47e627d0006e038dcd1c34b9015c3370f7b4b0c (diff)
Removed this for now
Diffstat (limited to 'kernel/features')
-rw-r--r--kernel/features/proc.c16
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);