diff options
Diffstat (limited to 'Source/Kernel/TaskManager/Task.ns.cpp')
-rw-r--r-- | Source/Kernel/TaskManager/Task.ns.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Kernel/TaskManager/Task.ns.cpp b/Source/Kernel/TaskManager/Task.ns.cpp index a95fd86..89e1b09 100644 --- a/Source/Kernel/TaskManager/Task.ns.cpp +++ b/Source/Kernel/TaskManager/Task.ns.cpp @@ -17,13 +17,15 @@ u32int currentThreadId = 0; u32int nextpid = 1; -void initialize(String cmdline) { +void initialize(String cmdline, VirtualTerminal *vt) { + asm volatile ("cli"); threads.clear(); processes.clear(); - currentProcess = Process::createKernel(cmdline); + currentProcess = Process::createKernel(cmdline, vt); idleThread = new Thread(idle_task, true); currentThread = threads[0]; currentThreadId = 0; + asm volatile ("sti"); } Thread* nextThread() { |