]> git.corax.cc Git - corax/commitdiff
Don't print ESP0 value in process_create(); split long lines
authorMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 10:08:22 +0000 (19:08 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 25 Sep 2019 10:08:22 +0000 (19:08 +0900)
kernel/arch/process.c

index 270850d1ace0960c474b34ed420a2ed9c84a7383..552abbcea674aa164be9780e5aa189753d2ff227 100644 (file)
@@ -50,10 +50,11 @@ int process_create(process_t **dst)
                        goto cleanup;
                }
 
-               task_prepare(proc->p_tasks, (u32_t)pdbr, (u32_t)foo, (u32_t)kstack, (u32_t)ustack + PAGE_SIZE, 3);
+               task_prepare(proc->p_tasks, (u32_t)pdbr, (u32_t)foo,
+                                        (u32_t)kstack, (u32_t)ustack + PAGE_SIZE, 3);
 
-               proc->p_tasks->t_sp = (u32_t)(CONFIG_KERNEL_STACK_BASE + ((u32_t)proc->p_tasks->t_sp - (u32_t)kstack));
-               dbg_printf("ESP0 = 0x%08x\n", proc->p_tasks->t_sp);
+               proc->p_tasks->t_sp = (u32_t)(CONFIG_KERNEL_STACK_BASE +
+                                                                         ((u32_t)proc->p_tasks->t_sp - (u32_t)kstack));
        }
 
 cleanup: