summaryrefslogtreecommitdiff
path: root/Source/Kernel/TaskManager/Thread.class.cpp
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-10-17 12:59:11 +0200
committerAlexis211 <alexis211@gmail.com>2009-10-17 12:59:11 +0200
commit45fcf4cc7ddacd93df2dd4d88ad31f6061e8d4a8 (patch)
tree4f1a3b3d301cded70af6ff9177d13b8a51f2d825 /Source/Kernel/TaskManager/Thread.class.cpp
parent54d76800cf8010434065556e12f693b101383d8b (diff)
parent82756b86977dc65468f6298787d8dca5634ac788 (diff)
downloadMelon-45fcf4cc7ddacd93df2dd4d88ad31f6061e8d4a8.tar.gz
Melon-45fcf4cc7ddacd93df2dd4d88ad31f6061e8d4a8.zip
Merge branch 'heap_class'
Conflicts: Source/Kernel/Melon.ke
Diffstat (limited to 'Source/Kernel/TaskManager/Thread.class.cpp')
-rw-r--r--Source/Kernel/TaskManager/Thread.class.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Kernel/TaskManager/Thread.class.cpp b/Source/Kernel/TaskManager/Thread.class.cpp
index fe1d08e..20d6cd4 100644
--- a/Source/Kernel/TaskManager/Thread.class.cpp
+++ b/Source/Kernel/TaskManager/Thread.class.cpp
@@ -22,14 +22,14 @@ Thread::Thread(thread_entry_t entry_point, void* data, bool iskernel) {
} else {
m_isKernel = false;
m_process = Task::currProcess();
- setup(entry_point, data, m_process->stackAlloc() + STACKSIZE);
+ setup(entry_point, data, (u32int)(m_process->heap().alloc(STACKSIZE)) + STACKSIZE);
}
}
Thread::Thread(Process* process, thread_entry_t entry_point, void* data) {
m_isKernel = false;
m_process = process;
- setup(entry_point, data, m_process->stackAlloc() + STACKSIZE);
+ setup(entry_point, data, (u32int)(m_process->heap().alloc(STACKSIZE)) + STACKSIZE);
}
Thread::~Thread() {