diff --git a/proc/process.h b/proc/process.h index 477c17950..edf45239e 100644 --- a/proc/process.h +++ b/proc/process.h @@ -50,13 +50,16 @@ typedef struct _process_t { unsigned lgap : 1; unsigned rgap : 1; - /*u32 uid; +/* TODO: Process shall keep information permissions */ +#if 0 + u32 uid; u32 euid; u32 suid; u32 gid; u32 egid; u32 sgid; - u32 umask;*/ + u32 umask; +#endif void *ports; diff --git a/proc/threads.c b/proc/threads.c index 15c32cc65..c034f184c 100644 --- a/proc/threads.c +++ b/proc/threads.c @@ -33,8 +33,6 @@ struct { thread_t **current; time_t utcoffs; - unsigned int executions; - /* Synchronized by spinlock */ rbtree_t sleeping; @@ -560,8 +558,6 @@ int threads_schedule(unsigned int n, cpu_context_t *context, void *arg) cpu_sendIPI(0, 32); } - threads_common.executions++; - current = threads_common.current[hal_cpuGetID()]; threads_common.current[hal_cpuGetID()] = NULL; @@ -585,7 +581,7 @@ int threads_schedule(unsigned int n, cpu_context_t *context, void *arg) LIST_REMOVE(&threads_common.ready[i], selected); - if (!selected->exit /*|| hal_cpuSupervisorMode(selected->context)*/) + if (!selected->exit) break; selected->state = GHOST; @@ -1862,7 +1858,6 @@ int _threads_init(vm_map_t *kmap, vm_object_t *kernel) { unsigned int i; threads_common.kmap = kmap; - threads_common.executions = 0; threads_common.ghosts = NULL; threads_common.reaper = NULL; threads_common.utcoffs = 0;