summaryrefslogtreecommitdiff
path: root/Source/Kernel/TaskManager
diff options
context:
space:
mode:
authorAlexis211 <alexis211@gmail.com>2009-09-16 15:41:10 +0200
committerAlexis211 <alexis211@gmail.com>2009-09-16 15:41:10 +0200
commit5f88058644587aa255d453eee74c212e53cf9ade (patch)
tree664cadc06d75dde2618f2b3cde933f95ba898485 /Source/Kernel/TaskManager
parente2e0f21d932224434cb6121165dc00f0c1bb3bdd (diff)
downloadMelon-5f88058644587aa255d453eee74c212e53cf9ade.tar.gz
Melon-5f88058644587aa255d453eee74c212e53cf9ade.zip
Added stuff to WChar and String classes.
WChar can now decode utf16 and utf32, and encode utf8 and utf32. String now has functions append(), concat(), compare() and affect() with different prototypes for char[] arrays, so that we can use it as well with utf8, utf16 and utf32.
Diffstat (limited to 'Source/Kernel/TaskManager')
-rw-r--r--Source/Kernel/TaskManager/Thread.class.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Kernel/TaskManager/Thread.class.cpp b/Source/Kernel/TaskManager/Thread.class.cpp
index 2d167df..de92f0c 100644
--- a/Source/Kernel/TaskManager/Thread.class.cpp
+++ b/Source/Kernel/TaskManager/Thread.class.cpp
@@ -18,7 +18,7 @@ Thread::Thread(u32int (*entry_point)(), bool iskernel) {
u32int tmp;
m_kernelStackFrame = (u32int)PageAlloc::alloc(&tmp);
m_process = Task::getKernelProcess();
- setup(entry_point, m_kernelStackFrame + STACKSIZE);
+ setup(entry_point, m_kernelStackFrame + 0x1000); //A kernel stack always is 1 frame, meaning 0x1000 bytes
} else {
m_isKernel = false;
m_process = Task::currentProcess;