aboutsummaryrefslogtreecommitdiff
path: root/kernel/features/proc.c
diff options
context:
space:
mode:
authorMarvin Borner2021-03-20 18:46:33 +0100
committerMarvin Borner2021-03-20 18:46:33 +0100
commit635751fc2a75f66d1541469b3204efb1701bd91c (patch)
tree2cb5ac0484acb2427504b681a021d6c2fe19d0f8 /kernel/features/proc.c
parentc97a50ba7baa70b40431594f410ca18e14af3b76 (diff)
Even more fixes! :^)
Diffstat (limited to 'kernel/features/proc.c')
-rw-r--r--kernel/features/proc.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/kernel/features/proc.c b/kernel/features/proc.c
index aa595ff..5d3c8aa 100644
--- a/kernel/features/proc.c
+++ b/kernel/features/proc.c
@@ -81,11 +81,13 @@ void proc_print(void)
{
struct node *node = proc_list->head;
- printf("\nPROCESSES\n");
+ printf("--- PROCESSES ---\n");
struct proc *proc = NULL;
while (node && (proc = node->data)) {
- printf("Process %d: %s [%s]\n", proc->pid, proc->name,
- proc->state == PROC_RUNNING ? "RUNNING" : "SLEEPING");
+ printf("Process %d: %s [%s] [entry: %x; stack: %x]\n", proc->pid, proc->name,
+ proc->state == PROC_RUNNING ? "RUNNING" : "SLEEPING",
+ virtual_to_physical(proc->page_dir, proc->entry),
+ virtual_to_physical(proc->page_dir, proc->regs.ebp));
node = node->next;
}
printf("\n");