From 2c9422595f41635e2f4f7ef1afb7eece9001feae Mon Sep 17 00:00:00 2001 From: Justus Winter <4winter@informatik.uni-hamburg.de> Date: Tue, 26 Nov 2013 17:33:05 +0100 Subject: proc: store the privileged host port in _hurd_host_priv Store the privileged host port in _hurd_host_priv like it is done in the root filesystem. This fixes the thread priority adjustment in the proc server. Prior to this fix, a warning message "unable to adjust libports thread priority" sometimes appeared early in the boot process. * proc/host.c (S_proc_getprivports): Adapt accordingly. (S_proc_register_version): Likewise. * proc/mgt.c (add_tasks): Likewise. * proc/msg.c (tickle_init): Likewise. * proc/main.c (main): Store the privileged host port in _hurd_host_priv. * proc/proc.h: Remove unused variable master_host_port. fixup_store_priv_port --- proc/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'proc/main.c') diff --git a/proc/main.c b/proc/main.c index 6b18737a..7be89ce4 100644 --- a/proc/main.c +++ b/proc/main.c @@ -92,7 +92,7 @@ main (int argc, char **argv, char **envp) startup_port = ports_get_send_right (startup_proc); err = startup_procinit (boot, startup_port, &startup_proc->p_task, - &authserver, &master_host_port, &master_device_port); + &authserver, &_hurd_host_priv, &master_device_port); assert_perror (err); mach_port_deallocate (mach_task_self (), startup_port); @@ -111,7 +111,7 @@ main (int argc, char **argv, char **envp) important. */ err = thread_get_assignment (mach_thread_self (), &pset); assert_perror (err); - err = host_processor_set_priv (master_host_port, pset, &psetcntl); + err = host_processor_set_priv (_hurd_host_priv, pset, &psetcntl); assert_perror (err); thread_max_priority (mach_thread_self (), psetcntl, 0); assert_perror (err); -- cgit v1.2.3