From 5481848e27fdd4fc859def9841a0283665531a46 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sun, 13 Sep 2020 17:12:29 -0400 Subject: fixed some paging bugs, added fault handlers and new programs --- src/kernel/task.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/kernel/task.h') diff --git a/src/kernel/task.h b/src/kernel/task.h index 838f27b..0fa9688 100644 --- a/src/kernel/task.h +++ b/src/kernel/task.h @@ -4,10 +4,11 @@ #include #include +#define TASK_NAME_LEN 15 + struct task_state { uint32_t ret_addr; void *page_directory; - //maybe put scheduling or priviledge information here? uint32_t ebx; uint32_t ecx; @@ -16,6 +17,8 @@ struct task_state { uint32_t edi; uint32_t ebp; uint32_t esp; + + char name[TASK_NAME_LEN + 1]; } __attribute__ ((packed)); extern struct task_state *active_task; -- cgit v1.2.3