summaryrefslogtreecommitdiff
path: root/src/kernel/task
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-17 11:27:59 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-17 11:27:59 +0200
commit1c7c106b06b6a88502801e699ef99e72b7c625cd (patch)
tree5708a229b0d66e8eb82a953861e017915f8176b6 /src/kernel/task
parent5bc8549a8d7f5c9644f878fe3ca55761663a2fd0 (diff)
downloadTCE-1c7c106b06b6a88502801e699ef99e72b7c625cd.tar.gz
TCE-1c7c106b06b6a88502801e699ef99e72b7c625cd.zip
Fixed some nasty bugs.
Diffstat (limited to 'src/kernel/task')
-rw-r--r--src/kernel/task/task.cpp8
-rw-r--r--src/kernel/task/task.h1
2 files changed, 4 insertions, 5 deletions
diff --git a/src/kernel/task/task.cpp b/src/kernel/task/task.cpp
index 51219e0..92820f9 100644
--- a/src/kernel/task/task.cpp
+++ b/src/kernel/task/task.cpp
@@ -272,13 +272,13 @@ thread::thread(class process *proc, thread_entry entry_point, void *data, void *
}
/* Creates a new process. Creates a struct process and fills it up. */
-process::process(process* parent, uint32_t uid, uint32_t privilege) {
+process::process(process* _parent, uint32_t _uid, uint32_t _privilege) {
pid = (nextpid++);
- uid = uid;
+ uid = _uid;
thread_count = 0;
threads = 0;
- privilege = privilege;
- parent = parent;
+ privilege = _privilege;
+ parent = _parent;
pagedir = pagedir_new();
next = processes;
data = 0;
diff --git a/src/kernel/task/task.h b/src/kernel/task/task.h
index 69b431d..301f8be 100644
--- a/src/kernel/task/task.h
+++ b/src/kernel/task/task.h
@@ -44,7 +44,6 @@ class thread {
class process *process;
uint32_t esp, ebp, eip;
uint8_t state;
- uint32_t timeWait;
void* kernelStack_addr;
uint32_t kernelStack_size;