diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-27 10:38:08 +0100 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2013-11-28 13:14:29 +0100 |
commit | f0023823ef3282bd3483e6a7aa19b0a0939a6ba4 (patch) | |
tree | 7ec906eecfd5f540e4e7810775d760f7d0bced8b /proc/main.c | |
parent | 2c9422595f41635e2f4f7ef1afb7eece9001feae (diff) | |
download | hurd-f0023823ef3282bd3483e6a7aa19b0a0939a6ba4.tar.gz hurd-f0023823ef3282bd3483e6a7aa19b0a0939a6ba4.tar.bz2 hurd-f0023823ef3282bd3483e6a7aa19b0a0939a6ba4.zip |
proc: store the device master port in _hurd_device_master
* proc/host.c (S_proc_getprivports): Adapt accordingly.
* proc/main.c (main): Store the device master port in _hurd_device_master.
* proc/proc.h (master_device_port): Remove unused variable.
Diffstat (limited to 'proc/main.c')
-rw-r--r-- | proc/main.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/proc/main.c b/proc/main.c index 7be89ce4..aaaa5a77 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, &_hurd_host_priv, &master_device_port); + &authserver, &_hurd_host_priv, &_hurd_device_master); assert_perror (err); mach_port_deallocate (mach_task_self (), startup_port); @@ -126,7 +126,7 @@ main (int argc, char **argv, char **envp) to panic or something. */ mach_port_t cons; error_t err; - err = device_open (master_device_port, D_READ|D_WRITE, "console", &cons); + err = device_open (_hurd_device_master, D_READ|D_WRITE, "console", &cons); assert_perror (err); stdin = mach_open_devstream (cons, "r"); stdout = stderr = mach_open_devstream (cons, "w"); |