From 82756b86977dc65468f6298787d8dca5634ac788 Mon Sep 17 00:00:00 2001 From: Alexis211 Date: Sat, 17 Oct 2009 12:54:48 +0200 Subject: Each Process now has a user heap. It will be used for transferring data from kernel to userland. --- Source/Kernel/TaskManager/Thread.class.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Kernel/TaskManager/Thread.class.cpp') 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() { -- cgit v1.2.3