1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 23:48:11 +00:00

Kernel: Unbreak building with extra debug macros, part 2

This commit is contained in:
Ben Wiederhake 2020-08-27 00:58:09 +02:00 committed by Andreas Kling
parent eac3bbdcee
commit 081bb29626
9 changed files with 28 additions and 18 deletions

View file

@ -79,9 +79,10 @@
#include <LibELF/Validation.h>
#include <LibKeyboard/CharacterMapData.h>
//#define PROCESS_DEBUG
//#define DEBUG_POLL_SELECT
//#define DEBUG_IO
//#define DEBUG_POLL_SELECT
//#define MM_DEBUG
//#define PROCESS_DEBUG
//#define SIGNAL_DEBUG
namespace Kernel {
@ -367,12 +368,12 @@ Process::Process(Thread*& first_thread, const String& name, uid_t uid, gid_t gid
, m_ppid(ppid)
{
#ifdef PROCESS_DEBUG
dbg() << "Created new process " << m_name << "(" << m_pid << ")";
dbg() << "Created new process " << m_name << "(" << m_pid.value() << ")";
#endif
m_page_directory = PageDirectory::create_for_userspace(*this, fork_parent ? &fork_parent->page_directory().range_allocator() : nullptr);
#ifdef MM_DEBUG
dbg() << "Process " << pid() << " ctor: PD=" << m_page_directory.ptr() << " created";
dbg() << "Process " << pid().value() << " ctor: PD=" << m_page_directory.ptr() << " created";
#endif
if (fork_parent) {