summaryrefslogtreecommitdiff
path: root/Kernel/Thread.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-12-31 01:22:00 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-12-31 01:22:00 +0100
commit54d182f5532ecde80549644db95969847c6a7368 (patch)
treedb5bfacc189f860419057b054d45b81a0ebd1eef /Kernel/Thread.cpp
parent66d5ebafa658b84e512cdee13bdf7e17ef5c56e1 (diff)
downloadserenity-54d182f5532ecde80549644db95969847c6a7368.zip
Kernel: Remove some unnecessary leaking of kernel pointers into dmesg
There's a lot more of this and we need to stop printing kernel pointers anywhere but the debug console.
Diffstat (limited to 'Kernel/Thread.cpp')
-rw-r--r--Kernel/Thread.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/Kernel/Thread.cpp b/Kernel/Thread.cpp
index c5a9f638d0..30c0057a58 100644
--- a/Kernel/Thread.cpp
+++ b/Kernel/Thread.cpp
@@ -89,7 +89,6 @@ Thread::Thread(Process& process)
m_kernel_stack_base = m_kernel_stack_region->vaddr().get();
m_kernel_stack_top = m_kernel_stack_region->vaddr().offset(default_kernel_stack_size).get() & 0xfffffff8u;
m_tss.esp = m_kernel_stack_top;
- kprintf("Allocated ring0 stack @ %p - %p\n", m_kernel_stack_base, m_kernel_stack_top);
} else {
// Ring3 processes need a separate stack for Ring0.
m_kernel_stack_region = MM.allocate_kernel_region(default_kernel_stack_size, String::format("Kernel Stack (Thread %d)", m_tid), Region::Access::Read | Region::Access::Write, false, true);
@@ -98,7 +97,6 @@ Thread::Thread(Process& process)
m_kernel_stack_top = m_kernel_stack_region->vaddr().offset(default_kernel_stack_size).get() & 0xfffffff8u;
m_tss.ss0 = 0x10;
m_tss.esp0 = m_kernel_stack_top;
- kprintf("Allocated ring0 stack @ %p - %p\n", m_kernel_stack_base, m_kernel_stack_top);
}
// HACK: Ring2 SS in the TSS is the current PID.