diff options
Diffstat (limited to 'Source/Kernel/TaskManager/Process.class.cpp')
-rw-r--r-- | Source/Kernel/TaskManager/Process.class.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Source/Kernel/TaskManager/Process.class.cpp b/Source/Kernel/TaskManager/Process.class.cpp index 5330719..3363ab0 100644 --- a/Source/Kernel/TaskManager/Process.class.cpp +++ b/Source/Kernel/TaskManager/Process.class.cpp @@ -5,7 +5,7 @@ Process::Process() { //Private constructor, does nothing } -Process* Process::createKernel(String cmdline) { +Process* Process::createKernel(String cmdline, VirtualTerminal *vt) { Process* p = new Process(); p->m_pid = 0; p->m_cmdline = cmdline; @@ -35,6 +35,7 @@ Process::Process(String cmdline, u32int uid) { m_state = P_RUNNING; m_pagedir = new PageDirectory(kernelPageDirectory); m_uid = uid; + m_vt = Task::currentProcess->getVirtualTerminal(); m_stacksstart = 0xC0000000; } @@ -83,3 +84,11 @@ void Process::threadFinishes(Thread* thread, u32int retval) { PageDirectory* Process::getPagedir() { return m_pagedir; } + +VirtualTerminal* Process::getVirtualTerminal() { + return m_vt; +} + +void Process::setVirtualTerminal(VirtualTerminal* vt) { + m_vt = vt; +} |