From 073cb266079edddec64ea8cd5169dd2cbef8f812 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Mon, 27 Feb 2017 14:10:02 -0500 Subject: syscall_emul: [patch 14/22] adds identifier system calls This changeset add fields to the process object and adds the following three system calls: setpgid, gettid, getpid. --- src/sim/system.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sim/system.hh') diff --git a/src/sim/system.hh b/src/sim/system.hh index c3667fe09..3954b35c2 100644 --- a/src/sim/system.hh +++ b/src/sim/system.hh @@ -551,6 +551,11 @@ class System : public MemObject // For futex system call std::map * > futexMap; + static const int maxPID = 32768; + + /** Process set to track which PIDs have already been allocated */ + std::set PIDs; + protected: /** -- cgit v1.2.3