kernel/process: move next_process_id to kernel instance

This commit is contained in:
Weiyi Wang 2018-10-17 13:47:42 -04:00
parent 129ca865b3
commit 4238754d8c
4 changed files with 6 additions and 8 deletions

View file

@ -183,6 +183,10 @@ public:
private:
std::unique_ptr<ResourceLimitList> resource_limits;
std::atomic<u32> next_object_id{0};
// TODO(Subv): Start the process ids from 10 for now, as lower PIDs are
// reserved for low-level services
u32 next_process_id = 10;
};
} // namespace Kernel