summaryrefslogtreecommitdiff
path: root/src/kernel/task.h
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2020-09-13 17:12:29 -0400
committerBenji Dial <benji6283@gmail.com>2020-09-13 17:12:29 -0400
commit5481848e27fdd4fc859def9841a0283665531a46 (patch)
tree990a8df008214d85141a3bd10bd96898e64b0c37 /src/kernel/task.h
parent1e4a254674f668839e5de273916024c16814b045 (diff)
downloadportland-os-5481848e27fdd4fc859def9841a0283665531a46.tar.gz
fixed some paging bugs, added fault handlers and new programs
Diffstat (limited to 'src/kernel/task.h')
-rw-r--r--src/kernel/task.h5
1 files changed, 4 insertions, 1 deletions
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 <stdbool.h>
#include <stdint.h>
+#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;